forked from beavyHQ/beavy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pybabel has trouble extracting from JSX files (see here python-babel/babel#280). So we decided to do extraction by compiling components into js just for the extraction process and then using pybabel's js config setting to get the translations.
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[javascript:**.jsx] | ||
[javascript:**.js] | ||
encoding = utf-8 | ||
[jinja2: **/templates/**.html] | ||
extensions=jinja2.ext.autoescape,jinja2.ext.with_ | ||
extensions=jinja2.ext.autoescape,jinja2.ext.with_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters