mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Reused the DjangoTranslation class for the javascript_catalog view
Thanks Tim Graham and Cristiano Coelho for the reviews. Refs #26328, #26319.
This commit is contained in:
@@ -164,6 +164,7 @@ class JsI18NTests(SimpleTestCase):
|
||||
with self.settings(LANGUAGE_CODE='fr'), override('fi'):
|
||||
response = self.client.get('/jsi18n/')
|
||||
self.assertContains(response, 'il faut le traduire')
|
||||
self.assertNotContains(response, "Untranslated string")
|
||||
|
||||
def test_i18n_language_non_english_default(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user