mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 11:16:43 -06:00
62fe3bfb54
* refactor: add i18n dynamic typings * chore: tweak
10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
import { markRaw } from 'vue';
|
|
import type { Locale } from '../../../locales';
|
|
import { locale } from '@/config';
|
|
import { I18n } from '@/scripts/i18n';
|
|
|
|
export const i18n = markRaw(new I18n<Locale>(locale));
|
|
|
|
export function updateI18n(newLocale) {
|
|
i18n.ts = newLocale;
|
|
}
|