Skip to content

Commit

Permalink
Add "Add Location" Loc String (#371)
Browse files Browse the repository at this point in the history
add "add location" string to Loc

Co-authored-by: Jules Ian Gilos <[email protected]>
  • Loading branch information
julesian and Jules Ian Gilos authored Aug 26, 2024
1 parent e4b9a0a commit 9adb617
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/TripKit/core/Loc+TripKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ extension Loc {
let format = NSLocalizedString("To %@", tableName: "TripKit", bundle: .tripKit, comment: "Destination location. For trip titles, e.g., 'To work'. (old key: PrimaryLocationEnd)")
return String(format: format, to)
}

public static func Add(location: String) -> String {
let format = NSLocalizedString("Add %@", tableName: "TripKit", bundle: .tripKit, comment: "Title for buttons that requires adding a location")
return String(format: format, location)
}

public static func fromTime(_ from: String, toTime to: String) -> String {
#if canImport(UIKit)
Expand Down

0 comments on commit 9adb617

Please sign in to comment.