本地化 - "error: read failed: The data couldn’t be read because it isn’t in the correct format"



我得到:

错误:读取

失败:无法读取数据,因为它不在 格式正确。

尝试运行我的本地化文件时:

"Hi" = "Hi translated"
"Bye" = "Bye translated"

知道为什么吗?只在Objective-C中找到了其他答案。

即使您使用的是不需要;的 Swift,您仍然需要在本地化文件中使用分号。正确的格式是:

"Hi" = "Hi translated";
"Bye" = "Bye translated";

在每行末尾添加;

"Hi" = "Hi translated";
"Bye" = "Bye translated";

相关内容

最新更新