openSenseMap
openSenseMap copied to clipboard
Only German and English translations available
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.

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

Environment
- OS: elementary OS 6.1 Jólnir x86_64 Kernel: 6.0.8-060008-generic
- Browser & Version: Firefox 107.0
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)?
Here are few screenshots from Gnome Web browser.

Firefox, however, shows English translations right away.