mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-06-02 07:00:26 -04:00
19 lines
438 B
TypeScript
19 lines
438 B
TypeScript
import { config } from "@vue/test-utils";
|
|
import { createI18n } from "vue-i18n";
|
|
|
|
function loadEnLocales() {
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
return require("../lang/messages/en-US.json") as Record<string, string>;
|
|
}
|
|
|
|
const i18n = createI18n({
|
|
locale: "en-US",
|
|
messages: {
|
|
"en-US": loadEnLocales(),
|
|
},
|
|
});
|
|
|
|
config.global.plugins = [...(config.global.plugins ?? []), i18n];
|
|
|
|
export { i18n };
|