本地化传递给视图的字符串

Localize String passed to a view

我正在尝试本地化一些传递给视图的文本,我有以下内容:

NavigationLink(destination: ManageConnectionsView(user: user).navigationBarTitle("", displayMode: .inline)) {
    SettingsRowsView(systemName: "greetingcard", image: "", title: "Connections")
}

我想本地化"Connections"

我试过了:

NavigationLink(destination: ManageConnectionsView(user: user).navigationBarTitle("", displayMode: .inline)) {
    SettingsRowsView(systemName: "greetingcard", image: "", title: LocalizedStringKey("Connections"))
}

但是说: Cannot convert value of type 'LocalizedStringKey' to expected argument type 'String'

不创建额外变量的正确方法是什么?

编辑:

我环顾四周发现了这个: String.localizedStringWithFormat(NSLocalizedString("Connections", comment: ""))

这是最新的解决方法还是有更简单的 SwiftUI 版本?

更改 SettingsRowsViewLocalizedStringKey 取代 String