You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/05 21:41:39 UTC

[GitHub] zabojad commented on issue #66: iOS - getLocaleName return `en-FR` when the phone is actually in `fr-FR`

zabojad commented on issue #66: iOS - getLocaleName return `en-FR` when the phone is actually in `fr-FR`
URL: https://github.com/apache/cordova-plugin-globalization/issues/66#issuecomment-444660448
 
 
   I've found the cause of this issue. Since iOS 11, `[NSLocale currentLocale]` will return the actual system lang only if the app has listed its supported locales in its `*-info.plist` file under the key:
   ```
   <key>CFBundleLocalizations</key>
       <array>
           <string>en</string>
           <string>fr</string>
           <string>nl</string>
           <string>it</string>
           <string>de</string>
       </array>
   ```
   I think that should be written in the `cordova-plugin-globalization` README file as an iOS specificity...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org