You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: 'The application needs to be restarted to change language',
221
+
okButtonText: 'Quit!'
222
+
}).then(() => {
223
+
L.localize.overrideLocale(selectedLang);
224
+
if (isAndroid) {
225
+
_android.foregroundActivity.finish();
226
+
} else {
227
+
exit(0);
228
+
}
229
+
});
230
+
```
231
+
232
+
> **Important:** In case you are using [Android app bundle](https://docs.nativescript.org/tooling/publishing/android-app-bundle) to release your android app, add this to
233
+
> App_Resources/Android/app.gradle to make sure all lanugages are bundled in the split apks
234
+
235
+
```groovy
236
+
android {
237
+
238
+
// there maybe other code here //
239
+
240
+
bundle {
241
+
language {
242
+
enableSplit = false
243
+
}
244
+
}
245
+
}
246
+
```
247
+
248
+
> **Tip:** you can get the default language on user's phone by using this
0 commit comments