Skip to content
Snippets Groups Projects
Unverified Commit 62a40ba6 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fix locale cache (#4665)

parent e04eb6b1
Branches
Tags
No related merge requests found
......@@ -16,8 +16,8 @@ module Api
language_list = I18n::Language::Mapping.language_mapping_list
languages.each do |lang|
language = lang.split('.').first
native_name = language_list.dig(language.tr('_', '-'), 'nativeName')
language = lang.split('.').first.tr('_', '-')
native_name = language_list.dig(language, 'nativeName')
language_hash[language] = native_name if native_name.present?
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment