Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set 'lang' attribute based on the locale of the page #95

Open
FiveYellowMice opened this issue Nov 14, 2020 · 1 comment
Open

Set 'lang' attribute based on the locale of the page #95

FiveYellowMice opened this issue Nov 14, 2020 · 1 comment

Comments

@FiveYellowMice
Copy link
Contributor

Currently, an AsciiDoc document cannot conveniently obtain current_page.options[:locale] set by the I18n extension, and it seems natural for it to be reflected in the 'lang' attribute since its standard (and used by some converters).

It would be better if we are able to specify translation strings based on the locale, either obtaining them from the I18n extension or set from configuration or data files.

@mojavelinux
Copy link
Contributor

Seems reasonable to me. If you submit a PR, I'll be happy to review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants