Skip to content

Commit

Permalink
Merge pull request #67 from edx/mikix/jsx
Browse files Browse the repository at this point in the history
Extract from jsx files too
  • Loading branch information
mikix authored Apr 30, 2018
2 parents 73b9fbc + 2d32328 commit efa7bde
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ Details of the config.yaml file are in `edx-platform/conf/locale/config.yaml

Changes
=======
v0.4.5
-------

* Extract from .jsx files too.

v0.4.4
-------

Expand Down
2 changes: 1 addition & 1 deletion i18n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from . import config

__version__ = '0.4.4'
__version__ = '0.4.5'


class Runner:
Expand Down
4 changes: 2 additions & 2 deletions i18n/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def run(self, args):
make_django_cmd = makemessages + ' -d django'
execute(make_django_cmd, working_directory=configuration.root_dir, stderr=stderr)

# Extract strings from Javascript source files (*.js).
make_djangojs_cmd = makemessages + ' -d djangojs'
# Extract strings from Javascript source files (*.js, *jsx).
make_djangojs_cmd = makemessages + ' -d djangojs -e js,jsx'
execute(make_djangojs_cmd, working_directory=configuration.root_dir, stderr=stderr)

# makemessages creates 'django.po'. This filename is hardcoded.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='edx-i18n-tools',
version='0.4.4',
version='0.4.5',
description='edX Internationalization Tools',
author='edX',
author_email='[email protected]',
Expand Down

0 comments on commit efa7bde

Please sign in to comment.