Questions tagged [flutter-localizations]
79 questions
32
votes
8 answers
flutter_localizations from sdk depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from sdk is forbidden
Because every version of flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden.
So, because fstore depends on flutter_localizations any from SDK, version solving…

EKRAMUL
- 321
- 1
- 3
- 5
9
votes
2 answers
How to get AppLocalizations import suggestion in Android Studio Quick Fix menu
Problem Statement
Currently, bringing up the Android Studio Quick Fix menu (Opt/Alt+Enter keyboard shortcut) on AppLocalizations does not suggest importing the generated file.
The AppLocalizations class lives at…

chemturion
- 283
- 2
- 16
8
votes
1 answer
Flutter Internationalization: How to generate AppLocalizations file with nested objects in .arb?
How can we use nested objects in arb files? Flutter gen doesn't work if there's a nested object.
l10n.yaml
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
output-class:…

motasimfuad
- 530
- 4
- 12
7
votes
1 answer
How to fix ICU Lexing Error: Unexpected character in Flutter
I am using flutter_localizations to localize my app.
Since updating to Flutter 3.7 i am getting this error:
ICU Syntax Error: Expected "identifier" but found "}".
This =|(){}[] obviously
This =|\(){}[] obviously is the text that i have in my .arb…

deczaloth
- 7,094
- 4
- 24
- 59
4
votes
1 answer
Flutter localization using Firebase Remote Config
I want to create a Flutter app that will support different languages based on user device localization.
I want to store all translation texts via Firebase Remote Config. That way, remote changes will apply to all users without the need to update the…

genericUser
- 4,417
- 1
- 28
- 73
4
votes
3 answers
Localization of notifications does not work
I want to localize notification , and i find that there is properties for that , like
title_loc_key, body_loc_key
he FCM fields used for localizing (I18N) the notification title and body are not working. For example:
{
"android" : {
"priority"…

Fatima ayaa
- 610
- 6
- 16
4
votes
1 answer
How to manually change app language with Flutter_localizations and Bloc?
void main() async {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => LanguageCubit(),
…

Raghim Najafov
- 315
- 3
- 15
3
votes
2 answers
Flutter GetX updating locale is resetting GoRouter navigation bug
I am using GoRouter for navigation and GetX for multiple things, including updating the app's locale.
It is updating the language perfectly fine, but the problem is that somehow my navigation stack is getting reset after the call.
I've made a…

Chris
- 1,828
- 6
- 40
- 108
3
votes
3 answers
Flutter: Undefined name 'AppLocalizations'. Try correcting the name to one that is defined, or defining the name
Flutter Default Localizations isn't work when I use GetX Statemanagement. It show me a error like
Undefined name 'AppLocalizations'.
Try correcting the name to one that is defined, or defining the name.
How Can I fixed this ?

Abir Ahsan
- 2,649
- 29
- 51
3
votes
0 answers
How to solve this error "No MaterialLocalizations found."
Please i am a beginner in flutter, i want to add localization in my app-- i created a dropdown button which a user can use to choose a language and the app would be translated to that specific language. After choosing a language from the droupdown…

Khalipha_Jibreel
- 31
- 3
3
votes
0 answers
Flutter l10n - Dynamic key
I am actually coding a multi-language app and I have a problem to get my resources on different languages. My app is currently working on one language with a json file.
For example I got :
{
"Resorts" : [
{
"name": "Walt Disney World…

Akainn Z
- 51
- 5
3
votes
0 answers
Generating ARB file in intl package does not escape escaped characters
Below is the plural message being used. But, when generating the ARB file, the single quote is not escaping. Similary, I also used double quotes to use the single quotes. That didn't give desired result either.
Intl.plural(
…

Ariel
- 2,471
- 1
- 26
- 43
3
votes
3 answers
Flutter Test with easy_localization and big translation json file
I'm using easy_localization in a flutter project.
I need to write some widget tests.
But it looks like that when the .json file with the translations is too big, the MaterialApp never builds its child and therefore, I cannot test my widgets.
Here is…

Valentin Vignal
- 6,151
- 2
- 33
- 73
3
votes
1 answer
Invalid argument(s): Invalid locale "en_US"
I successfully created my newly supported language which is 'rw' (Rwandan language), and you can change the state of language but every time I restart the app while in my language('rw') state, I get the following error, does anyone know how to…

MN Arsène Arsely
- 71
- 1
- 3
2
votes
4 answers
flutter_localizations from sdk depends on intl 0.18.0 and bookingapp depends on intl ^0.17.0, flutter_localizations from sdk is forbidden
Because every version of flutter_localizations from sdk depends on intl 0.18.0 and bookingapp depends on intl ^0.17.0, flutter_localizations from sdk is forbidden.
So, because bookingapp depends on flutter_localizations from sdk, version solving…

Manju Garg
- 21
- 1
- 2