Skip to content

Commit 607481b

Browse files
committed
Use SwiftGen to update VectorL10n 🤦‍♂️
1 parent 5d65eed commit 607481b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Riot/Generated/Strings.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8006,7 +8006,7 @@ public class VectorL10n: NSObject {
80068006

80078007
extension VectorL10n {
80088008
static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
8009-
let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "")
8009+
let format = NSLocalizedString(key, tableName: table, bundle: Bundle.app, comment: "")
80108010
let locale: Locale
80118011
if let providedLocale = LocaleProvider.locale {
80128012
locale = providedLocale
@@ -8018,4 +8018,3 @@ extension VectorL10n {
80188018
}
80198019
}
80208020

8021-
private final class BundleToken {}

Tools/SwiftGen/Templates/Strings/flat-swift4-vector.stencil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import Foundation
6464

6565
extension {{className}} {
6666
static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
67-
let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "")
67+
let format = NSLocalizedString(key, tableName: table, bundle: Bundle.app, comment: "")
6868
let locale: Locale
6969

7070
if let providedLocale = LocaleProvider.locale {
@@ -77,7 +77,6 @@ extension {{className}} {
7777
}
7878
}
7979

80-
private final class BundleToken {}
8180
{% else %}
8281
// No string found
8382
{% endif %}

0 commit comments

Comments
 (0)