question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Localization does not work for sv (Swedish) in Edge (but does in Chrome that reports sv-SE).

See original GitHub issue

Configuration:

Steps to reproduce the problem:

  1. Open the demo viewer in Chrome
  2. 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:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Snuffleupaguscommented, Jul 7, 2021

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

0reactions
nachoalcazarcommented, Jan 8, 2022

The PR above should have fixed this if I look at https://github.com/mozilla/pdf.js/pull/13696/files#diff-51a0dde82a8d1b56568a0375e28fccde02bc154a89b3cb92f34f090b5219b62aR100. Are you sure you’re using the latest PDF.js version?

Yes, was fixed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found