Questions tagged [flutter-localizations]
79 questions
2
votes
0 answers
Is it possible to define a string in Flutter *.arb file that should not be translatable?
In the Android strings.xml file this can be done using translatable attribute:
in
I could not find any solution for this for the Flutter localization *.arb files.

bzalar
- 35
- 7
2
votes
1 answer
FormatException: Unexpected character (at line 439, character 1) } with arb file
I have two .arb files in my project, everything was working fine, but today I added two strings and I am receiving this error when I am doing flutter pub get:
Generating synthetic localizations package failed with 1 error:
Exception: The arb file…

Karol Wiśniewski
- 378
- 4
- 15
2
votes
1 answer
Flutter Localization for data from Firestore
I would like to localize my app in 4 different languages.
I have data that I retrieve from Firestore (i.e. titles, descriptions, etc)
What would be a good approach to do this? I found this library
https://pub.dev/packages/easy_localization
What is…

R. Andrew
- 21
- 2
2
votes
1 answer
Because project depends on flutter_localizations any from sdk which depends on intl 0.16.1, intl 0.16.1 is required
Okay so i have built an app nearly a year and half ago for my company, my boss recently wanted me to add a new screen to it and i did using all old and deprecated code of firebase and everything else (i really really dont wanna update them because i…

azheen
- 897
- 4
- 15
- 30
2
votes
2 answers
How can I fix Flutter_localizations error on the vscode? - Target of URI doesn't exist
I'm trying to use flutter_localizations and I followed this guide
When I save pubspec.yaml on vscode then pub get is ran.
After that vscode can't find app_localizations.dart file.
But this error messages will disappear when I reopen vscode.
Is there…

Seong Jun
- 171
- 10
2
votes
2 answers
I have a stored List data and how can I localize it in flutter?
I can translate the text inside the widget using AppLocalizations.of(context)!.translated and it work fine
However, when I want to localize a stored List<> data which will be used in listView Builder, I am not able to do so, since it need…

D Sun
- 31
- 6
2
votes
1 answer
How to change initial language of flutter app?
I am trying to create Arabic flutter app and the default language of flutter app is English , I want the app to start with Arabic language , So how can I achieve this ?

Omar Abdelazeem
- 381
- 2
- 20
1
vote
1 answer
old flutter project, flutter_localizations problem
I have a problem with running an older flutter project on my windows machine.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale…

Amr Hassan
- 160
- 8
1
vote
1 answer
flutter_localizations implementation update
I have program which now changes language to desired in cache using shared_preferences and when I open again program it will use language which i selected, but i want to make that my program would automatically change when i select different…

AurimasKl
- 11
- 1
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": {
…

Otabek Ochilov
- 33
- 5
1
vote
0 answers
Flutter localisation not working when adding a new language
I'm trying to write my simple flutter app for adding localisation for new language name "Hmong" with language code "hmn".
I've written some file of code there as described in docs. But, not working for me,
main.dart file…

Jay Mungara
- 6,663
- 2
- 27
- 49
1
vote
1 answer
How to access flutter localization without a context
I am using flutter localization from their official documentation here, and I am using clean architecture in my project. I want to access the app localization class without a context so I can translate the error messages in the repository file.
Here…

ibrahim Eltayfe
- 118
- 2
- 5
1
vote
0 answers
Localization Flutter problem with Material Date Picker on Android
I'm trying to make my Flutter app use multiple languages, and especially Calendar (Material Date Picker). It should work like this: if the device’s first language is available in the App, use it language in the App. As Android could have a list of…

Anna R.
- 81
- 12
1
vote
1 answer
Could not find package flutter_localization in the Flutter SDK
I am currently trying to implement localization in my Flutter App but whenever I try to add the dependency for flutter_localization, I get the following error Message:
Because the timer depends on flutter_localization from SDK which doesn't exist…
1
vote
0 answers
No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?
I am getting this above error whenever i am trying to route to another page in flutter.
Following is my code
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => MyHomePage(),
));
},

angelina
- 59
- 2
- 11