From 24c3def2f52f10323464d5f317a6a3c34747c482 Mon Sep 17 00:00:00 2001 From: Dusan Date: Mon, 9 Oct 2023 13:23:19 +0200 Subject: [PATCH 1/2] new languages --- README.md | 7 ++++++- .../Resources/public/js/utilities/isDeeplLanguage.js | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c6d746..81ff33c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ With DeepL the following languages can currently be translated: * Danish * Greek * Estonian -* Finish +* Finnish * Hungarian * Lithuanian * Latvian @@ -27,6 +27,11 @@ With DeepL the following languages can currently be translated: * Slovak * Slovenian * Swedish +* Indonesian +* Korean +* Norwegian (Bokmål) +* Turkish +* Ukrainian ## Prerequisites * PHP 8.1 or higher (https://secure.php.net/) diff --git a/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js b/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js index 7b848c0..53b0017 100644 --- a/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js +++ b/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js @@ -40,6 +40,12 @@ function isDeeplLanguage(lang) { "sk", "sl", "sv", + // again new languages + "id", + "ko", + "nb", + "tr", + "ua" ]; return deeplLanguages.includes(lang); From d3215db973b0e29841327fcdc5afea64a0ec4aaf Mon Sep 17 00:00:00 2001 From: Dusan Date: Mon, 6 Nov 2023 09:36:33 +0100 Subject: [PATCH 2/2] fix --- .../Resources/public/js/utilities/isDeeplLanguage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js b/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js index 53b0017..6c9672e 100644 --- a/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js +++ b/src/QuickTranslateBundle/Resources/public/js/utilities/isDeeplLanguage.js @@ -45,7 +45,7 @@ function isDeeplLanguage(lang) { "ko", "nb", "tr", - "ua" + "uk" ]; return deeplLanguages.includes(lang);