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 all the Android code as well.) The issue is when I initialise flutter_intl it creates the l10n folder at the base of the Android directory, not further down the tree where Flutter's lib folder actually is. Is it possible to specify in flutter_intl where the l10n folder should be, rather than it being automatically generated within a new lib folder at the root?
Flutter Intl plugin – how to set location of l10n directory that is generated?
1.5k Views Asked by mosh.jinton At
1
There are 1 best solutions below
Related Questions in FLUTTER
- Flutter + Dart: Editing name of a tab shows up a black screen
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- Way to get CustomPainter to track face in Camera Flutter MLKit
- flutter Null check error: did not show file and line number
- Creating multiple instances of a class with different initializing values in Flutter
- I want to paste stickers into to my TextField and to show the stickers beside the emojis
- Flutter plugin development android src not opening after opening example
- Module not found when building flutter app for IOS
- How to make barrier area interactive in flutter modal bottom sheet
- Can an RPC result be included in a Supabase select function in Flutter for Data Modeling?
- Why do I need to wait to reaccess to Firestore database even though it has already done before?
- Flutter web app on Windows -how to support mouse drag for horizontal and vertical scrolling as well as using mouse wheel
- I wrote this time displaying FLUTTER app, How can I improve it?
- Appwrite and / or Spring Boot Backend
- Flutter two_dimensional_scrollables Web app Chrome - cannot get horizontal scroll to work?
Related Questions in ANDROID-STUDIO
- Flutter plugin development android src not opening after opening example
- Listview - Getting error while linking the items correctly in Android Java
- Failed to getEnergyData
- Adding new package in a flutter project does not work untill the android studio is restarted
- unity + Vuforia balck screen in android AR app
- Android Studio Using recently added resources in compose preview in multi-module project
- Flutter project is working in debug version but not in the release version
- Can't run gradlew.bat on Windows
- Android studio crash, nothing in logcat
- Android Studio shows there has 1 usage but No usages found in All places
- Gradle Build errors while running sample code on Android Studio Iguana
- Android camera application restriction to 12 mp
- Change back to default font size in Android Studio
- `android` Does Not Exist in `~/Android/Sdk/platform-tools`
- LSTM frozen layer containing clip_by_value causing android studio to crash when deployed
Related Questions in FLUTTER-LOCALIZATIONS
- intl string not working. stil showing error
- Add separate .arb file in Flutter for formatting
- How do I programatically change Locale in Flutter when using MaterialApp.router()
- Regarding sfCalendar builder , showDatePickerButton in Flutter
- easy localization translation is not working consistently sometimes its not translating the whole app why this issue happens?
- Why is Flutter not generating localization files?
- Adding Flutter_localizations to Flutter App, cause stopping to generate .g dart files
- Group translations in .arb files
- How to run the Flutter pinball code on my PC? The code is stuck on dependencies and many error
- How to apply AppLocalizations on lists in Flutter?
- How to use dynamic strings with flutter_localizations
- flutter_localizations error Null check operator used on a null value
- Localization delegate is messing with widget test flutter
- Flutter arb file spacing in a select translation
- How to use exactly plural in localization using flutter
Related Questions in FLUTTER-INTL
- How to change the pattern of compact formatting in NumberFormat class of intl package of flutter?
- intl string not working. stil showing error
- Why is Flutter not generating localization files?
- Remote, dynamic localization in flutter apps
- Flutter Intl plugin – I am failing to set the location of l10n directory that is generated
- Issue with flutter_intl while using same key in parent and child package?
- Why Flutter intl plugin keeps generating wrong files even if proper template provided?
- Internationalisation in Flutter: how do you get all keys from one select?
- old flutter project, flutter_localizations problem
- Flutter facing issue with passport MRZ 2 digit year code
- How to show different mesurement units according to the user locale in flutter/dart
- Flutter analyze finds issues in Gitlab CI/CD pipeline that it does not on local
- Flutter/Dart: DateFormat (using intl): how to remove zero prefix?
- Check if flutter-intl translation exists and use it
- Why flutter give an error 'Undefined name DateFormat"?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Just create an
l10n.yamlfile at the root directory and put this in the file:Change the directory according to your needs.
change
arb-dirfor translations files directory andoutput-dirfor output files.Run
flutter gen-l10n --helpcommand, parameters listed can be used inl10n.yamlfilesee also: https://stackoverflow.com/a/71401194/8807231