summaryrefslogtreecommitdiff
path: root/packages/frontend-shared
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend-shared')
-rw-r--r--packages/frontend-shared/js/i18n.ts2
-rw-r--r--packages/frontend-shared/js/locale.ts2
-rw-r--r--packages/frontend-shared/js/store-boot-errors.ts2
-rw-r--r--packages/frontend-shared/package.json1
4 files changed, 4 insertions, 3 deletions
diff --git a/packages/frontend-shared/js/i18n.ts b/packages/frontend-shared/js/i18n.ts
index 3b103c4714..a42450ee88 100644
--- a/packages/frontend-shared/js/i18n.ts
+++ b/packages/frontend-shared/js/i18n.ts
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
-import type { ILocale, ParameterizedString } from '../../../locales/index.js';
+import type { ILocale, ParameterizedString } from 'i18n';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type TODO = any;
diff --git a/packages/frontend-shared/js/locale.ts b/packages/frontend-shared/js/locale.ts
index 87e3922fd9..38584fbed6 100644
--- a/packages/frontend-shared/js/locale.ts
+++ b/packages/frontend-shared/js/locale.ts
@@ -4,7 +4,7 @@
*/
import { lang, version } from '@@/js/config.js';
-import type { Locale } from '../../../locales/index.js';
+import type { Locale } from 'i18n';
// ここはビルド時に const locale = JSON.parse("...") みたいな感じで置き換えられるので top-level await は消える
export let locale: Locale = await window.fetch(`/assets/locales/${lang}.${version}.json`).then(r => r.json(), () => null);
diff --git a/packages/frontend-shared/js/store-boot-errors.ts b/packages/frontend-shared/js/store-boot-errors.ts
index 31e6248445..2741339165 100644
--- a/packages/frontend-shared/js/store-boot-errors.ts
+++ b/packages/frontend-shared/js/store-boot-errors.ts
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
-import type { Locale } from '../../../locales/index.js';
+import type { Locale } from 'i18n';
type BootLoaderLocaleBody = Locale['_bootErrors'] & { reload: Locale['reload'] };
diff --git a/packages/frontend-shared/package.json b/packages/frontend-shared/package.json
index a407df6bf8..5806414930 100644
--- a/packages/frontend-shared/package.json
+++ b/packages/frontend-shared/package.json
@@ -34,6 +34,7 @@
"js-built"
],
"dependencies": {
+ "i18n": "workspace:*",
"misskey-js": "workspace:*",
"vue": "3.5.24"
}