Redesign landing page (#10232)

This commit is contained in:
Eugen Rochko
2019-03-12 17:34:00 +01:00
committed by GitHub
parent 6a8dc59eb8
commit 65fffeac3f
77 changed files with 518 additions and 1621 deletions

View File

@ -11,8 +11,9 @@ describe 'Localization' do
headers = { 'Accept-Language' => 'zh-HK' }
get "/about", headers: headers
expect(response.body).to include(
I18n.t('about.about_mastodon_html', locale: 'zh-HK')
I18n.t('about.tagline', locale: 'zh-HK')
)
end
@ -20,16 +21,18 @@ describe 'Localization' do
headers = { 'Accept-Language' => 'es-FAKE' }
get "/about", headers: headers
expect(response.body).to include(
I18n.t('about.about_mastodon_html', locale: 'es')
I18n.t('about.tagline', locale: 'es')
)
end
it 'falls back to english when locale is missing' do
headers = { 'Accept-Language' => '12-FAKE' }
get "/about", headers: headers
expect(response.body).to include(
I18n.t('about.about_mastodon_html', locale: 'en')
I18n.t('about.tagline', locale: 'en')
)
end
end