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

Only German and English translations available #460

Open
stsdc opened this issue Dec 20, 2022 · 2 comments
Open

Only German and English translations available #460

stsdc opened this issue Dec 20, 2022 · 2 comments

Comments

@stsdc
Copy link

stsdc commented Dec 20, 2022

Expected Behavior

Translations expected to show up on Language dropdown. Even there is nosniff policy active it is expected to be able to choose desired language.

Actual Behavior

Detects locale somehow, puts some translations in Polish and places Polish flag, but fails to download translation.

[Error] Refused to execute https://opensensemap.org/translations/angular/angular-locale_pl.js as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.

Zrzut ekranu z 2022-12-20 01 08 17

I'm using Firefox bt pasted screenshot from Midori since it's webkit and has more descriptive logs.
On Firefox it's just:
obraz

Environment

  • OS: elementary OS 6.1 Jólnir x86_64 Kernel: 6.0.8-060008-generic
  • Browser & Version: Firefox 107.0
@mpfeil
Copy link
Member

mpfeil commented Dec 22, 2022

Hi @stsdc,

thanks for opening this issue. Right now we just bundle German and English as languages in our releases. The languages are specified within the package.json (https://github.com/sensebox/openSenseMap/blob/master/package.json#L80)

The language files reside in an other repository (https://github.com/sensebox/openSenseMap-i18n)

We removed all the other languages because they are not up to date and there was a language mixture on the website.

What suprises me is that you have the option to select Polish as a language. Could you check and share the version under the About section (https://opensensemap.org/about)?

@stsdc
Copy link
Author

stsdc commented Dec 22, 2022

Here are few screenshots from Gnome Web browser.
Zrzut ekranu z 2022-12-22 12 58 16
Zrzut ekranu z 2022-12-22 12 59 01

Firefox, however, shows English translations right away.

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

No branches or pull requests

2 participants