-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
语言字符串截取的严谨判断
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 comments
on commit 4e7ead8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@soundtravel 当系统版本大于等于9.0时,language并不是zh-Hans,而是zh-Hans-US哈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥我用真机和模拟器测的都是zh-Hans呢。。版本是iOS9.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个返回的值一直都不太稳定,在很久以前返回的一直是zh-Hans,从iOS9开始,有些版本和机器返回的是zh-Hans-US或者zh-Hans-CN,后面的CN和US取决于设备上设置的区域
这样改不对呀,zh-Hans被截成zh了,bundle里面就找不到本地化资源了