mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-04 11:44:00 +00:00
Initial commit for converting FrankerFaceZ to TypeScript.
This commit is contained in:
parent
ba72969c51
commit
b9d23accf0
86 changed files with 8673 additions and 5005 deletions
|
@ -4,8 +4,6 @@
|
|||
// Localization
|
||||
// ============================================================================
|
||||
|
||||
import Parser from '@ffz/icu-msgparser';
|
||||
|
||||
import {DEBUG, SERVER} from 'utilities/constants';
|
||||
import {get, pick_random, shallow_copy, deep_copy} from 'utilities/object';
|
||||
import { getBuster } from 'utilities/time';
|
||||
|
@ -69,13 +67,11 @@ const FACES = ['(・`ω´・)', ';;w;;', 'owo', 'ono', 'oAo', 'oxo', 'ovo;', 'Uw
|
|||
// TranslationManager
|
||||
// ============================================================================
|
||||
|
||||
export class TranslationManager extends Module {
|
||||
export default class TranslationManager extends Module {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this.inject('settings');
|
||||
|
||||
this.parser = new Parser;
|
||||
|
||||
this._seen = new Set;
|
||||
|
||||
this.availableLocales = ['en'];
|
||||
|
@ -897,4 +893,4 @@ export function transformPhrase(phrase, substitutions, locale, token_regex, form
|
|||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue