来自数据库的动态字符串的Swiftui本地化

发布于 2025-01-31 12:07:18 字数 178 浏览 5 评论 0原文

我正在使用Xcode Auto生成本地化字符串将我的应用程序本地化在SwiftUi中,但是我面临的问题如何在我的情况下定位来自数据库的字符串

​我有描述的图片指向从数据库和数据库中下载的数据,字符串可能是评论中的选项之一。我尝试添加局部stringkey方法,但是如何翻译所有字符串?

感谢您的帮助

I'm localizing my app in swiftui using the Xcode auto generating localized string but I'm facing with a problem on how to localize a string that came from a database in my case Firestone

view string

as is possible to see in the picture I have the description that point to the data downloaded from the database and in the database the string could be one of the option in the comment. I have try to add LocalizedStringKey method but how can I translate all the string?

thanks for your help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文