v4.2.2 #49

Merged
asonix merged 26 commits from asonix/changes into asonix/downstream 2023-12-04 19:33:44 +00:00
Showing only changes of commit 156d32689b - Show all commits

View file

@ -254,6 +254,7 @@ module LanguagesHelper
def valid_locale_or_nil(str)
return if str.blank?
return str if valid_locale?(str)
code, = str.to_s.split(/[_-]/) # Strip out the region from e.g. en_US or ja-JP