You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
324 B
TypeScript
11 lines
324 B
TypeScript
import yaml from 'js-yaml';
|
|
import * as bus from 'hydrooj/dist/service/bus';
|
|
import * as system from 'hydrooj/dist/model/system';
|
|
import i18n from 'hydrooj/dist/lib/i18n';
|
|
|
|
bus.once('app/started', () => {
|
|
const langs = system.get('easy-locale.langs');
|
|
const entries = yaml.load(langs);
|
|
i18n(entries as any);
|
|
});
|