fix viteset

This commit is contained in:
pa
2026-02-12 15:13:36 +09:00
parent 30ecb00063
commit 5725255e4b
8 changed files with 171 additions and 148 deletions

10
vitest.setup.js Normal file
View File

@@ -0,0 +1,10 @@
/**
* Vitest global setup file.
* Loads English locale messages into i18n so that
* translation calls return expected values in tests.
*/
import { i18n } from './src/plugin/i18n';
import en from './src/localization/en.json';
i18n.global.setLocaleMessage('en', en);