Add localizations to UI tests target (#118)

This commit is contained in:
ismailgulek
2022-06-29 18:32:14 +03:00
committed by GitHub
parent d89cefa253
commit 88c7b2340c
11 changed files with 116 additions and 83 deletions

View File

@@ -5406,7 +5406,7 @@ extension ElementL10n {
}
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
}
@@ -5415,3 +5415,5 @@ extension ElementL10n {
}
}
private final class BundleToken {}