1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-14 06:51:58 +00:00

4.0.0-rc4.5

* Added: Whisper Support
* Fixed: UI missing hover state for a few elements added by FrankerFaceZ.
* Fixed: Handle missing badge definition when rendering FFZ badges.
* Fixed: Update static chat message type mappings.
* Fixed: Error in metadata when unable to get the proper player.
* Fixed: Incorrectly applying dark theme to products page.

A bit more work on getting enhanced viewer cards ready.
This commit is contained in:
SirStendec 2018-07-13 14:32:12 -04:00
parent 4a326823b9
commit 17fb41f083
26 changed files with 396 additions and 80 deletions

View file

@ -92,6 +92,18 @@ export function array_equals(a, b) {
}
export function shallow_object_equals(a, b) {
if ( typeof a !== 'object' || typeof b !== 'object' || ! array_equals(Object.keys(a), Object.keys(b)) )
return false;
for(const key in a)
if ( a[key] !== b[key] )
return false;
return true;
}
export function set_equals(a,b) {
if ( !(a instanceof Set) || !(b instanceof Set) || a.size !== b.size )
return false;

View file

@ -71,6 +71,11 @@ export class Vue extends Module {
return t.i18n.t(key, phrase, options);
},
tList_(key, phrase, options) {
this.locale && this.phrases[key];
return t.i18n.tList(key, phrase, options);
},
setLocale(locale) {
t.i18n.locale = locale;
}
@ -96,6 +101,9 @@ export class Vue extends Module {
methods: {
t(key, phrase, options) {
return this.$i18n.t_(key, phrase, options);
},
tList(key, phrase, options) {
return this.$i18n.tList_(key, phrase, options);
}
}
});