1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-14 14:48:49 +09:00
MisskeyIO/packages/frontend/src/i18n.ts

10 lines
218 B
TypeScript

import { markRaw } from 'vue';
import { locale } from '@/config';
import { I18n } from '@/scripts/i18n';
export const i18n = markRaw(new I18n(locale));
export function updateI18n(newLocale) {
i18n.ts = newLocale;
}