From 1c182015f1db03a19fb495e22beaa7e6ec28389a Mon Sep 17 00:00:00 2001 From: Alzbeta Pokorna Date: Wed, 30 Oct 2024 12:27:34 +0100 Subject: [PATCH] translations --- oarepo_doi/trans_javascript/i18next.js | 37 ------------------- .../messages/cs/LC_MESSAGES/translations.json | 1 - .../messages/en/LC_MESSAGES/translations.json | 1 - oarepo_doi/trans_javascript/messages/index.js | 0 4 files changed, 39 deletions(-) delete mode 100644 oarepo_doi/trans_javascript/i18next.js delete mode 100644 oarepo_doi/trans_javascript/messages/cs/LC_MESSAGES/translations.json delete mode 100644 oarepo_doi/trans_javascript/messages/en/LC_MESSAGES/translations.json delete mode 100644 oarepo_doi/trans_javascript/messages/index.js diff --git a/oarepo_doi/trans_javascript/i18next.js b/oarepo_doi/trans_javascript/i18next.js deleted file mode 100644 index d5dae7d..0000000 --- a/oarepo_doi/trans_javascript/i18next.js +++ /dev/null @@ -1,37 +0,0 @@ -// This file is part of React-Invenio-Deposit -// Copyright (C) 2021 Graz University of Technology. -// -// Invenio-app-rdm is free software; you can redistribute it and/or modify it -// under the terms of the MIT License; see LICENSE file for more details. - -import i18n from "i18next"; - -import LanguageDetector from "i18next-browser-languagedetector"; -import { translations } from "./messages"; -import { initReactI18next } from "react-i18next"; - -const options = { - fallbackLng: "en", // fallback keys - returnEmptyString: false, - debug: process.env.NODE_ENV === "development", - resources: translations, - keySeparator: false, - nsSeparator: false, - // specify language detection order - detection: { - order: ["htmlTag"], - // cache user language off - caches: [], - }, - react: { - // Set empty - to allow html tags convert to trans tags - // HTML TAG | Trans TAG - // | <1> - transKeepBasicHtmlNodesFor: [], - }, -}; - -const i18next = i18n.createInstance(); -i18next.use(LanguageDetector).use(initReactI18next).init(options); - -export { i18next }; diff --git a/oarepo_doi/trans_javascript/messages/cs/LC_MESSAGES/translations.json b/oarepo_doi/trans_javascript/messages/cs/LC_MESSAGES/translations.json deleted file mode 100644 index 9e26dfe..0000000 --- a/oarepo_doi/trans_javascript/messages/cs/LC_MESSAGES/translations.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/oarepo_doi/trans_javascript/messages/en/LC_MESSAGES/translations.json b/oarepo_doi/trans_javascript/messages/en/LC_MESSAGES/translations.json deleted file mode 100644 index 9e26dfe..0000000 --- a/oarepo_doi/trans_javascript/messages/en/LC_MESSAGES/translations.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/oarepo_doi/trans_javascript/messages/index.js b/oarepo_doi/trans_javascript/messages/index.js deleted file mode 100644 index e69de29..0000000