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
Hi,
just starting to add the assett loader and easy localisation in my application.
If I build and run my application on my pc both the emulator and the usb connected phone work perfectly using the correct languages depending on the locale defined.
If I build the app using a CI/CD tool (codemagic.io) the assett loader stops working showing the strings ids instead of the translation.
If I attch and debug from android studio still doesnt work, but once I reload the application directly from Android studio now the locales are working.
Looks like then there is an initialization problem.
Hi,
just starting to add the assett loader and easy localisation in my application.
If I build and run my application on my pc both the emulator and the usb connected phone work perfectly using the correct languages depending on the locale defined.
If I build the app using a CI/CD tool (codemagic.io) the assett loader stops working showing the strings ids instead of the translation.
If I attch and debug from android studio still doesnt work, but once I reload the application directly from Android studio now the locales are working.
Looks like then there is an initialization problem.
The code in main.dart is:
`
import 'package:easy_localization/easy_localization.dart';
import 'package:easy_localization_loader/easy_localization_loader.dart';
..
void main() {
runApp(EasyLocalization(
supportedLocales: [Locale('en', 'US'), Locale('it', 'IT')],
fallbackLocale: Locale('en', 'US'),
path: 'assets/translations/langs.csv',
assetLoader: CsvAssetLoader(),
child: MyApp(),
));
}`
class MyApp extends StatelessWidget { ... localizationsDelegates: context.localizationDelegates, supportedLocales: context.supportedLocales, locale: context.locale,
Can you please help me in solving the error?
Thanks
The text was updated successfully, but these errors were encountered: