Skip to content

Commit

Permalink
Merge 20d88cc into 3c003d2
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Feb 17, 2022
2 parents 3c003d2 + 20d88cc commit 1a34a83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bothub/api/v2/tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 5 additions & 2 deletions bothub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-es", _("Spanish")),
)

MODELTRANSLATION_DEFAULT_LANGUAGE = "en-us"

Expand Down

0 comments on commit 1a34a83

Please sign in to comment.