1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00
* Changed: Animated Emotes is now set to Enabled by default, to reflect the vanilla Twitch experience.
* Fixed: Native animated emotes not appearing with animation.
* Fixed: Typo in the tooltip for Playback Statistics metadata.
* Maintenance: Update the `@ffz/icu-msgparser` dependency.
This commit is contained in:
SirStendec 2021-06-17 14:27:04 -04:00
parent 2a57ecb8a7
commit ce38c3c251
10 changed files with 80 additions and 59 deletions

View file

@ -12,6 +12,11 @@ dayjs.extend(RelativeTime);
import Parser from '@ffz/icu-msgparser';
const DEFAULT_PARSER_OPTIONS = {
allowTags: false,
requireOther: false
};
import {get} from 'utilities/object';
import {duration_to_string} from 'utilities/time';
@ -217,7 +222,7 @@ export default class TranslationCore {
this.formats[key] = Object.assign({}, this.formats[key], options.formats[key]);
this.types = Object.assign({}, DEFAULT_TYPES, options.types || {});
this.parser = new Parser(options.parserOptions);
this.parser = new Parser(Object.assign({}, DEFAULT_PARSER_OPTIONS, options.parserOptions));
if ( options.phrases )
this.extend(options.phrases);