Prep for translations in JS.

This commit is contained in:
James Cole
2016-08-14 08:34:59 +02:00
parent 117bb602dc
commit d287ae97f8
2 changed files with 14 additions and 9 deletions

View File

@@ -57,6 +57,12 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
// some useful translations.
var langImportSingleError = '{{ 'import_error_single'|_ }}';
var langImportMultiError = '{{ 'import_error_multi'|_ }}';
var langImportFatalError = '{{ 'import_error_fatal'|_ }}';
var jobKey = '{{ job.key }}';
var jobImportUrl = '{{ route('import.json', [job.key]) }}';
var jobStartUrl = '{{ route('import.start', [job.key]) }}';