Closed ysb33r closed 5 years ago
I would recommend "lang". It's a reserved attribute in AsciiDoc for this purpose that will set the xml:lang on the html tag. (Otherwise, it's just informational).
@mojavelinux In that case, maybe I should inject it as lang@
I suppose, though you'd have a strong case here for not having this one be mutable. What's the use case for changing the document language inside of a folder for that language? Though, it certainly wouldn't hurt to allow it.
Btw, here's where it gets used currently: https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/converter/html5.rb#L100-L101
We also talk about it here: https://asciidoctor.org/docs/user-manual/#customizing-labels
I suppose, though you'd have a strong case here for not having this one be mutable
I agree with you, but for consistency(*) I'll append @
.
(*) The convention is that for any Asciidoctor attribute that the Gradle plugin injects which were not explicitely specified by the user, @
will be appended.
:+1:
Will be in 3.0.0-alpha.4
When a multi-language conversion is in place, inject ~{gradle-language}~ {lang} attribute when the specific language source set is being processed.