We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7458413 commit af23b45Copy full SHA for af23b45
1 file changed
config/initializers/translation.rb
@@ -21,7 +21,7 @@
21
# domain specified in order to generate both sets of translation keys.
22
if !ENV['DOMAIN'] || ENV['DOMAIN'] == 'app'
23
TranslationIO.configure do |config|
24
- config.api_key = Rails.application.credentials.dig(:translation_api_key).presence
+ config.api_key = ENV["TRANSLATION_IO_API_APP_KEY"].presence
25
config.source_locale = 'en'
26
config.target_locales = SUPPORTED_LOCALES
27
config.text_domain = 'app'
@@ -31,7 +31,7 @@
31
end
32
elsif ENV['DOMAIN'] == 'client'
33
34
- config.api_key = Rails.application.credentials.dig(:translation_api_client_key).presence
+ config.api_key = ENV["TRANSLATION_IO_API_CLIENT_KEY"].presence
35
36
config.target_locales = CLIENT_LOCALES
37
config.text_domain = 'client'
0 commit comments