diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2023-05-24 17:12:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-24 17:12:38 +0900 |
| commit | 62fe3bfb5470129a3c82ee17ce3200dddb9623f1 (patch) | |
| tree | 989eae5b9a99d14a35b58b36d47901f29beca7c1 /packages/frontend/src/i18n.ts | |
| parent | :art: (diff) | |
| download | misskey-62fe3bfb5470129a3c82ee17ce3200dddb9623f1.tar.gz misskey-62fe3bfb5470129a3c82ee17ce3200dddb9623f1.tar.bz2 misskey-62fe3bfb5470129a3c82ee17ce3200dddb9623f1.zip | |
refactor(#7598): add i18n dynamic typings (#10882)
* refactor: add i18n dynamic typings
* chore: tweak
Diffstat (limited to 'packages/frontend/src/i18n.ts')
| -rw-r--r-- | packages/frontend/src/i18n.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/i18n.ts b/packages/frontend/src/i18n.ts index 220c6210c0..30771ec1b3 100644 --- a/packages/frontend/src/i18n.ts +++ b/packages/frontend/src/i18n.ts @@ -1,8 +1,9 @@ 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)); +export const i18n = markRaw(new I18n<Locale>(locale)); export function updateI18n(newLocale) { i18n.ts = newLocale; |