gpt4 book ai didi

ios - 如何检测是否使用了英文 localizable.strings?

转载 作者:行者123 更新时间:2023-11-29 02:51:17 32 4
gpt4 key购买 nike

在我的应用程序中,我希望能够检测用户何时使用我的英文版 localizable.strings。最好的方法是简单地在 localizable.strings 的英文版中放置一个标志并检查其值是否为“YES”?例如:

/* Key which determines if the language is English */
"EnglishKey" = "YES";

有没有更好的方法来实现这一点?

最佳答案

这似乎是我真正找到的唯一方法——在 localizable.strings 中放入一个字符串来识别语言,然后读入它。让我有点惊讶的是没有其他方法可以找到,但我在出现更好的情况之前,暂时将此标记为是。

关于ios - 如何检测是否使用了英文 localizable.strings?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24490588/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com