mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add localizations to UI tests target (#118)
This commit is contained in:
@@ -87,7 +87,7 @@ extension {{enumName}} {
|
||||
}
|
||||
|
||||
private static func trIn(_ language: String, _ table: String, _ key: String, _ args: CVarArg...) -> String {
|
||||
guard let bundle = Bundle.lprojBundle(for: language) else {
|
||||
guard let bundle = Bundle(for: BundleToken.self).lprojBundle(for: language) else {
|
||||
// no translations for the desired language
|
||||
return key
|
||||
}
|
||||
@@ -96,6 +96,8 @@ extension {{enumName}} {
|
||||
}
|
||||
}
|
||||
|
||||
private final class BundleToken {}
|
||||
|
||||
{% else %}
|
||||
// No string found
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user