Skip to content

Commit

Permalink
add "add location" string to Loc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules Ian Gilos committed Aug 22, 2024
1 parent e4b9a0a commit 79bbc63
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 79bbc63

Please sign in to comment.