13
packages/client/src/i18n.ts
Normal file
13
packages/client/src/i18n.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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'];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user