openSenseMap icon indicating copy to clipboard operation
openSenseMap copied to clipboard

Only German and English translations available

Open stsdc opened this issue 2 years ago • 2 comments

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

stsdc avatar Dec 20 '22 00:12 stsdc

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)?

mpfeil avatar Dec 22 '22 10:12 mpfeil

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.

stsdc avatar Dec 22 '22 12:12 stsdc