From 5c98d870a9b64d004e361d6987b8c263a2d7687b Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Thu, 13 Feb 2020 12:58:45 +0100 Subject: [PATCH] Do not share configs --- scripts/transpile-tx.js | 3 +-- src/components/Locale/Locale.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/transpile-tx.js b/scripts/transpile-tx.js index ad86d6920..3acf92997 100644 --- a/scripts/transpile-tx.js +++ b/scripts/transpile-tx.js @@ -4,8 +4,7 @@ const { default: manageTranslations } = require("react-intl-translations-manager"); -const { dotSeparator } = require("../src/components/Locale/Locale.tsx"); - +const dotSeparator = "_dot_"; const sortKeys = true; const translationsDirectory = "locale"; diff --git a/src/components/Locale/Locale.tsx b/src/components/Locale/Locale.tsx index 22d997fc2..03bb1b0c5 100644 --- a/src/components/Locale/Locale.tsx +++ b/src/components/Locale/Locale.tsx @@ -185,7 +185,7 @@ export const localeNames: Record = { [Locale.ZH_HANT]: "繁體中文" }; -export const dotSeparator = "_dot_"; +const dotSeparator = "_dot_"; const sepRegExp = new RegExp(dotSeparator, "g"); function getKeyValueJson(messages: LocaleMessages): Record {