i18n_flow (beta)
Manage translation status in YAML file.
With an official tag feature, i18n_flow
enables you to annotate status information directly in YAML file.
Setup
Installation
Add this line to your Gemfile:
gem 'i18n_flow'
gem 'i18n_flow', github: 'creasty/i18n_flow'
Configuration
Create a configuration file at your project's root directory.
$ cat > i18n_flow.yml
base_path: config/locales
glob_patterns:
- '**/*.yml'
valid_locales:
- en
- ja
locale_pairs:
- ['en', 'ja']
^D
CLI
$ i18n_flow
Manage translation status in yaml file
Usage:
i18n_flow COMMAND [args...]
i18n_flow [options]
Options:
-v, --version Show version
-h Show help
Commands:
lint Validate files
format Format and correct errors
search Search contents and keys
copy Copy translations and mark as todo
split Split a file into proper-sized files
version Show version
help Show help
Configuration file
base_path: config/locales
glob_patterns:
- '**/*.yml'
valid_locales:
- en
- ja
locale_pairs:
- ['en', 'ja']
linters:
- file_scope
- symmetry