intl_yaml 0.0.3 intl_yaml: ^0.0.3 copied to clipboard
Auto implement intl globalization method from yaml.
☠ Attention ☠
This package is unverified. I will update later.
このパッケージは未検証です。後日アップデート予定です。
intl_yaml #
This package able to Auto implement intl globalization method from yaml.
Getting Started #
install #
intl_yaml: ^0.0.3
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)';
example #
flutter pub pub run \
bin/main.dart \
--config-dir example/lang \
--out-lang-dir example/configs \
--out-service-dir example/services \
-p intl_yaml