lib/i18n/tasks/configuration.rb in i18n-tasks-0.9.30 vs lib/i18n/tasks/configuration.rb in i18n-tasks-0.9.31
- old
+ new
@@ -57,9 +57,10 @@
def translation_config
@config_sections[:translation] ||= begin
conf = (config[:translation] || {}).with_indifferent_access
conf[:google_translate_api_key] = ENV['GOOGLE_TRANSLATE_API_KEY'] if ENV.key?('GOOGLE_TRANSLATE_API_KEY')
conf[:deepl_api_key] = ENV['DEEPL_AUTH_KEY'] if ENV.key?('DEEPL_AUTH_KEY')
+ conf[:yandex_api_key] = ENV['YANDEX_API_KEY'] if ENV.key?('YANDEX_API_KEY')
conf
end
end
# @return [Array<String>] all available locales, base_locale is always first