mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-04 13:56:44 -06:00
837a8e15d8
* refactor(frontend): shouldCollapsedを共通化 * refactor(frontend): config.js, worker-multi-dispatch.js, intl-const.jsを共通化 * fix(frontend-shared): fix type error * refactor(frontend): is-link.jsと、同一の振る舞いをする記述を共通化 * fix * fix lint * lint fixes
15 lines
412 B
TypeScript
15 lines
412 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { markRaw } from 'vue';
|
|
import { I18n } from '@@/js/i18n.js';
|
|
import type { Locale } from '../../../locales/index.js';
|
|
import { locale } from '@@/js/config.js';
|
|
|
|
export const i18n = markRaw(new I18n<Locale>(locale, _DEV_));
|
|
|
|
export function updateI18n(newLocale: Locale) {
|
|
i18n.locale = newLocale;
|
|
}
|