-
Notifications
You must be signed in to change notification settings - Fork 75
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
Use Django's Javascript translation catalog #713
Conversation
csfieldguide/config/urls.py
Outdated
@@ -16,6 +17,7 @@ | |||
url(r"^chapters/", include("chapters.urls", namespace="chapters")), | |||
url(r"^appendices/", include("appendices.urls", namespace="appendices")), | |||
url(r"^search/", include("search.urls", namespace="search")), | |||
url(r"^jsi18n/$", JavaScriptCatalog.as_view(), name="javascript-catalog"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not be required, worth checking.
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
==========================================
- Coverage 98.01% 95.9% -2.12%
==========================================
Files 59 56 -3
Lines 858 806 -52
Branches 67 61 -6
==========================================
- Hits 841 773 -68
- Misses 13 29 +16
Partials 4 4 Continue to review full report at Codecov.
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
==========================================
- Coverage 98.01% 95.9% -2.12%
==========================================
Files 59 56 -3
Lines 858 806 -52
Branches 67 61 -6
==========================================
- Hits 841 773 -68
- Misses 13 29 +16
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
==========================================
- Coverage 98.01% 95.9% -2.12%
==========================================
Files 59 56 -3
Lines 858 806 -52
Branches 67 61 -6
==========================================
- Hits 841 773 -68
- Misses 13 29 +16
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
4 similar comments
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
========================================
Coverage 98.01% 98.01%
========================================
Files 59 59
Lines 858 858
Branches 67 67
========================================
Hits 841 841
Misses 13 13
Partials 4 4 Continue to review full report at Codecov.
|
This PR enables the use of Django's JavaScript translation catalog, meaning we can now use gettext() to translate text in JavaScript files.
It also uses django-statici18n, a Django app that collects JavaScript catalogs into a single location. (Instead of generating it dynamically on each request).
Todo: