fix: Set and Update portal's default locale (#5368)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user