1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08: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

@ -1,7 +1,7 @@
{
"name": "frankerfacez",
"author": "Dan Salvato LLC",
"version": "4.20.8",
"version": "4.20.9",
"description": "FrankerFaceZ is a Twitch enhancement suite.",
"license": "Apache-2.0",
"scripts": {

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: {

View file

@ -43,7 +43,7 @@ export default class Directory extends SiteModule {
this.inject(Game);
this.DirectoryCard = this.elemental.define(
'directory-card', '.live-channel-card,article[data-a-target^="followed-vod-"],article[data-a-target^="card-"],div[data-a-target^="video-tower-card-"] article,div[data-a-target^="clips-card-"] article,.shelf-card__impression-wrapper article',
'directory-card', '.live-channel-card,article[data-a-target^="followed-vod-"],article[data-a-target^="card-"],div[data-a-target^="video-tower-card-"] article,div[data-a-target^="clips-card-"] article,.shelf-card__impression-wrapper article,.tw-tower div article',
DIR_ROUTES, null, 0, 0
);