From 2d3232874e1325bca74c238836f5d8f237d467e3 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Mon, 30 Apr 2018 13:07:42 -0400 Subject: [PATCH] Extract from jsx files too --- README.rst | 5 +++++ i18n/__init__.py | 2 +- i18n/extract.py | 4 ++-- setup.py | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 4c16ff4..0c00f2a 100644 --- a/README.rst +++ b/README.rst @@ -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 ------- diff --git a/i18n/__init__.py b/i18n/__init__.py index ee66fdd..59c3baa 100644 --- a/i18n/__init__.py +++ b/i18n/__init__.py @@ -6,7 +6,7 @@ from . import config -__version__ = '0.4.4' +__version__ = '0.4.5' class Runner: diff --git a/i18n/extract.py b/i18n/extract.py index 926744e..d2a5d48 100755 --- a/i18n/extract.py +++ b/i18n/extract.py @@ -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. diff --git a/setup.py b/setup.py index 60fd68f..3f7e72a 100755 --- a/setup.py +++ b/setup.py @@ -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='oscm@edx.org',