devunt / devunt/make-gis-great-again
translation problem
- Dominant language
- JavaScript
- Stars
- 761
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
- Are you using browser extension or userscript? browser extension
- Is "Make GIS great again" working on other pages? yes
- Is error disappeared when you changed extension/userscript to userscript/extension?
- Link to page where error occurs
- Screenshot of page where error occurs
- Screenshot of Developer tools' "Console" (Firefox — `Control+Shift+K`, Chrome — `Ctrl+Shift+J`)
hello,
i have a problem with french translation who doesnt work :
i must change default language in this line :
`const localizedViewImage = lang[(lang[navigator.language] ? navigator.language : 'en')];`
by
`const localizedViewImage = lang[(lang[navigator.language] ? navigator.language : 'fr')];`
i think the detection doesnt work.
Ty for your work
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the code containing `const localizedViewImage` and inspect how `navigator.language` is matched against the available translations. Reproduce the issue with a French browser locale and verify that the French translation is selected without changing the fallback language; the issue is done when French users see the translated View Image text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100