Questions tagged [flutter-localizations]

79 questions
0
votes
1 answer

Flutter localization: Formatting issue in app_en.arb

This is my app_en.arb file: { "app_title": "Results and standings", "results": "Results", "standings": "Standings", } However, when I run flutter gen-l10n, the console prompted the following error which I don't understand why, because…
xemexpress
  • 177
  • 1
  • 13
0
votes
1 answer

I can't get the country code in Flutter. Everything is either us or en

I can't get the country code in Flutter. Everything is either us or en. It shows up as us or en even if I change the device's region or language. I want to show the language and region registered on the user's device. @override Widget…
Tdayo
  • 269
  • 4
  • 11
0
votes
0 answers

How to reset Localization in english after logout in flutter

I have implemented localization in my app. It has two languages arabic and english. It is working fine but if i want to logout then i want to set it again to default language english. Any suggestions how can i do it? Note i am using simple method…
0
votes
0 answers

How to fetch which sim card received SMS in flutter?

Currently I am fetching the SMS details using sms package in flutter. But I am not able to get the receiver's number using that package. I want to know How I can get those receiver's details? If not, I am trying to get which sim card has received…
0
votes
0 answers

Problem in multilingualizing the app in flutter

I encountered a problem in making my app multilingual. On the other pages of my app, when the code S.of(context).myText is called, the code works correctly and And the text corresponding to the language chosen by the audience is displayed, but on…
0
votes
1 answer

Flutter Intl plugin – how to set location of l10n directory that is generated?

I'm trying to use the flutter_intl plugin for Android Studio with an add-to-app Flutter app I'm developing on Android (by which I mean the Flutter app exists within an Android app, in its own sub-directory, and the Android Studio project includes…
0
votes
1 answer

unable to translate the whole app using easy localization flutter

I have an app where I am converting English to Arabic. I am using easy localization package. The problem I am facing is, I am only able to convert one page (the page in which I choose the English is turning to Arabic) but when I go to another page,…
newtocode
  • 17
  • 3
0
votes
1 answer

Unable to refresh text in child pages using flutter_localizations,intl

I'm trying to change localized words through my whole app. But it only changes when I restart my App or when I do subscription on lang changes. Is there any native way to change localized word without any subscription and have the same result as I…
0
votes
1 answer

Flutter Error: StackOverflowError - BuildContext

I came accross with StackOverFlow error which caused by self reference. I do not know how to fix it? TravelBlog.dart class Travelblog extends StatelessWidget { final _list = Travel.generateMembersMain(context); final _pageCtrl =…
0
votes
2 answers

Flutter - change locale and persisting with Provider

I am really out of options here. I am currently trying to have an option in my settings that enable the user to change language on a Button tap with Provider. Changing the language currently works just fine, but it is not persisted, because I am…
0
votes
2 answers

How to put a list of string in Flutter localizations?

I'm developen a flutter application and in order to internationalize it I'm using Flutter_localizations package. It works great and it is very easy to implement. So, using this package I have a JSON file with some word with his translations as you…
0
votes
1 answer

add if statement in flutter based on easy_localization user language

i'm traying to add if statement in flutter based on easy_localization chosen language here is the code Future handleFcmSubscribtion() async { final SharedPreferences sp = await SharedPreferences.getInstance(); bool _subscription =…
0
votes
0 answers

Kurdish is currently available in Google Translate, but has not yet been added to the flutter_localization

Kurdish is currently available in Google Translate , but has not yet been added to the flutter_localization package! How can I add Kurdish language ? Because we really need to have Kurdish language officially in our apps. Kurdistan country code is…
Amin
  • 66
  • 3
0
votes
1 answer

Flutter - How to force flutter_localizations to the desired lang?

I have integrated flutter localizations dependent of system language, works very well. But I want to "force" language programmatically, without matters on system language. My app root: return GetMaterialApp( localizationsDelegates: const [ …
0
votes
1 answer

Localization support in Flutter

In my Flutter application, I have added support for English, Arabic, and Chinese languages. I am showing these three text widgets inside a List View. I would like to display Arabic language text only in RTL mode(Without Directionality widget). Any…
Bumblebee
  • 33
  • 4