diff options
| author | おさむのひと <46447427+samunohito@users.noreply.github.com> | 2025-11-30 13:27:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-30 13:27:44 +0900 |
| commit | fe01a5a28f34c873019ae3c34086acd6bd791a1d (patch) | |
| tree | f4d8e8c4a0e97c120b272c3d253ea62789cc4afd /packages/frontend/test | |
| parent | fix(deps): update [frontend] update dependencies [ci skip] (#16901) (diff) | |
| download | misskey-fe01a5a28f34c873019ae3c34086acd6bd791a1d.tar.gz misskey-fe01a5a28f34c873019ae3c34086acd6bd791a1d.tar.bz2 misskey-fe01a5a28f34c873019ae3c34086acd6bd791a1d.zip | |
refactor: localesをworkspace管理下のパッケージに (#16895)
* refactor: localesをworkspace管理下のパッケージに
* fix copilot review
* move
* move
* rename
* fix ci
* revert unwanted indent changes
* fix
* fix
* fix
* fix
* 間違えてコミットしていたのを戻す
* 不要
* 追加漏れ
* ymlの場所だけ戻す
* localesの位置を戻したのでこの差分は不要
* 内容的にlocalesにある方が正しい
* i18nパッケージ用のREADME.mdを用意
* fix locale.yml
* fix locale.yml
---------
Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/test')
| -rw-r--r-- | packages/frontend/test/i18n.test.ts | 2 | ||||
| -rw-r--r-- | packages/frontend/test/init.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/test/i18n.test.ts b/packages/frontend/test/i18n.test.ts index a51dfc6c4e..14b89f898d 100644 --- a/packages/frontend/test/i18n.test.ts +++ b/packages/frontend/test/i18n.test.ts @@ -5,7 +5,7 @@ import { describe, expect, it } from 'vitest'; import { I18n } from '../../frontend-shared/js/i18n.js'; // @@で参照できなかったので -import type { ParameterizedString } from '../../../locales/index.js'; +import type { ParameterizedString } from 'i18n'; // TODO: このテストはfrontend-sharedに移動する diff --git a/packages/frontend/test/init.ts b/packages/frontend/test/init.ts index e38338cf95..28848f6c2f 100644 --- a/packages/frontend/test/init.ts +++ b/packages/frontend/test/init.ts @@ -7,13 +7,13 @@ import { vi } from 'vitest'; import createFetchMock from 'vitest-fetch-mock'; import type { Ref } from 'vue'; import { ref } from 'vue'; +// Set i18n +import locales from 'i18n'; +import { updateI18n } from '@/i18n.js'; const fetchMocker = createFetchMock(vi); fetchMocker.enableMocks(); -// Set i18n -import locales from '../../../locales/index.js'; -import { updateI18n } from '@/i18n.js'; updateI18n(locales['en-US']); // XXX: misskey-js panics if WebSocket is not defined |