Hide guidance string for non-embedded providers
String key is not found when NSLocalizedString returns key itself.
This commit is contained in:
parent
6a168df009
commit
80bc362f04
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue