intl_yaml 0.0.2 intl_yaml: ^0.0.2 copied to clipboard
Auto implement intl globalization method from yaml.
intl_yaml #
This package able to Auto implement intl globalization method from yaml.
Getting Started #
install #
intl_yaml: 0.0.1
usage #
- install
intl
dependencies:
flutter_localizations:
sdk: flutter
- create globalize yaml
e.g.
assets/i18n/en.yaml
make: 'Make'
stock: 'Stock'
helloUser:
value: 'hello :user'
examples:
user: 'Guest'
assets/i18n/ja.yaml
make: '作る'
stock: 'ストック'
helloUser:
value: ':user さん、こんにちわ'
examples:
user: 'ゲスト'
- execute
--config-file 'select globalize file'
--config-dir 'select globalize dir(ignore if use `--config-file`)'
--out-lang-dir 'select dir to output the globalize method';
--out-service-dir 'select dir to output the globalize service';
--file-prefix 'globalize method file prefix (defailt: intl_message)';
--default-locale 'default locale(default: en)';
--project-name(-p) 'project name(temporary option)';