fix: Set and Update portal's default locale (#5368)

This commit is contained in:
Tejaswini Chile
2022-09-01 16:44:06 +05:30
committed by GitHub
parent f4fc53b425
commit ee2189d98a
2 changed files with 3 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ class Portal < ApplicationRecord
private
def config_json_format
config['default_locale'] = 'en'
config['default_locale'] = default_locale
denied_keys = config.keys - CONFIG_JSON_KEYS
errors.add(:cofig, "in portal on #{denied_keys.join(',')} is not supported.") if denied_keys.any?
end