Browse Source

Fix localization test failing due to order of locale definitions (#12393)

master^2
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
510e184216
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      config/application.rb
  2. +1
    -0
      spec/requests/localization_spec.rb

+ 2
- 2
config/application.rb View File

@@ -53,8 +53,8 @@ module Mastodon
:el,
:en,
:eo,
:es,
:'es-AR',
:es,
:et,
:eu,
:fa,
@@ -93,8 +93,8 @@ module Mastodon
:sk,
:sl,
:sq,
:sr,
:'sr-Latn',
:sr,
:sv,
:ta,
:te,


+ 1
- 0
spec/requests/localization_spec.rb View File

@@ -26,6 +26,7 @@ describe 'Localization' do
I18n.t('about.tagline', locale: 'es')
)
end

it 'falls back to english when locale is missing' do
headers = { 'Accept-Language' => '12-FAKE' }



Loading…
Cancel
Save