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.

Locale not enforced as setup in .json

See original GitHub issue

HEAD develop (d25010d5d7e5e53a020c24ea69cac64e58d266c5) To Reproduce Set

...
  "padOptions": {
    "lang":             "XX"
...

Expected behavior No matter what locale the browser asks for, my language set as above is used by the UI.

Actual results If browser locale is “EN”, etherpad-lite is in English If browser locale is “XX”, etherpad-lite is in XX

Desktop (please complete the following information):

  • OS: Windows
  • Browser Firefox, Vivaldi

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Apr 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1reaction
licaon-ktercommented, Dec 11, 2020

Because my users are (geographically) on a certain locale that I’d like to enforce.

The fact that you don’t/won’t use this is a moot point. 😃

Is the bug valid?

Read more comments on GitHub >

github_iconTop Results From Across the Web

etherpad-lite Locale not enforced as setup in .json - JavaScript
Expected behavior No matter what locale the browser asks for, my language set as above is used by the UI. Actual results If...
Read more >
Locale settings from JSON not being applied
I'm translating text for a different market and I'm updating the locale.json file. Inside the en.default.json file I got the following:.
Read more >
problem when loading the .json · Issue #32 - GitHub
Hi, i followed the setup guide , i am using webpack , when i run the server i get GET http://localhost:8080/assets/locale-en.json 404 (Not ......
Read more >
How to import a JSON file in ECMAScript 6? - Stack Overflow
In TypeScript or using Babel, you can import json file in your code. // Babel import * as data from './example.json'; const word...
Read more >
How to translate JSON files: guide to l10n & i18n with examples
As you can see, we've put our French locale language resources inside it. Similarly, let's not forget to add an “it ...
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