Since #237 adding a defaultlocale="XX" attribute to the widget tag in config.xml allows to set the CFBundleDevelopmentRegion to a different language (in the _-Info.plist_ file).
⇒ This same language should also be applied into the pbxproj files of the project and CordovaLib, to replace the hardcoded en from the templates for developmentRegion and knownRegions.
Feature Description
The templates for the project and CordovaLib are used to init the iOS project structure.
With previous #237, the __PROJECTNAME_\-Info.plist file is modified to target CFBundleDevelopmentRegion and replace the hardcoded value of en_US with the language set through defaultlocale.
Feature Request
Motivation Behind Feature
Since #237 adding a-Info.plist_ file).
defaultlocale="XX"
attribute to thewidget
tag in config.xml allows to set theCFBundleDevelopmentRegion
to a different language (in the _⇒ This same language should also be applied into the pbxproj files of the project and CordovaLib, to replace the hardcoded
en
from the templates fordevelopmentRegion
andknownRegions
.Feature Description
The templates for the project and CordovaLib are used to init the iOS project structure.
With previous #237, the __PROJECTNAME_\-Info.plist file is modified to target
CFBundleDevelopmentRegion
and replace the hardcoded value ofen_US
with the language set throughdefaultlocale
.Same should be done in project pbxproj file and CordovaLib pbxproj file, targeting
developmentRegion
(+) andknownRegions
(+) and replacing the hardcoded value ofen
there too.~(may require https://github.com/apache/cordova-node-xcode/issues/122?)~
Alternatives or Workarounds
Custom script after platform add.
Or should I start a new cordova-plugin to add more defaults like this about locales? (to include this, https://github.com/apache/cordova-android/issues/1396, https://github.com/kelvinhokk/cordova-plugin-localization-strings/issues/65, and more?)