From 5080a536db8cca59b0ca680b690a941cf17e2257 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Thu, 5 Sep 2024 06:57:15 -0700 Subject: [PATCH 1/3] Update Simplified Chinese localization (#2173) * Update Simplified Chinese localization * Update term on telemetry for SC localization * Update SC translation for Telemetry Co-Authored-By: nixzhu * Fix TelemetryDeck name --------- Co-authored-by: nixzhu --- .../Localization/Localizable.xcstrings | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/IceCubesApp/Resources/Localization/Localizable.xcstrings b/IceCubesApp/Resources/Localization/Localizable.xcstrings index fc672a453..aec5a46cf 100644 --- a/IceCubesApp/Resources/Localization/Localizable.xcstrings +++ b/IceCubesApp/Resources/Localization/Localizable.xcstrings @@ -29190,6 +29190,12 @@ "state" : "translated", "value" : "Richieste di funzionalità" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "功能请求" + } } } }, @@ -42045,6 +42051,12 @@ "state" : "translated", "value" : "Privacy policy" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "隐私政策" + } } } }, @@ -78945,6 +78957,12 @@ "state" : "translated", "value" : "Telemetria" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "数据采集" + } } } }, @@ -78955,6 +78973,12 @@ "state" : "translated", "value" : "Telemetria di TelemetryDeck" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "数据采集服务由 TelemetryDeck 提供" + } } } }, From ce3e2d2344a06a481ff0b27d394833fa2ce14eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Jim=C3=A9nez=20S=C3=A1nchez?= Date: Thu, 5 Sep 2024 14:57:23 +0100 Subject: [PATCH 2/3] Update ES localization (#2177) --- .../Localization/Localizable.xcstrings | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/IceCubesApp/Resources/Localization/Localizable.xcstrings b/IceCubesApp/Resources/Localization/Localizable.xcstrings index aec5a46cf..999c383ed 100644 --- a/IceCubesApp/Resources/Localization/Localizable.xcstrings +++ b/IceCubesApp/Resources/Localization/Localizable.xcstrings @@ -29185,6 +29185,12 @@ }, "Feature Requests" : { "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Solicitudes de funciones" + } + }, "it" : { "stringUnit" : { "state" : "translated", @@ -42046,6 +42052,12 @@ }, "Privacy Policy" : { "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Política de Privacidad" + } + }, "it" : { "stringUnit" : { "state" : "translated", @@ -78952,6 +78964,12 @@ }, "Telemetry" : { "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Telemetría" + } + }, "it" : { "stringUnit" : { "state" : "translated", @@ -78968,6 +78986,12 @@ }, "Telemetry by TelemetryDeck" : { "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Telemetría de TelemetryDeck" + } + }, "it" : { "stringUnit" : { "state" : "translated", @@ -83936,4 +83960,4 @@ } }, "version" : "1.0" -} \ No newline at end of file +} From 904cd3dbd79085185e0bcbe3cb1f4008bc3d5134 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 6 Sep 2024 07:53:01 +0200 Subject: [PATCH 3/3] Fix Catalyst build --- Packages/Env/Sources/Env/Ext/TranslationView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Packages/Env/Sources/Env/Ext/TranslationView.swift b/Packages/Env/Sources/Env/Ext/TranslationView.swift index d107f99ee..a1164621e 100644 --- a/Packages/Env/Sources/Env/Ext/TranslationView.swift +++ b/Packages/Env/Sources/Env/Ext/TranslationView.swift @@ -5,11 +5,15 @@ import SwiftUI public extension View { func addTranslateView(isPresented: Binding, text: String) -> some View { + #if targetEnvironment(macCatalyst) + return self + #else if #available(iOS 17.4, *) { return self.translationPresentation(isPresented: isPresented, text: text) } else { return self } + #endif } } #endif