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

Web interface is always displayed in German #531

Closed
yvan-algoo opened this issue Jul 29, 2024 · 5 comments
Closed

Web interface is always displayed in German #531

yvan-algoo opened this issue Jul 29, 2024 · 5 comments

Comments

@yvan-algoo
Copy link

Hi,

The web interface (https://europe.motis-project.de/ and https://routing.spline.de) is always displayed in German:

  • I tried with both Firefox and Chromium, and verified that my Accept-Language HTTP request headers only mention French and English.
  • I can not find a button in the UI to change the language.

However, from what I understand, English and French translations are available (https://github.com/motis-project/motis/tree/master/ui/web/src/Localization): am I missing something?

Regards,
Yvan

@felixguendling
Copy link
Member

Currently, there's no detection of the language but you can use the lang query parameter:
https://europe.motis-project.de/?lang=fr
https://europe.motis-project.de/?lang=en

@yvan-algoo
Copy link
Author

Thanks @felixguendling! Using the lang parameter in the URL is a good workaround :-)

I do not know if you want to close this issue or not, so I let it open.

@felixguendling
Copy link
Member

We can leave it open until we have language detection working. Although not in the current UI version as this one is deprecated. But I'm working on a new one (currently only used for debugging).

@felixguendling
Copy link
Member

Still relevant with v2 as it's not translated at all yet (TODO).

@felixguendling felixguendling mentioned this issue Oct 31, 2024
25 tasks
@felixguendling
Copy link
Member

For now, we use the detected language from the browser:

const language = browser ? navigator.languages.find((l) => l.length == 2) : '';

I'm open to add a button that let's the user change the language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants