excel2l10n 0.1.5
excel2l10n: ^0.1.5 copied to clipboard
A tool to convert excel to l10n files.
excel2l10n #
A tool to convert excel to l10n files.
Installation #
dart pub add dev:excel2l10n
Usage #
-
Create a file named
excel2l10n.yamlin your project root like this:platform: # Currently only supports feishu name: feishu # Get it on https://open.feishu.cn/ app_id: cli_xxxxxxxxxxxxxxxx # Get it on https://open.feishu.cn/ app_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # It's your spreadsheet's token, usually in your spreadsheet url, # like https://xxxxxxxxxx.feishu.cn/sheets/:spreadsheet_token spreadsheet_token: xxxxxxxxxxxxxxxxxxxxxxxxxxx # Currently supports getx and arb target: arb # The output directory output_dir: outputIf your target has additional settings, you can add them in the
targetsection like this:target: name: arb # Other settings-
Details for target arb:
genL10nYaml: true: Whether to generatel10n.yamlfile.
-
Details for target localizations:
- No need to generate
.arbfile, directly generate.dartfile. - Generate
TextSpanforplaceholders. It means you can useText.richto display the value.
- No need to generate
-
-
Your table should look like this:
key description en zh ... hello Greeting in home page Hello! 你好! ... The front two columns are required, and the rest are languages you want to support.
Do not have empty columns in the middle.
-
Run the following command in your terminal:
dart run excel2l10n