Questions tagged [flutter-easy-localization]

12 questions
2
votes
1 answer

How to disable logging in easy localization package in flutter?

I'm using easy localization package in my flutter app and the logger keeps firing Localization key not found !. It's annoying and i can't trace anything in my terminal, How can i disable it ?
2
votes
2 answers

Flutter with `easy_localization` hangs the widget test forever

Widgets that internally use tr extension fail. Consider this example: void main() { testWidgets('no decks', (WidgetTester tester) async { await tester.pumpWidget(const DeckList(decks: [])); await tester.pumpAndSettle(); // test code …
Eray Erdin
  • 2,633
  • 1
  • 32
  • 66
1
vote
1 answer

Flutter localization with Firebase Remote Config

In my Flutter project I am going to use localization with Firebase Remote Config In Firebase remote config all locales in one json file: { "page1": { "text1":{ "ru" :"russian text", "en" :"english text" } }, "page2": { …
1
vote
0 answers

easy_localization - using new line - \n in a String

In my Flutter Project I'm using the package easy_localization (https://pub.dev/packages/easy_localization). I want to use Strings like this: This is my Test String.\nIt is supposed to be separated by a new line!. easy_localization is ignoring the \n…
F.M.
  • 630
  • 1
  • 5
  • 18
1
vote
1 answer

How to add comments line in flutter easy localization translation file?

I could not figure it out how to add comments line in the translation file of easy localization package for flutter. The file is in Json format. This can be useful in large file.
Giovanni
  • 512
  • 2
  • 6
  • 23
0
votes
0 answers

flutter easy_localization 3.0.2 - default language at boot

I've this app with flutter 3.0 and easy_localization 3.0.2 package. I want to set a default language at boot of the app. I use startLocale: Locale('ru', 'RU') but it seem not function. It use the language that is set in the context in the previous…
0
votes
0 answers

Flutter: Listen to Locale changes using EasyLocalizations

I'm currently using the EasyLocalization package in my Flutter app. This works great with the predefined translation files, but I want to request some data from a server again, if the locale has changed. Is there a way to listen to locale changes in…
Sebb
  • 121
  • 2
  • 10
0
votes
1 answer

Flutter package easy_localization plurals not working as expected

Using the package easy_localization for my apps translations. As an example here is the translations file json: {"test": { "zero": "zero", "one": "one", "two": "two", "few": "few", "many": "many", "other": "other"},} If I then simple print these to…
Michael Johnston
  • 718
  • 2
  • 11
  • 25
0
votes
2 answers

Cannot translate language in Flutter

I'm using easy_localization in my app. I have changed the language setting from English to Chinese, but app still displays English. This is my project directory: main.dart runApp(EasyLocalization( supportedLocales: const [Locale('en', 'US'),…
Hoo
  • 1,806
  • 7
  • 33
  • 66
0
votes
1 answer

Flutter Easy Localization Doesn't Change Bottom Navigation Bar Item's Titles

I am using easy_localization 3.0.1 for use several language in my app. main file have 4 pages to navigate and I am using bottom navigation bar to change body of this file. In Profile page I should have change language of the app with…
0
votes
1 answer

tr() of EasyLocalization is not accessible in flutter

I am trying to do language translation, I initialized it on main file,here my main file looks like Future main() async { WidgetsFlutterBinding.ensureInitialized(); await EasyLocalization.ensureInitialized(); …
TimeToCode
  • 1,458
  • 3
  • 18
  • 60
0
votes
2 answers

how to make easy localization button to switch languages in the application?

I'm using easy Localization Package in 2 languages Application ,,And I Need To swith langauge using a Button . How could i Do That? await EasyLocalization.ensureInitialized(); log(token); runApp( EasyLocalization( supportedLocales:…