-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Wikidata fields showing non-local language data #5563
Comments
Here’s the request I’d expect iD to make in this case; it shows “Stirling” and “city in Scotland” as expected. I think the problem is that we’re passing the browser’s language directly into the MediaWiki API: iD/modules/services/wikidata.js Line 61 in f8f5b69
The API expects lowercase language codes ( Case aside, it’s possible for the browser to supply a language that Wikidata doesn’t support, or for the browser’s language code to contain some additional detail that doesn’t match Wikidata. (For example, WebKit on Apple platforms would probably use |
Ah yeah @nyurik showed me how to fix this the other day.. The MediaWiki API lets us request a list of preferred locales and fallbacks. |
#5543 would be another reason to supply fallback language codes in the API request. |
This city node is showing non-English information in the wikidata fields for my en-GB browsers (Firefox/Chrome):
Seems to be coming from the Wu Chinese name and French description here: https://www.wikidata.org/wiki/Q182923
The text was updated successfully, but these errors were encountered: