cloudkitty-dashboard/babel-djangojs.cfg
François Magimel 8112c32eec Enable translation for cloudkitty-dashboard
Allow translators to translate the dashboard.

This commit sets up related files according to the infra guide [1]. Also
removes Babel related entries in setup.cfg. They are not sufficient as
Django requires two PO files (django and djangojs).

[1] https://docs.openstack.org/infra/manual/creators.html#django-projects

Change-Id: Ifc616d58a794d94f2f36823dcfee4f0165981b12
Task: 22816
Story: 2002867
2018-07-05 14:36:27 +02:00

15 lines
560 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
# .../dashboards/XYZ/static which will ensure
# that plugins are also translated.
[angular: **/static/**.html]