mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 16:38:31 +00:00
4.20.9
* 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:
parent
0003e6e96d
commit
2bb87db83c
3 changed files with 6 additions and 3 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue