master
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/
51
52 ## Root for resolving relative keys (default)
53 relative_roots:
54 - app/views
55 - app/controllers
56
57 ## File.fnmatch patterns to exclude from search (default)
58 # exclude: ["*.jpg", "*.png", "*.gif", "*.svg", "*.ico", "*.eot", "*.ttf", "*.woff", "*.pdf"]
59
60 ## Or, File.fnmatch patterns to include
61 # include: ["*.rb", "*.html.slim"]
62
63## Google Translate
64# translation:
65# # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
66# api_key: "AbC-dEf5"
67
68## Consider these keys not missing
69ignore_missing:
70 - views.pagination.*
71
72ignore_unused:
73 - activerecord.*
74 - time.*
75## Consider these keys used
76# ignore_unused:
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.*