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

There is no place to specify the lang code of the default language #34

Open
timdream opened this issue Jun 17, 2013 · 0 comments
Open

Comments

@timdream
Copy link
Contributor

According the the doc, one should put the default lang under a [*] section, and all languages w/o a matching would match against that. So we would have:

[*]
greeting=Hello <-- an English string

[zh-TW]
greeting=您好

and when l10n.js loads in a fr-FR browser, we would have a localized event with evt.language set to fr-FR but the UI isn't actually French.

I currently workaround this limit by writing <html data-l10n-id="html"> and html.lang a entry for every language. Tell me if that's what you intended.

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

1 participant