Use SwiftGen to update VectorL10n 🤦‍♂️

This commit is contained in:
Doug
2022-04-06 15:51:32 +01:00
parent 86ac0f14e0
commit 6b0e4deffa
2 changed files with 2 additions and 4 deletions

View File

@@ -8006,7 +8006,7 @@ public class VectorL10n: NSObject {
extension VectorL10n {
static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "")
let format = NSLocalizedString(key, tableName: table, bundle: Bundle.app, comment: "")
let locale: Locale
if let providedLocale = LocaleProvider.locale {
locale = providedLocale
@@ -8018,4 +8018,3 @@ extension VectorL10n {
}
}
private final class BundleToken {}

View File

@@ -64,7 +64,7 @@ import Foundation
extension {{className}} {
static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "")
let format = NSLocalizedString(key, tableName: table, bundle: Bundle.app, comment: "")
let locale: Locale
if let providedLocale = LocaleProvider.locale {
@@ -77,7 +77,6 @@ extension {{className}} {
}
}
private final class BundleToken {}
{% else %}
// No string found
{% endif %}