-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathi18n-tasks.yml
More file actions
131 lines (114 loc) · 4.86 KB
/
i18n-tasks.yml
File metadata and controls
131 lines (114 loc) · 4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
# The "main" locale.
base_locale: en
## 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
# Read and write translations.
data:
## Translations are read from the file system. Supported format: YAML, JSON.
## Provide a custom adapter:
# adapter: I18n::Tasks::Data::FileSystem
# Locale files or `File.find` patterns where translations are read from:
read:
- config/locales/%{locale}.yml
# 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:
- 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:
write:
# do not wrap lines at 80 characters
line_width: -1
## Pretty-print JSON:
# json:
# write:
# indent: ' '
# space: ' '
# object_nl: "\n"
# array_nl: "\n"
# Find translate calls
search:
## Paths or `File.find` patterns to search in:
paths:
- app
- lib
# Root directories for relative keys resolution.
relative_roots:
- app/controllers
- app/helpers
- app/mailers
- app/presenters
- app/services
- app/views
- app/cells
## 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 *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less *.yml *.json)
exclude:
- "*.jpeg"
- "*.odt"
- "*.docx"
## Alternatively, the only files or `File.fnmatch patterns` to search in `paths`:
## If specified, this settings takes priority over `exclude`, but `exclude` still applies.
# only: ["*.rb", "*.html.slim"]
## If `strict` is `false`, guess usages such as t("categories.#{category}.title"). The default is `true`.
strict: false
## Multiple scanners can be used. Their results are merged.
## The options specified above are passed down to each scanner. Per-scanner options can be specified as well.
## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example
## 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"
translation:
deepl_api_key: <%= ENV["DEEPL_API_KEY"] %>
# Do not consider these keys missing:
ignore_missing:
- decidim.admin.assembly_copies.new.select
- decidim.assemblies.admin.assembly_copies.new.select
- decidim.assemblies.admin.assembly_copies.form.slug_help_html
- decidim.admin.participatory_process_copies.new.select
- decidim.participatory_processes.admin.participatory_process_copies.new.select
- decidim.participatory_processes.admin.participatory_process_copies.form.slug_help_html
- time.buttons.select
- decidim.admin.models.assembly.fields.promoted
- decidim.account.destroy.error
- decidim.account.destroy.success
- decidim.devise.omniauth_registrations.create.email_already_exists
- devise.registrations.signed_up_but_unconfirmed
- decidim.devise.shared.omniauth_buttons.or
- devise.shared.links.log_in_with_provider
- decidim.metadata.progress.remaining
- decidim.devise.shared.links.log_in_with_user
# Consider these keys used:
ignore_unused:
- activemodel.attributes.organization.enable_machine_translations
- activemodel.attributes.organization.enable_machine_translations
- faker.*
- decidim.admin.models.assembly.fields.*
- decidim.events.proposals.author_confirmation_proposal_event.*
- decidim.forms.user_answers_serializer.*
- decidim.initiatives.admin.index.initiatives_types.*
- decidim.initiatives.admin.initiatives_types.*
- time.buttons.*
- decidim.admin.models.assembly.fields.promoted.*
- activemodel.attributes.assembly.copy_landing_page_blocks
- activemodel.attributes.participatory_process.copy_landing_page_blocks
- decidim.components.proposals.settings.global.require_category
- decidim.components.proposals.settings.global.require_scope
- decidim.admin.scopes.update.error
- decidim.admin.scopes.update.success
- date.formats.order
- decidim.participatory_processes.create_initiative.*
- decidim.participatory_processes.form.*
- decidim.system.organizations.omniauth_settings.publik.*
- decidim.system.organizations.omniauth_settings.france_connect.*
- decidim.system.organizations.omniauth_settings.openid_connect.*
- decidim.metadata.progress.remaining
- decidim.menu.help
- decidim.pages.home.extended.meetings
- decidim.profiles.show.activity
- decidim.devise.shared.links.log_in_with_user