Open panagulis72 opened 5 years ago
P.S. If i change the language and I use overrideLocale it doesn't change the old translations, even if I use
this.cdr.detectChanges();
Any suggestion?
Nobody?
any suggestion ?
@panagulis72 - found any work around for this?
@harshitjain0803 I'm sorry, I didn't
@panagulis72 - Try to call androidLaunchEventLocalizationHandler() after overrideLocale().
@emog call androidLaunchEventLocalizationHandler() after overrideLocale(). make it works. but after kill the app and reopen again, the app language back to default device's language. how to make it display with the language selected instead of showing default device's language?
@wyong95 Try adding this in app.component.ts import { on, launchEvent } from '@nativescript/core/application'; import { androidLaunchEventLocalizationHandler } from 'nativescript-localize/localize';
on(launchEvent, (args) => { if (args.android) { androidLaunchEventLocalizationHandler(); } });
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) .......
i am able to see the changed language after killing the app and again reopening it, but there is jerk on screen
Possible solution for this (worked for me and someone else, too) can be found here: https://github.com/EddyVerbruggen/nativescript-localize/issues/98
The new overrideLocale function (with 4.2 version of this plugin) doesn't work with Android