Internationalization
Testing Vue i18n with Vitest
Vue applications using vue-i18n face a common testing problem: the i18n plugin must be configured and installed before any component that uses $t() or useI18n() can render. Without the right setup, tests fail with "inject() can only be used inside setup()" or "Cannot read properties of undefined&