1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 16:38:31 +00:00
* Fixed: Not automatically selecting Norwegian when Twitch's native language is set to Norwegian.
* Fixed: Not supporting the channels in your language sections of the directory.
This commit is contained in:
SirStendec 2020-07-16 17:21:51 -04:00
parent 0003e6e96d
commit 2bb87db83c
3 changed files with 6 additions and 3 deletions

View file

@ -151,12 +151,15 @@ export class TranslationManager extends Module {
if ( this.availableLocales.includes(val) )
return val;
if ( val === 'no' && this.availableLocales.includes('nb') )
return 'nb';
const idx = val.indexOf('-');
if ( idx === -1 )
return 'en';
val = val.slice(0, idx);
return this.availableLocales.includes(val) ? val : 'en'
return this.availableLocales.includes(val) ? val : 'en';
},
ui: {