Releases: glebm/i18n-tasks
v0.9.23
v0.9.22
Adds the DeepL Machine Translation service. #294 -- Thanks @neumayr!
You can use it by passing --backend=deepl
to translate-missing
:
i18n-tasks translate-missing --backend deepl
Like Google Translate, DeepL also requires an API key. It can be set either via the DEEPL_AUTH_KEY
environment variable, or by setting translation.deepl_api_key
in i18n-tasks.yml
.
v0.9.21
v0.9.20
v0.9.19
- Adds a new configuration setting,
data.external
, for locale data from external dependencies (e.g. gems).
This locale data is never considered unused, and is never modified by i18n-tasks. #264 - Fixes support for calls such as
t @instance_variable, scope: :static_scope
in the non-AST scanner.
#1d2c6d0c - Fixes
remove-unused
not removing entire files. #260 - Fixes
normalize
not removing emptied files. #263
v0.9.18
v0.9.17
Adds a new task, check-normalized
, and the corresponding specs, to verify that all the locale files are normalized. #249
Fixes an issue with normalization not happening in certain cases. #91b593d7
There is now a minitest template file available. #250
Internally, Erubi is now used instead of Erubis for parsing the config file. #247
v0.9.16
v0.9.15
Adds new configuration options to the built-in scanners to enable support for non-standard messages and receivers.
For example, to support the it
gem:
# lib/i18n_tasks_it.rb
# The "it" gem support for i18n-tasks
I18n::Tasks.add_scanner(
'::I18n::Tasks::Scanners::RubyAstScanner',
receiver_messages: [nil, AST::Node.new(:const, [nil, :It])].product(%i[it]),
only: %w[*.rb]
)
I18n::Tasks.add_scanner(
'::I18n::Tasks::Scanners::PatternWithScopeScanner',
translate_call: /(?<=^|[^\w'\-.]|[^\w'\-]It\.|It\.)it/,
exclude: %w[*.rb]
)
# config/i18n-tasks.yml.erb
<% require './lib/i18n_tasks_it' %>