devunt / devunt/make-gis-great-again

translation problem

Open
#81 2 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.