Hide guidance string for non-embedded providers

String key is not found when NSLocalizedString returns key itself.
This commit is contained in:
Davide De Rosa 2020-05-09 17:33:19 +02:00
parent 6a168df009
commit 80bc362f04
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ extension Infrastructure.Metadata {
var guidanceString: String? {
let key = "account.sections.guidance.footer.infrastructure.\(name)"
let format = NSLocalizedString(key, tableName: "Core", bundle: Bundle(for: AppDelegate.self), comment: "")
guard !format.isEmpty else {
guard format != key else {
return nil
}
return String(format: format, locale: .current, description)