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 dbee1924eb
commit 7bd4763662
11 changed files with 116 additions and 83 deletions
@@ -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 %}