Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use system language by default #367

Open
4 tasks done
dmpr0 opened this issue Mar 27, 2024 · 1 comment
Open
4 tasks done

Use system language by default #367

dmpr0 opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@dmpr0
Copy link
Contributor

dmpr0 commented Mar 27, 2024

Description

Currently English is set as default language for osmand.net/map.

  • Change language priority in Chrome chrome://settings/languages

ToDo

User not logged in:

  • Use System / Browser default language for UI

User logged in:

  • Use System / Browser language by default until user changed it
  • Switch to System / Browser language after log out

Settings

  • Add new item System (Device language) for Display language option.
@dmpr0 dmpr0 added the web label Mar 27, 2024
@vshcherb vshcherb added this to the 4.8-web milestone Apr 1, 2024
@alisa911 alisa911 self-assigned this Apr 24, 2024
@dmpr0
Copy link
Contributor Author

dmpr0 commented May 13, 2024

Review

  • Add new file web_settings.json, OsmAnd Web will store locale settings in this file.
  • Add parameter "preferred_locale": "en_GB"
    • Save display language selected by the user
  • File should not be visible in Cloud for mobile devices

Screenshot
Chrome Safari
  • Use proper language names

User logged in:

  • Use "preferred_locale": "en_GB",
    • if general_settings.json is present, if not
  • Use System / Browser language by default until user changed it

  • Don't change language after re-login

@vshcherb vshcherb modified the milestones: 4.8-web, 4.9-web Jul 13, 2024
@vshcherb vshcherb modified the milestones: 4.9-web, 5.0-web Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants