主页 Fixing iOS System Photo Album Not Showing Chinese
Post
Cancel

Fixing iOS System Photo Album Not Showing Chinese

Preface

This article is strongly personal in tone. If you find it uncomfortable to read, please close it as soon as possible. This article is only a personal learning record. You are welcome to repost or share it within the scope of the license agreement, but please respect the copyright and keep the original link. Thank you for your understanding and cooperation. If you find this site helpful, you can subscribe via RSS. Thanks for your support!

Recently in development I ran into a bug: tapping to select from the iOS system photo album in H5 shows English text.

Solution

Add the following code to the plist in Xcode

1
2
<key>CFBundleAllowMixedLocalizations</key>
<true/>

Alternatively, add Localized resources can be mixed in info.plist and set it to YES; this indicates whether the app is allowed to adopt the languages of the framework libraries.

Then the result at runtime:

Summary

Thanks for watching — that’s all for now.

该博客文章由作者通过 CC BY 4.0 进行授权。