mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix localization test failing due to order of locale definitions (#12393)
This commit is contained in:
parent
24ea938ce1
commit
510e184216
2 changed files with 3 additions and 2 deletions
|
@ -53,8 +53,8 @@ module Mastodon
|
||||||
:el,
|
:el,
|
||||||
:en,
|
:en,
|
||||||
:eo,
|
:eo,
|
||||||
:es,
|
|
||||||
:'es-AR',
|
:'es-AR',
|
||||||
|
:es,
|
||||||
:et,
|
:et,
|
||||||
:eu,
|
:eu,
|
||||||
:fa,
|
:fa,
|
||||||
|
@ -93,8 +93,8 @@ module Mastodon
|
||||||
:sk,
|
:sk,
|
||||||
:sl,
|
:sl,
|
||||||
:sq,
|
:sq,
|
||||||
:sr,
|
|
||||||
:'sr-Latn',
|
:'sr-Latn',
|
||||||
|
:sr,
|
||||||
:sv,
|
:sv,
|
||||||
:ta,
|
:ta,
|
||||||
:te,
|
:te,
|
||||||
|
|
|
@ -26,6 +26,7 @@ describe 'Localization' do
|
||||||
I18n.t('about.tagline', locale: 'es')
|
I18n.t('about.tagline', locale: 'es')
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'falls back to english when locale is missing' do
|
it 'falls back to english when locale is missing' do
|
||||||
headers = { 'Accept-Language' => '12-FAKE' }
|
headers = { 'Accept-Language' => '12-FAKE' }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue