Questions tagged [flutter-localizations]

79 questions
0
votes
0 answers

Flutter ICU Lexing Error: Unmatched single quotes

I am internationalizing my app, and after adding Serbian and Russian languages, I started getting unexpected character errors as per How to fix ICU Lexing Error: Unexpected character in Flutter Implementing the fix there ", add the following to your…
giorgio79
  • 3,787
  • 9
  • 53
  • 85
0
votes
0 answers

Flutter - how to support all languages in an app, eg include all of kMaterialSupportedLanguages in supportedLocales?

Instead of specifying locales one by one in the MaterialApp supportedLocales entry, https://docs.flutter.dev/accessibility-and-localization/internationalization#specifying-supportedlocales could we support every possible locale from…
0
votes
0 answers

Once you have called dispose() on a FixedExtentScrollController, it can no longer be used. The relevant error-causing widget was CupertinoDatePicker

CupertinoDatePicker( maximumDate: DateTime.now(), onDateTimeChanged: (DateTime newdate) { widget.birthdate = newdate; }, minimumDate: DateTime(1950), initialDateTime: DateTime( …
0
votes
0 answers

Flutter translate API data

I have an API that include 17.000 words. I show this words on a flipcard on the screen. When the back of card, I want translated versions of these words. How can I do that? Do I use Yandex translate API? I tried to use Google translate API but it…
0
votes
1 answer

Flutter: ChangeNotifierProvider does not listen to Changes

I am very new to flutter. I have added localization to my app and I made a Language Switcher. I am trying to provide the changes of the Language Switcher witch ChangeNotifierProvider. It works on all Strings except the Bottom Navigation Bar. It has…
0
votes
1 answer

Localization issue in Flutter - AppLocalizations not found`

I have added localization into my flutter app following flutter tutorial and few guidelines on internet. However, it seems not working. I have done this in my main.dart import 'firebase_options.dart'; import…
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
0 answers

Flutter's CupertinoDatePicker localization issues

Would anyone know why the CupertinoDatePicker would display the days in English but the months in French ? My iPhone 6 is running iOS 12 is in French. I also reproduce this issue on my iPhone X running iOS 16 and also in French. I am using…
Mackovich
  • 3,319
  • 6
  • 35
  • 73
0
votes
0 answers

Flutter: Localization with i18n() for Json file many levels

I use localization 2.1.0 (https://pub.dev/packages/localization). I have a file en_US.json: "home": { "welcome text": "This text is in english", "my page": "My page" } How to call "welcome text".i18n() from "home" ? String text…
Dee Li
  • 1
  • 1
0
votes
1 answer

Prevent Google Translate from translating a variable

I see Google Translate, both the web interface and API translates a variable like '{userName}'. Is there a way to preserve the variable as it is? Context: I have a Flutter project with localization support. The ARB file contains an entry like…
0
votes
0 answers

Using flutter app as a package for another app

I have app, which already was finished. Now I need to make few white label apps. In order to keep same core code base I want to reuse my existing app as a base for building new apps. I went simple way by adding it as dependency to newly created…
Avdept
  • 2,261
  • 2
  • 26
  • 48
0
votes
0 answers

Flutter Localizations automatically change phrase to old version when starting debug mode

When I try to modify a string of text and run the app in debug, Visual Studio automatically change the string to the old version.
0
votes
1 answer

I am multilingual in flutter gen-l10n and would like to multilingualize the app name and permission requests in info.plist

I am multilingual in flutter gen-l10n and would like to multilingualize the app name and permission requests in info.plist. reject detail We noticed an issue in your app that contributes to a lower-quality user experience than App Store users…
Tdayo
  • 269
  • 4
  • 11
0
votes
1 answer

How can I fetch a specific language string from an arb file in Flutter, regardless of the OS language setting?

I am currently using AppLocalizations in my Flutter app to get strings from an arb file based on the language set in the OS. For example, if the OS language is set to English, the app will also display English strings. However, I'd like to fetch…
user18084770
  • 31
  • 1
  • 3
0
votes
0 answers

How to handle Flutter localized text with different number of placeholders for different locales?

I'm using the intl_utils package. I have a localized text that accepts 2 placeholders in Japanese and 3 placeholders in English. When generating the files, error is thrown due to the mismatch. How to fix this?
sanjay
  • 31
  • 5
0
votes
0 answers

Flutter Problem when Changing Device Location Service

I have a problem with my flutter code. In my app I have a page when I open it, if the location of my device is disabled, I display a page 'your location is disabled' with a button to access the location settings. My problem is that if I go to the…
Abdoulaye
  • 69
  • 6