Manage translation status in YAML file.
With an official tag feature, i18n_flow
enables you to annotate status information directly in YAML file.
Add this line to your Gemfile:
gem 'i18n_flow'
# To use the latest version:
gem 'i18n_flow', github: 'creasty/i18n_flow'
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
$ 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
# Base directory
# Default: pwd
base_path: config/locales
# Patterns for locale YAML files
# Default: ['*.en.yml']
glob_patterns:
- '**/*.yml'
# List of all supporting locales
# May want to sync with `I18n.available_locales`
# Default: ['en']
valid_locales:
- en
- ja
# List of master-foreign pairs
# Used by the linter to check symmetry
# Default: []
locale_pairs:
- ['en', 'ja']
# Enabled linters
# Default
linters:
- file_scope
- symmetry