From 54d2fbcc022431baad5f0c7883ad63ae8f89d310 Mon Sep 17 00:00:00 2001 From: zsxeee Date: Wed, 6 Oct 2021 18:21:31 +0800 Subject: [PATCH] Fix i18n Prevent use esm-bundler build vue-i18n Escape keyword: '@' --- src/i18n.js | 2 +- src/languages/en.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n.js b/src/i18n.js index 5c17475e..75510397 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -1,4 +1,4 @@ -import { createI18n } from "vue-i18n"; +import { createI18n } from "vue-i18n/index"; import bgBG from "./languages/bg-BG"; import daDK from "./languages/da-DK"; import deDE from "./languages/de-DE"; diff --git a/src/languages/en.js b/src/languages/en.js index 6d91d2b5..3395bb30 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -209,7 +209,7 @@ export default { wayToGetDiscordURL: "You can get this by going to Server Settings -> Integrations -> Create Webhook", "Bot Display Name": "Bot Display Name", "Prefix Custom Message": "Prefix Custom Message", - "Hello @everyone is...": "Hello @everyone is...", + "Hello @everyone is...": "Hello {'@'}everyone is...", "teams": "Microsoft Teams", "Webhook URL": "Webhook URL", wayToGetTeamsURL: "You can learn how to create a webhook url {0}.",