mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 06:57:36 -07:00
14148f6c4a
Resolve #7779
13 lines
394 B
TypeScript
13 lines
394 B
TypeScript
import { markRaw } from 'vue';
|
|
import { locale } from '@/config';
|
|
import { I18n } from '@/scripts/i18n';
|
|
|
|
export const i18n = markRaw(new I18n(locale));
|
|
|
|
// このファイルに書きたくないけどここに書かないと何故かVeturが認識しない
|
|
declare module '@vue/runtime-core' {
|
|
interface ComponentCustomProperties {
|
|
$t: typeof i18n['t'];
|
|
$ts: typeof i18n['locale'];
|
|
}
|
|
}
|