mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
Fix spec for sr-Latn (#7203)
This commit is contained in:
parent
23106844a1
commit
87e3f0a41d
1 changed files with 6 additions and 2 deletions
|
@ -29,10 +29,14 @@ module Localized
|
|||
end
|
||||
|
||||
def preferred_locale
|
||||
http_accept_language.preferred_language_from(I18n.available_locales)
|
||||
http_accept_language.preferred_language_from(available_locales)
|
||||
end
|
||||
|
||||
def compatible_locale
|
||||
http_accept_language.compatible_language_from(I18n.available_locales)
|
||||
http_accept_language.compatible_language_from(available_locales)
|
||||
end
|
||||
|
||||
def available_locales
|
||||
I18n.available_locales.reverse
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue