This document presents process of converting localization strings from excel/csv file into .arb files required for use in the application. This is applicable only when using https://plugins.jetbrains.com/plugin/13666-flutter-intl plugin.
- Save excel as .csv file. Use UTF-8 type to get right representation of signed letters from another languages
- use arb generator to generate updated .arb files in localization directory of your application. Delimiter parameter is optional and it defaults to ",". You will maybe need to comment some of your dependencies to be able to use this package
arb_generator:
input_filepath: "translations.csv"
output_filepath: "lib/l10n"
filename_prepend: "intl_"
csv_settings:
delimiter: ";"
base_index: 1
- you will get output .arb files looking like this
- Run this script to remove unused descriptions and other unused strings from your .arb files by adding it to your application directory (clean_intl.py). You will maybe need to adjust root_folders variable in the script depending on your project structure
- You will get cleaned .arb files