Sha256: 45fea2bd36e788acd64c6f63675040ab72b52f26c88ff1757615b2d43d42cc47
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
 i18n_flow (beta) ================ [](https://travis-ci.org/creasty/i18n_flow) [](./LICENSE) **Manage translation status in YAML file.** With an official [tag](http://www.yaml.org/spec/1.2/spec.html#id2784064) feature, `i18n_flow` enables you to annotate status information directly in YAML file.  - [Lint rules](./doc/rules.md) - [Tags](./doc/tags.md) Setup ----- ### Installation Add this line to your Gemfile: ```ruby gem 'i18n_flow', github: 'creasty/i18n_flow' ``` ### Configuration Create a configuration file at your project's root directory. ```sh-session $ cat > i18n_flow.yml base_path: config/locales glob_patterns: - '**/*.yml' valid_locales: - en - ja locale_pairs: - ['en', 'ja'] ^D ``` CLI --- ```sh-session $ 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 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 ------------------ ```yaml # 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 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_flow-0.1.0 | README.md |