trove-dashboard/babel-djangojs.cfg
Andreas Jaeger e97d0d1b2f Setup for translations
Add babel*.cfg files for translation.

This follows the setup for django projects for translation, for details
see
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html

babel related entries in setup.cfg does not work for multiple
POT/PO files, so we can remove them.

Change-Id: I1fac32fc76c1469e88417ca0d26bdd199995a402
2016-01-26 07:46:57 +09:00

15 lines
577 B
INI

[extractors]
# We use a custom extractor to find translatable strings in AngularJS
# templates. The extractor is included in horizon.utils for now.
# See http://babel.pocoo.org/docs/messages/#referencing-extraction-methods for
# details on how this works.
angular = horizon.utils.babel_extract_angular:extract_angular
[javascript: **.js]
# We need to look into all static folders for HTML files.
# The **/static ensures that we also search within
# /openstack_dashboard/dashboards/XYZ/static which will ensure
# that plugins are also translated.
[angular: **/static/**.html]