-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the default config file, edit the Readme
- Loading branch information
Showing
3 changed files
with
74 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,101 @@ | ||
# i18n-tasks finds and manages missing and unused translations https://github.com/glebm/i18n-tasks | ||
# i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks | ||
|
||
# The "main" locale. | ||
base_locale: en | ||
## i18n-tasks detects locales automatically from the existing locale files | ||
## uncomment to set locales explicitly | ||
# locales: [en, es, fr] | ||
## All available locales are inferred from the data by default. Alternatively, specify them explicitly: | ||
# locales: [es, fr] | ||
## Reporting locale, default: en. Available: en, ru. | ||
# internal_locale: en | ||
|
||
## i18n-tasks report locale, default: en, available: en, ru | ||
# internal_locale: ru | ||
|
||
# Read and write locale data | ||
# Read and write translations. | ||
data: | ||
## by default, translation data are read from the file system, or you can provide a custom data adapter | ||
## Translations are read from the file system. Supported format: YAML, JSON. | ||
## Provide a custom adapter: | ||
# adapter: I18n::Tasks::Data::FileSystem | ||
|
||
# Locale files to read from | ||
# Locale files or `File.find` patterns where translations are read from: | ||
read: | ||
- config/locales/%{locale}.yml | ||
# - config/locales/*.%{locale}.yml | ||
## Default: | ||
# - config/locales/%{locale}.yml | ||
## More files: | ||
# - config/locales/**/*.%{locale}.yml | ||
## Another gem: | ||
# - "<%= %x[bundle show vagrant].chomp %>/templates/locales/%{locale}.yml" | ||
|
||
# key => file routes, matched top to bottom | ||
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom: | ||
# `i18n-tasks normalize -p` will force move the keys according to these rules | ||
write: | ||
## E.g., write devise and simple form keys to their respective files | ||
## For example, write devise and simple form keys to their respective files: | ||
# - ['{devise, simple_form}.*', 'config/locales/\1.%{locale}.yml'] | ||
# Catch-all | ||
- config/locales/%{locale}.yml | ||
# `i18n-tasks normalize -p` will force move the keys according to these rules | ||
## Catch-all default: | ||
# - config/locales/%{locale}.yml | ||
|
||
## Specify the router (see Readme for details). Valid values: conservative_router, pattern_router, or a custom class. | ||
# router: convervative_router | ||
|
||
# YAML / JSON serializer options, passed to load / dump / parse / serialize | ||
yaml: | ||
write: | ||
# do not wrap lines at 80 characters | ||
line_width: -1 | ||
json: | ||
write: | ||
# pretty print JSON | ||
indent: ' ' | ||
space: ' ' | ||
object_nl: "\n" | ||
array_nl: "\n" | ||
|
||
## Pretty-print JSON: | ||
# json: | ||
# | ||
# write: | ||
# indent: ' ' | ||
# space: ' ' | ||
# object_nl: "\n" | ||
# array_nl: "\n" | ||
|
||
# Find translate calls | ||
search: | ||
## Default scanner finds t() and I18n.t() calls | ||
# scanner: I18n::Tasks::Scanners::PatternWithScopeScanner | ||
|
||
## Paths to search in, passed to File.find | ||
paths: | ||
- app/ | ||
## Paths or `File.find` patterns to search in: | ||
# paths: | ||
# - app/ | ||
|
||
## Root for resolving relative keys (default) | ||
## Root directories for relative keys resolution. | ||
# relative_roots: | ||
# - app/views | ||
# - app/controllers | ||
# - app/helpers | ||
# - app/presenters | ||
|
||
## File.fnmatch patterns to exclude from search (default) | ||
# exclude: ["*.jpg", "*.png", "*.gif", "*.svg", "*.ico", "*.eot", "*.ttf", "*.woff", "*.woff2", "*.pdf"] | ||
## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting: | ||
## %w(*.jpg *.png *.gif *.svg *.ico *.eot *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less *.yml *.json) | ||
# exclude: [] | ||
|
||
## Or, File.fnmatch patterns to include | ||
## Alternatively, the only files or `File.fnmatch patterns` to search in `paths`: | ||
## If specified, this settings takes priority over `exclude`, but `exclude` still applies. | ||
# include: ["*.rb", "*.html.slim"] | ||
|
||
## Default scanner finds t() and I18n.t() calls. | ||
# scanner: I18n::Tasks::Scanners::PatternWithScopeScanner | ||
|
||
## Google Translate | ||
# translation: | ||
# # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate | ||
# api_key: "AbC-dEf5" | ||
|
||
## Consider these keys not missing | ||
## Do not consider these keys missing: | ||
# ignore_missing: | ||
# - 'errors.messages.{accepted,blank,invalid,too_short,too_long}' | ||
# - '{devise,simple_form}.*' | ||
|
||
## Consider these keys used | ||
## Consider these keys used: | ||
# ignore_unused: | ||
# - 'activerecord.attributes.*' | ||
# - '{devise,kaminari,will_paginate}.*' | ||
# - 'simple_form.{yes,no}' | ||
# - 'simple_form.{placeholders,hints,labels}.*' | ||
# - 'simple_form.{error_notification,required}.:' | ||
|
||
## Exclude these keys from `i18n-tasks eq-base' report | ||
## Exclude these keys from the `i18n-tasks eq-base' report: | ||
# ignore_eq_base: | ||
# all: | ||
# - common.ok | ||
# fr,es: | ||
# - common.brand | ||
|
||
## Exclude these keys from all of the reports | ||
## Ignore these keys completely: | ||
# ignore: | ||
# - kaminari.* |