Login  Register

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

Posted by mojavelinux on Feb 21, 2021; 7:29am
URL: https://discuss.asciidoctor.org/support-for-i18n-lang-var-in-asciidoctor-tp8521p8528.html

On Sat, Feb 20, 2021 at 8:44 AM ciampix [via Asciidoctor :: Discussion] <[hidden email]> wrote:
> ls $(dirname $(dirname $(gem which asciidoctor)))/data/locale

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

Here's a slightly more concise way to access that path:

ls $(dirname $(gem which asciidoctor))/../data/locale

Here's how to access it with pure Ruby:

ruby -r asciidoctor -e "puts File.join Gem.loaded_specs['asciidoctor'].gem_dir, 'data/locale'"


> 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 ...

It's an open idea. There hasn't been a decision made about whether this should be supported or how.
 
As always, Dan, you are very helpful...

Always glad to help out!
 
in the hope you'll find a way to handle this properly and in a backward compatible way...

If the community wants this to work differently, then someone in the community needs to bring forward a proposal. As I said, it's not something I will be trying to figure out on my own.

Best Regards,

-Dan