Last active
March 9, 2024 14:53
-
-
Save erisu/bbe6269631bdbee878179fcf070df57a to your computer and use it in GitHub Desktop.
Cordova-iOS Native String Localizations config.xml File Example
This file contains hidden or 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
| <?xml version='1.0' encoding='utf-8'?> | |
| <widget id="org.apache.cordova.testLocaleProject" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
| <name>testLocaleProject</name> | |
| <description>Sample Apache Cordova App</description> | |
| <author email="dev@cordova.apache.org" href="https://cordova.apache.org"> | |
| Apache Cordova Team | |
| </author> | |
| <content src="index.html" /> | |
| <allow-intent href="http://*/*" /> | |
| <allow-intent href="https://*/*" /> | |
| <platform name="ios"> | |
| <edit-config target="CFBundleDevelopmentRegion" file="*-Info.plist" mode="merge"> | |
| <string>English</string> | |
| </edit-config> | |
| <edit-config target="CFBundleLocalizations" file="*-Info.plist" mode="merge"> | |
| <array> | |
| <string>en</string> | |
| <string>ja</string> | |
| </array> | |
| </edit-config> | |
| <!-- Configuration for Camera Plugin --> | |
| <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge"> | |
| <string>need camera access to take pictures</string> | |
| </edit-config> | |
| <!-- Configuration for Photo Library Usage --> | |
| <edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge"> | |
| <string>need photo library access to get pictures from there</string> | |
| </edit-config> | |
| <!-- Configuration for Location Usage --> | |
| <edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge"> | |
| <string>need location access to find things nearby</string> | |
| </edit-config> | |
| <!-- Configuration for Photo Library Add Usage --> | |
| <edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge"> | |
| <string>need photo library access to save pictures there</string> | |
| </edit-config> | |
| <resource-file src="resources/ios/locale/InfoPlist-ja.strings" target="ja.lproj/InfoPlist.strings" /> | |
| </platform> | |
| </widget> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment