Add base localization infrastructure and externalize strings (#670)

* Add base localization infrastructure and externalize strings

* Add Spanish localization scaffolding with translations

* Add machine translations for expanded locales

---------

Co-authored-by: jack <jackjackbits@users.noreply.github.com>
This commit is contained in:
jack
2025-09-24 15:12:42 +02:00
committed by GitHub
co-authored by jack
parent de906cb97c
commit f5caa1751a
58 changed files with 4482 additions and 276 deletions
+13 -7
View File
@@ -23,15 +23,21 @@ enum GeohashChannelLevel: CaseIterable, Codable, Equatable {
var displayName: String {
switch self {
case .building: return "Building"
case .block: return "Block"
case .neighborhood: return "Neighborhood"
case .city: return "City"
case .province: return "Province"
case .region: return "Region"
case .building:
return L10n.string("location_levels.building", comment: "Name for building-level location channel")
case .block:
return L10n.string("location_levels.block", comment: "Name for block-level location channel")
case .neighborhood:
return L10n.string("location_levels.neighborhood", comment: "Name for neighborhood-level location channel")
case .city:
return L10n.string("location_levels.city", comment: "Name for city-level location channel")
case .province:
return L10n.string("location_levels.province", comment: "Name for province-level location channel")
case .region:
return L10n.string("location_levels.region", comment: "Name for region-level location channel")
}
}
}
}
// Backward-compatible Codable for renamed cases
extension GeohashChannelLevel {
init(from decoder: Decoder) throws {