How to change the native localization

In my project I use ngx-translate to translate the app. However the plugins are not updated when I change the language.

Is it possible to change the native language dynamically through a cordova plugin? I have reviewed the cordova-plugin-localization-strings plugin but it does not allow modifying the native language.

Thanks in advance.

Do you use Cordova or Capacitor?

And what plugins are not updated?

For native views, such as the Camera view, system buttons, etc., you have to add supported localizations to the project.
For other custom views, then it depends on the plugin, they might allow localization or not.

I am using cordova.
The plugins that are not updated with the translation are image-picker and camera.
In this case how can I add supported localizations to the project?
What would be the solution to change the native language?

Thanks.

You can try something like this in the config.xml

<edit-config target="CFBundleLocalizations" file="*-Info.plist" mode="overwrite">
  <array>
    <string>en</string>
    <string>es</string>
    <string>fr</string>
  </array>
</edit-config>

@jcesarmobile after adding this got compilation error

ionic cordova build ios --debug --verbose
...
Updating Storyboard image set contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
doc.find is not a function
TypeError: doc.find is not a function
    at Object.resolveParent (/Users/admin/.nvm/versions/node/v10.24.0/lib/node_modules/cordova/node_modules/cordova-common/src/util/xml-helpers.js:201:26)
    at /Users/admin/.nvm/versions/node/v10.24.0/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:347:53
    at Array.forEach (<anonymous>)
    at is_conflicting (/Users/admin/.nvm/versions/node/v10.24.0/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:339:17)
    at PlatformMunger.add_config_changes (/Users/admin/.nvm/versions/node/v10.24.0/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:190:33)
    at /Users/admin/.nvm/versions/node/v10.24.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:112:32
    at _fulfilled (/Users/admin/prj/mukime_original/platforms/ios/cordova/node_modules/q/q.js:854:54)
    at /Users/admin/prj/mukime_original/platforms/ios/cordova/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/Users/admin/prj/mukime_original/platforms/ios/cordova/node_modules/q/q.js:816:13)
    at /Users/admin/prj/mukime_original/platforms/ios/cordova/node_modules/q/q.js:624:44
[ERROR] An error occurred while running subprocess cordova.

ionic info                               

Ionic:

   Ionic CLI                     : 6.15.0 (/Users/admin/.nvm/versions/node/v10.24.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 4.11.7
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-webview 4.1.3, (and 12 other plugins)

Utility:

   cordova-res                          : 0.15.3
   native-run (update available: 1.4.0) : 1.3.0

System:

   ios-deploy : 1.11.4
   ios-sim    : 8.0.2
   NodeJS     : v10.24.0 (/Users/admin/.nvm/versions/node/v10.24.0/bin/node)
   npm        : 7.12.0
   OS         : macOS Catalina
   Xcode      : Xcode 11.7 Build version 11E801a

try updating cordova CLI to 10 and maybe remove and add ios platform, as far as I remember that problem was fixed in one of the cordova dependencies long ago, but needs a reinstall of the packages