Merge branch 'main' into iOS-18

This commit is contained in:
Thomas Ricouard 2024-09-06 07:53:12 +02:00
commit aa91d16cd9
2 changed files with 53 additions and 1 deletions

View file

@ -29185,11 +29185,23 @@
}, },
"Feature Requests" : { "Feature Requests" : {
"localizations" : { "localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Solicitudes de funciones"
}
},
"it" : { "it" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Richieste di funzionalità" "value" : "Richieste di funzionalità"
} }
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "功能请求"
}
} }
} }
}, },
@ -42040,11 +42052,23 @@
}, },
"Privacy Policy" : { "Privacy Policy" : {
"localizations" : { "localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Política de Privacidad"
}
},
"it" : { "it" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Privacy policy" "value" : "Privacy policy"
} }
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "隐私政策"
}
} }
} }
}, },
@ -78940,21 +78964,45 @@
}, },
"Telemetry" : { "Telemetry" : {
"localizations" : { "localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Telemetría"
}
},
"it" : { "it" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Telemetria" "value" : "Telemetria"
} }
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "数据采集"
}
} }
} }
}, },
"Telemetry by TelemetryDeck" : { "Telemetry by TelemetryDeck" : {
"localizations" : { "localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Telemetría de TelemetryDeck"
}
},
"it" : { "it" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Telemetria di TelemetryDeck" "value" : "Telemetria di TelemetryDeck"
} }
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "数据采集服务由 TelemetryDeck 提供"
}
} }
} }
}, },

View file

@ -5,11 +5,15 @@ import SwiftUI
public extension View { public extension View {
func addTranslateView(isPresented: Binding<Bool>, text: String) -> some View { func addTranslateView(isPresented: Binding<Bool>, text: String) -> some View {
#if targetEnvironment(macCatalyst)
return self
#else
if #available(iOS 17.4, *) { if #available(iOS 17.4, *) {
return self.translationPresentation(isPresented: isPresented, text: text) return self.translationPresentation(isPresented: isPresented, text: text)
} else { } else {
return self return self
} }
#endif
} }
} }
#endif #endif