Localization does not work for sv (Swedish) in Edge (but does in Chrome that reports sv-SE).
See original GitHub issueConfiguration:
- Web browser and its version:
- Edge: 91.0.864.64
- Chrome: 91.0.4472.124
- PDF.js version:
- Latest demo version: https://mozilla.github.io/pdf.js/web/viewer.html
Steps to reproduce the problem:
- Open the demo viewer in Chrome
- Open the demo viewer in Edge
What is the expected behavior?
The viewer should be localized, i.e. translated to Swedish.
What went wrong? (add screenshot)
The viewer is translated to Swedish in Chrome, but not in Edge.
Request headers:
- Chrome:
Accept-Language: sv-SE,sv;q=0.9,en-US;q=0.8,en;q=0.7
- Edge:
Accept-Language: sv,en;q=0.9,en-GB;q=0.8,en-US;q=0.7
The problem seems to be that the l10n
folder does not contain an sv
folder, but only an sv-SE
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Geolocation wrong (really wrong) in Edge but correct in Chrome
I suspect this is not uncommon so the real problem is that Windows 10 does not allow setting the “default” location in Microsoft...
Read more >Localization Not Working in Chrome - Stack Overflow
When i debug it the current culture is returned as Sweden but the text from sweden resx is not retrieved. enter image description...
Read more >Set up Legacy Browser Support for Microsoft Edge in IE mode
As an admin, you can configure Legacy Browser Support (LBS) so that users can use Microsoft Edge in IE mode to view legacy...
Read more >Canvas works on Microsoft Edge but not on Google Chrome
Does anyone know why Canvas works on Microsoft Edge but not on Google Chrome? Since yesterday, when I access Canvas on Google Chrome...
Read more >Browser Information | TIBCO WebFOCUS KnowledgeBase
Information Builders evaluates the browser vendor support policies and certifies new ... The Microsoft Edge browser is not supported with App Studio.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I suppose that another possible option could be to try and fixup these “incomplete” language codes, however I don’t know if this is a desirable change (for the PDF.js project) and more importantly if this is actually a specification compliant way of handling language codes; e.g. something like https://github.com/mozilla/pdf.js/compare/master...Snuffleupagus:issue-13689
Yes, was fixed.