From 8ea31814e13b5a97065b779dc68104f35b17c067 Mon Sep 17 00:00:00 2001 From: Misite Bao Date: Mon, 22 Aug 2022 04:32:45 +0800 Subject: [PATCH] fix: fix routing page exception (#34) fixed: https://github.com/misitebao/wails-template-vue/issues/33 --- frontend/packages/javascript/src/i18n/index.js | 1 + frontend/packages/typescript/src/i18n/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/packages/javascript/src/i18n/index.js b/frontend/packages/javascript/src/i18n/index.js index ce5855c..fae5237 100644 --- a/frontend/packages/javascript/src/i18n/index.js +++ b/frontend/packages/javascript/src/i18n/index.js @@ -7,6 +7,7 @@ import fr from "./locales/fr.json"; const i18n = createI18n({ locale: "en", fallbackLocale: "en", + legacy:false, messages: { "zh-Hans": zhHans, en: en, diff --git a/frontend/packages/typescript/src/i18n/index.ts b/frontend/packages/typescript/src/i18n/index.ts index ce5855c..fae5237 100644 --- a/frontend/packages/typescript/src/i18n/index.ts +++ b/frontend/packages/typescript/src/i18n/index.ts @@ -7,6 +7,7 @@ import fr from "./locales/fr.json"; const i18n = createI18n({ locale: "en", fallbackLocale: "en", + legacy:false, messages: { "zh-Hans": zhHans, en: en,