sensebox / openSenseMap

Platform for storing and exploring sensor data
https://opensensemap.org
MIT License
99 stars 51 forks source link

Only German and English translations available #460

Open stsdc opened 1 year ago

stsdc commented 1 year ago

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

mpfeil commented 1 year ago

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 commented 1 year ago

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.