summaryrefslogtreecommitdiff
path: root/packages/frontend/src/i18n.ts
blob: 30771ec1b37913d9adc4999959fef55fac3d3485 (plain)
1
2
3
4
5
6
7
8
9
10
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;
}