mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-30 05:23:09 +00:00
c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
15 lines
389 B
TypeScript
15 lines
389 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';
|
|
import { locale } from '@/config';
|
|
import { I18n } from '@/scripts/i18n';
|
|
|
|
export const i18n = markRaw(new I18n<Locale>(locale));
|
|
|
|
export function updateI18n(newLocale) {
|
|
i18n.ts = newLocale;
|
|
}
|