summaryrefslogtreecommitdiff
path: root/src/client/i18n.ts
blob: dc2367647412723d4c4b69d3ac5f70ca817023ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { markRaw } from 'vue';
import { locale } from '@client/config';
import { I18n } from '@/misc/i18n';

export const i18n = markRaw(new I18n(locale));

// このファイルに書きたくないけどここに書かないと何故かVeturが認識しない
declare module '@vue/runtime-core' {
	interface ComponentCustomProperties {
		$t: typeof i18n['t'];
		$ts: typeof i18n['locale'];
	}
}