From 86c5099662add18eaf6326c815de36344602c82d Mon Sep 17 00:00:00 2001 From: Paul Schuetz Date: Thu, 9 May 2024 14:14:13 +0200 Subject: [PATCH] Run all the strings through localization The strings "DeepL" and "Apple Translate" are now also saved in localizable.strings and addressed through keys. They were taken directly previously, which was inconsistent. --- .../Localization/Localizable.xcstrings | 22 +++++++++++++++++++ .../Env/Sources/Env/TranslationType.swift | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/IceCubesApp/Resources/Localization/Localizable.xcstrings b/IceCubesApp/Resources/Localization/Localizable.xcstrings index dbe15db1..5e8489d1 100644 --- a/IceCubesApp/Resources/Localization/Localizable.xcstrings +++ b/IceCubesApp/Resources/Localization/Localizable.xcstrings @@ -26160,6 +26160,28 @@ } } }, + "enum.translation-type.apple" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Apple Translate" + } + } + } + }, + "enum.translation-type.deepl" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "DeepL" + } + } + } + }, "enum.translation-type.use-server-if-possible" : { "extractionState" : "manual", "localizations" : { diff --git a/Packages/Env/Sources/Env/TranslationType.swift b/Packages/Env/Sources/Env/TranslationType.swift index 1939dc08..eae8a646 100644 --- a/Packages/Env/Sources/Env/TranslationType.swift +++ b/Packages/Env/Sources/Env/TranslationType.swift @@ -10,9 +10,9 @@ public enum TranslationType: String, CaseIterable { case .useServerIfPossible: "enum.translation-type.use-server-if-possible" case .useDeepl: - "DeepL" + "enum.translation-type.deepl" case .useApple: - "Apple Translate" + "enum.translation-type.apple" } } }