If this option is not specified, a summary of the messages that have not been translated will be printed on the command line. Using this option will create a JSON file at the target location, in the following format: ![]() untranslated-messages-file The location of a file that describes the localization messages have not been translated yet. output-localization-file The filename for the output localization and localizations delegate classes. template-arb-file The template arb file that will be used as the basis for generating the Dart localization and messages files. If unspecified, this defaults to the same directory as the input directory specified in "-arb-dir". The app must import the file specified in the "-output-localization-file" option from this directory. If output-dir is specified and the synthetic-package flag is enabled, this option will be ignored by the tool. output-dir The directory where the generated localization classes will be written if the synthetic-package flag is set to false. arb-dir The directory where the template and translated arb files are located. suppress-analytics Suppress analytics reporting when this command runs. version Reports the version of this tool. d, -device-id Target device id or name (prefixes allowed). (Use "-vv" to force verbose logging in those cases.) If used with "flutter doctor", shows additional diagnostic information. If used with "-help", shows hidden options. v, -verbose Noisy logging, including all shell commands executed. ![]() Generate localizations for the current project. For your convenience, this is the actual output: app % fvm flutter gen-l10n -h There are more configurable options than there are mentioned in the official documentation. If you want to know all the options there are for localization, it is a good idea to run this command and examine the output. I have some tips and tricks that I would like to share with you. This works pretty well and you can find the official documentation here: Since Flutter version 1.22, Flutter has built-in support for localization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |