From edc6f350c5e6b9d3ef35ef6ca7c682bd0cb7e961 Mon Sep 17 00:00:00 2001 From: Lisa Hillebrand Date: Sun, 23 Oct 2022 11:26:31 +0200 Subject: [PATCH] 623 Add common.json for shared translation strings --- i18n/en/common.json | 6 ++++++ i18n/i18n.js | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 i18n/en/common.json diff --git a/i18n/en/common.json b/i18n/en/common.json new file mode 100644 index 0000000..e05c5db --- /dev/null +++ b/i18n/en/common.json @@ -0,0 +1,6 @@ +{ + "cancel": "Cancel", + "incorrectPassword": "Password incorrect", + "incorrectPasswordMessage": "That password is incorrect.", + "tryAgain": "Try again" +} diff --git a/i18n/i18n.js b/i18n/i18n.js index 7aec838..66f5029 100644 --- a/i18n/i18n.js +++ b/i18n/i18n.js @@ -3,9 +3,10 @@ import { initReactI18next } from 'react-i18next' // translation files import en from './en.json' +import enCommon from './en/common.json' const resources = { - en: { translation: en }, + en: { common: enCommon, translation: en }, } i18n