Login  Register

Re: support for i18n (lang var) in asciidoctor*

Posted by ciampix on Feb 20, 2021; 3:44pm
URL: https://discuss.asciidoctor.org/support-for-i18n-lang-var-in-asciidoctor-tp8521p8525.html

On Sat, Feb 20, 2021 at 05:54:46AM -0700, mojavelinux [via Asciidoctor :: Discussion] wrote:
>
> > I would espect that language definitions for labels were included in the
> asciidoctor* packages. Apparently that is not so actually.
>
> Yes, they are there. You can find them in the data folder.
>
> ls $(dirname $(dirname $(gem which asciidoctor)))/data/locale

oh yes you are right! (and BTW interesting line of scritpt!)

> If you read the document I linked to fully, you would see that there is a
> link to this folder in the GitHub repository if you want to download them.
> There's also a link to an issue about making this behavior automatic. See
> https://github.com/asciidoctor/asciidoctor/issues/1129

interesting, so it's still an open issue ...

> The file is not loaded automatically when you set the lang attribute
> because it has always been left up to the reader to decide how to handle.
> The docs explain how to do that. If you can propose a way to do
> automatically that is backwards compatible, I'm listening. Though it's not
> something I have time to work on right now.

As always, Dan, you are very helpful... I will figure out a way to handle
this in the hope you'll find a way to handle this properly and in a
backward compatible way...

--

Saluton,
Marco Ciampa