A tool to import translations into native iOS or Flutter app.
- Run command
pub global activate -sgit https://github.com/szotp/localization_sheets
. - Ensure that pub cache and dart path was added to PATH:
# only works if you installed flutter in your $HOME
export PATH=$PATH:$HOME/flutter/.pub-cache/bin
export PATH=$PATH:$HOME/flutter/bin/cache/dart-sdk/bin
- Open the project.
- Create localization.json if it doesn't exist. This file contains options that dictate where and how strings will be generated. TODO: describe possible settings.
- Run
localization_sheets
. - If running for the first time: tool will ask you to open URL and grant some permissions.
- Commit the changes if needed.
In case o problems, delete the cache directory: rm -f ~/.localization_sheets
import 'dart:io';
import 'localization_sheets.dart' as other;
void main(List<String> arguments) {
Directory.current = '<CURRENT>';
other.main(arguments);
}