mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-23 19:19:05 +09:00
14 lines
397 B
TypeScript
14 lines
397 B
TypeScript
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'];
|
|
}
|
|
}
|