main
 1# i18n-tasks finds and manages missing and unused translations https://github.com/glebm/i18n-tasks
 2
 3base_locale: en
 4## i18n-tasks detects locales automatically from the existing locale files
 5## uncomment to set locales explicitly
 6# locales: [en, es, fr]
 7
 8## i18n-tasks report locale, default: en, available: en, ru
 9# internal_locale: ru
10
11# Read and write locale data
12data:
13  ## by default, translation data are read from the file system, or you can provide a custom data adapter
14  # adapter: I18n::Tasks::Data::FileSystem
15
16  # Locale files to read from
17  read:
18    - config/locales/%{locale}.yml
19    # - config/locales/*.%{locale}.yml
20    # - config/locales/**/*.%{locale}.yml
21
22  # key => file routes, matched top to bottom
23  write:
24    ## E.g., write devise and simple form keys to their respective files
25    # - ['{devise, simple_form}.*', 'config/locales/\1.%{locale}.yml']
26    # Catch-all
27    - config/locales/%{locale}.yml
28    # `i18n-tasks normalize -p` will force move the keys according to these rules
29
30  # YAML / JSON serializer options, passed to load / dump / parse / serialize
31  yaml:
32    write:
33      # do not wrap lines at 80 characters
34      line_width: -1
35  json:
36    write:
37      # pretty print JSON
38      indent: '  '
39      space: ' '
40      object_nl: "\n"
41      array_nl: "\n"
42
43# Find translate calls
44search:
45  ## Default scanner finds t() and I18n.t() calls
46  # scanner: I18n::Tasks::Scanners::PatternWithScopeScanner
47
48  ## Paths to search in, passed to File.find
49  paths:
50    - app/controllers
51    - app/helpers
52    - app/views
53
54  ## Root for resolving relative keys (default)
55  # relative_roots:
56  #   - app/views
57
58  ## File.fnmatch patterns to exclude from search (default)
59  # exclude: ["*.jpg", "*.png", "*.gif", "*.svg", "*.ico", "*.eot", "*.ttf", "*.woff", "*.pdf"]
60
61  ## Or, File.fnmatch patterns to include
62  # include: ["*.rb", "*.html.slim"]
63
64## Google Translate
65# translation:
66#   # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
67#   api_key: "AbC-dEf5"
68
69## Consider these keys not missing
70# ignore_missing:
71# - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
72# - '{devise,simple_form}.*'
73
74## Consider these keys used
75ignore_unused:
76  - 'titles.*'
77# - 'activerecord.attributes.*'
78# - '{devise,kaminari,will_paginate}.*'
79# - 'simple_form.{yes,no}'
80# - 'simple_form.{placeholders,hints,labels}.*'
81# - 'simple_form.{error_notification,required}.:'
82
83## Exclude these keys from `i18n-tasks eq-base' report
84# ignore_eq_base:
85#   all:
86#     - common.ok
87#   fr,es:
88#     - common.brand
89
90## Exclude these keys from all of the reports
91# ignore:
92#  - kaminari.*