From 79bbc634b25d6246c2b186e812190049f39a1767 Mon Sep 17 00:00:00 2001 From: Jules Ian Gilos Date: Thu, 22 Aug 2024 18:43:06 +0800 Subject: [PATCH] add "add location" string to Loc --- Sources/TripKit/core/Loc+TripKit.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/TripKit/core/Loc+TripKit.swift b/Sources/TripKit/core/Loc+TripKit.swift index 592ad3b80..d412d000d 100644 --- a/Sources/TripKit/core/Loc+TripKit.swift +++ b/Sources/TripKit/core/Loc+TripKit.swift @@ -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)