diff --git a/Localization/app.json b/Localization/app.json index c277a3127..0cd771307 100644 --- a/Localization/app.json +++ b/Localization/app.json @@ -306,6 +306,9 @@ "instant": "Instant Sign-up", "manually_reviewed" = "Manual Review" }, + "language": { + "all": "All" + }, "search": { "placeholder": "Search name or URL" } diff --git a/Mastodon/Scene/Onboarding/PickServer/MastodonPickServerViewModel.swift b/Mastodon/Scene/Onboarding/PickServer/MastodonPickServerViewModel.swift index 6e6b27f13..8909285cc 100644 --- a/Mastodon/Scene/Onboarding/PickServer/MastodonPickServerViewModel.swift +++ b/Mastodon/Scene/Onboarding/PickServer/MastodonPickServerViewModel.swift @@ -300,8 +300,7 @@ extension MastodonPickServerViewModel: PickServerCategoryCollectionViewCellDeleg case .language(_): guard allLanguages.value.isNotEmpty else { return } - //FIXME: @zeitschlag localize - let allLanguagesAction = UIAction(title: "All") { _ in + let allLanguagesAction = UIAction(title: L10n.Scene.ServerPicker.Language.all) { _ in self.selectedLanguage.value = nil cell.titleLabel.text = L10n.Scene.ServerPicker.Button.language } diff --git a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift index cd143b57e..9034cf0c5 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift +++ b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift @@ -1276,6 +1276,10 @@ public enum L10n { /// USERS public static let users = L10n.tr("Localizable", "Scene.ServerPicker.Label.Users", fallback: "USERS") } + public enum Language { + /// All + public static let all = L10n.tr("Localizable", "Scene.ServerPicker.Language.All", fallback: "All") + } public enum Search { /// Search name or URL public static let placeholder = L10n.tr("Localizable", "Scene.ServerPicker.Search.Placeholder", fallback: "Search name or URL") diff --git a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings index 1f1035550..acafb44ab 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings +++ b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings @@ -444,6 +444,7 @@ uploaded to Mastodon."; "Scene.ServerPicker.SignupSpeed.All" = "All"; "Scene.ServerPicker.SignupSpeed.Instant" = "Instant Sign-up"; "Scene.ServerPicker.SignupSpeed.ManuallyReviewed" = "Manual Review"; +"Scene.ServerPicker.Language.All" = "All"; "Scene.ServerPicker.Search.Placeholder" = "Search name or URL"; "Scene.ServerRules.Button.Confirm" = "I Agree"; "Scene.ServerRules.PrivacyPolicy" = "privacy policy"; diff --git a/MastodonSDK/Sources/MastodonLocalization/Resources/en.lproj/Localizable.strings b/MastodonSDK/Sources/MastodonLocalization/Resources/en.lproj/Localizable.strings index 05ece71bc..f45ef2c0b 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Resources/en.lproj/Localizable.strings +++ b/MastodonSDK/Sources/MastodonLocalization/Resources/en.lproj/Localizable.strings @@ -437,6 +437,7 @@ uploaded to Mastodon."; "Scene.ServerPicker.SignupSpeed.All" = "All"; "Scene.ServerPicker.SignupSpeed.Instant" = "Instant Sign-up"; "Scene.ServerPicker.SignupSpeed.ManuallyReviewed" = "Manual Review"; +"Scene.ServerPicker.Language.All" = "All"; "Scene.ServerPicker.Search.Placeholder" = "Search name or URL"; "Scene.ServerRules.Button.Confirm" = "I Agree"; "Scene.ServerRules.PrivacyPolicy" = "privacy policy";