You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The following is a list of configuration changes you will need to make to your local installations to support Rails 6+:
New environment variable called DMPROADMAP_HOST. Rails 6+ introduces new middleware that helps mitigate DNS rebinding attacks. This includes a hostname whitelist. The whitelist includes localhost for the development environment, but does not include anything in other environments. Set export DMPROADMAP_HOST=my.example.org appropriately for each environment. If you have other hostnames you need to support, you can adjust the config/application.rb file to include them.
We needed to reconfigure the config/translation.rb so that it does not reference Rails framework elements that have not yet been defined. Please review this file and adjust the SUPPORTED_LOCALES, CLIENT_LOCALES and DEFAULT_LOCALE constants at the top as needed."
The text was updated successfully, but these errors were encountered:
# Note that the entries here must have a corresponding directory in config/locale, a
# YAML file in config/locales and should also have an entry in the DB's languages table
SUPPORTED_LOCALES = %w[de en-CA en-GB en-US es fi fr-CA fr-FR pt-BR sv-FI tr-TR].freeze
# You can define a subset of the locales for your instance's version of Translation.io if applicable
CLIENT_LOCALES = %w[de en-CA en-GB en-US es fi fr-CA fr-FR pt-BR sv-FI tr-TR].freeze
DEFAULT_LOCALE = 'en-GB'
Should our constants be defined as follows(?): SUPPORTED_LOCALES = %w[en-CA en-GB fr-CA].freeze CLIENT_LOCALES = %w[en-CA en-GB fr-CA].freeze
DEFAULT_LOCALE = 'en-GB'
If yes to the above, then should remove unneeded .yml files from config/locales (see the attached screenshot)?
According to the v4.0.0 release notes New Configuration::
"The following is a list of configuration changes you will need to make to your local installations to support Rails 6+:
New environment variable called
DMPROADMAP_HOST
. Rails 6+ introduces new middleware that helps mitigate DNS rebinding attacks. This includes a hostname whitelist. The whitelist includes localhost for the development environment, but does not include anything in other environments. Setexport DMPROADMAP_HOST=my.example.org
appropriately for each environment. If you have other hostnames you need to support, you can adjust theconfig/application.rb
file to include them.We needed to reconfigure the
config/translation.rb
so that it does not reference Rails framework elements that have not yet been defined. Please review this file and adjust theSUPPORTED_LOCALES
,CLIENT_LOCALES
andDEFAULT_LOCALE
constants at the top as needed."The text was updated successfully, but these errors were encountered: