mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 14:03:09 +02:00
15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { markRaw } from 'vue';
|
|
import type { Locale } from '../../../locales/index.js';
|
|
import { locale } from '@/config.js';
|
|
import { I18n } from '@/scripts/i18n.js';
|
|
|
|
export const i18n = markRaw(new I18n<Locale>(locale));
|
|
|
|
export function updateI18n(newLocale) {
|
|
i18n.ts = newLocale;
|
|
}
|