-
Notifications
You must be signed in to change notification settings - Fork 27
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
Crash with "zh-classical" messages #38
Comments
I fixed a similar issue in https://phabricator.wikimedia.org/T228510 |
The standard language code for |
@Nikerabbit thanks, but the banana lib has an entry for it in banana-i18n/src/languages/fallbacks.json Line 156 in 6fc9211
*.wikipedia.org
|
I recommend against using the domain code as language code. There are many exceptions where they do not match. The real language code (queryable via API, mw.config.values.wgContentLanguage, etc.) is better. |
@Nikerabbit you assume the code runs in MW, whereas I use it outside of it -- https://dibabel.toolforge.org/ -- and I would have to resolve the domain into the default language. That said, could you explain why there is a fallback file? If its there, I would assume it is supported. Otherwise its a bug to have stuff in it that doesn't work :) |
P.S. I just double checked -- https://meta.wikimedia.org/w/api.php?action=sitematrix&formatversion=2 --
|
This is necro-posting, but that's the sitecode, not language code. Going to https://zh-classical.wikipedia.org and hitting |
This code crashes because it calls
new Intl.PluralRules("zh-classical")
, which is an error in Chrome.Error:
The text was updated successfully, but these errors were encountered: