mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #26319 -- Added test for English variant in javascript_catalog
This commit is contained in:
@@ -166,6 +166,14 @@ class JsI18NTests(SimpleTestCase):
|
||||
self.assertContains(response, 'il faut le traduire')
|
||||
self.assertNotContains(response, "Untranslated string")
|
||||
|
||||
def test_i18n_english_variant(self):
|
||||
with override('en-gb'):
|
||||
response = self.client.get('/jsi18n/')
|
||||
self.assertIn(
|
||||
'"this color is to be translated": "this colour is to be translated"',
|
||||
response.context['catalog_str']
|
||||
)
|
||||
|
||||
def test_i18n_language_non_english_default(self):
|
||||
"""
|
||||
Check if the Javascript i18n view returns an empty language catalog
|
||||
|
||||
Reference in New Issue
Block a user