erisu commented on issue #1094:
URL: https://github.com/apache/cordova-ios/issues/1094#issuecomment-1985944497

   I think localization is probaly out of scope but you could try either using 
that plugin or maybe something like this in config.xml.
   
   ```xml
   <!-- enable the supporting languages CFBundleLocalizations (e.g. English & 
Japanese) -->
   <config-file parent="CFBundleLocalizations" target="*-Info.plist" 
mode="overwrite">
       <array>
           <string>en</string>
           <string>ja</string>
       </array>
   </config-file>
   
   <!-- copy the Japanese localization file InfoPlist.strings file -->
   <resource-file  src="resource/ios/InfoPlist-ja.strings" 
target="ja.lproj/InfoPlist.strings" />
   ```
   
   Create the development file `InfoPlist-ja.strings` and place it in a 
resource directory. 
   
   When you run `cordova prepare` it will be copy this file (`resource-file`) 
into the target path which resides in the iOS project. Note that the target 
file name does not match source. I recall the file name must match 
`InfoPlist.strings` in the iOS project to work.
   
   Example `InfoPlist.strings` content:
   
   ```strings
   "NSCameraUsageDescription" = "写真撮影のためのアクセス";
   ```
   
   One important note is that if a third-party plugins also creates the 
`InfoPlist.strings` file for the same locale, this change might overwrite its 
content. In this case you might need to manually manage the `InfoPlist.strings` 
for all plugins or maybe use hook scripts instead of resource-file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to