diff --git a/Riot/Generated/Strings.swift b/Riot/Generated/Strings.swift index a09e12287..e20180e33 100644 --- a/Riot/Generated/Strings.swift +++ b/Riot/Generated/Strings.swift @@ -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 {} diff --git a/Tools/SwiftGen/Templates/Strings/flat-swift4-vector.stencil b/Tools/SwiftGen/Templates/Strings/flat-swift4-vector.stencil index f76780d24..3e3e6f594 100644 --- a/Tools/SwiftGen/Templates/Strings/flat-swift4-vector.stencil +++ b/Tools/SwiftGen/Templates/Strings/flat-swift4-vector.stencil @@ -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 %}