New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #22404 -- Added a view that exposes i18n catalog as a JSON #4808

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@sergeykolosov
Contributor

sergeykolosov commented Jun 5, 2015

Added a json_catalog view to django.views.i18n, which returns a JSON response containing translations, formats, and a plural expression for the specified language.

Based on @manologab's solution https://github.com/manologab/django/tree/ticket_22404, somewhat refactored, with tests improved and documentation added.

@timgraham

View changes

Show outdated Hide outdated django/views/i18n.py Outdated
@timgraham

View changes

Show outdated Hide outdated docs/topics/i18n/translation.txt Outdated
@timgraham

View changes

Show outdated Hide outdated tests/view_tests/tests/test_i18n.py Outdated
@timgraham

View changes

Show outdated Hide outdated tests/view_tests/tests/test_i18n.py Outdated
@timgraham

This comment has been minimized.

Show comment
Hide comment
@timgraham

timgraham Jun 11, 2015

Member

Please add a mention in the 1.9 release notes too.

Member

timgraham commented Jun 11, 2015

Please add a mention in the 1.9 release notes too.

Fixed #22404 -- Added a view that exposes i18n catalog as a JSON
Added a json_catalog view to django.views.i18n, which returns a JSON
response containing translations, formats, and a plural expression
for the specified language.
@timgraham

This comment has been minimized.

Show comment
Hide comment
@timgraham

timgraham Aug 5, 2015

Member

merged in 2444042, thanks!

Member

timgraham commented Aug 5, 2015

merged in 2444042, thanks!

@timgraham timgraham closed this Aug 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment