diff --git a/bothub/api/v2/tests/test_repository.py b/bothub/api/v2/tests/test_repository.py index d5bb6b0e..9aa601e6 100644 --- a/bothub/api/v2/tests/test_repository.py +++ b/bothub/api/v2/tests/test_repository.py @@ -1724,9 +1724,7 @@ def test_exists_example(self): }, ) - self.assertEqual( - content_data.get("detail"), "Sentence already exists" - ) + self.assertEqual(content_data.get("detail"), "Sentence already exists") self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) diff --git a/bothub/settings.py b/bothub/settings.py index c7675b05..a851c3e1 100644 --- a/bothub/settings.py +++ b/bothub/settings.py @@ -204,8 +204,11 @@ LANGUAGE_CODE = env.str("LANGUAGE_CODE") - -LANGUAGES = (("en-us", _("English")), ("pt-br", _("Brazilian Portuguese"))) +LANGUAGES = ( + ("en-us", _("English")), + ("pt-br", _("Brazilian Portuguese")), + ("es", _("Spanish")), +) MODELTRANSLATION_DEFAULT_LANGUAGE = "en-us"