Fix Localizations (#684)

* Update all `NSLocalizedString` with `L10n.string`

+ combine with `L10n.format`

* Handle Localizations + Swift Package
This commit is contained in:
Islam
2025-09-26 11:09:10 +02:00
committed by GitHub
parent 9abfab3248
commit d01538a2ea
10 changed files with 52 additions and 44 deletions
+4 -4
View File
@@ -77,17 +77,17 @@ final class LocationNotesManager: ObservableObject {
private let dependencies: LocationNotesDependencies
private enum Strings {
static let noRelays = NSLocalizedString(
static let noRelays = L10n.string(
"location_notes.error.no_relays",
comment: "Shown when no geo relays are available near the selected location"
)
static func failedToSend(_ detail: String) -> String {
let format = NSLocalizedString(
L10n.string(
"location_notes.error.failed_to_send",
comment: "Shown when a location note fails to send"
comment: "Shown when a location note fails to send",
detail
)
return String(format: format, detail)
}
}