Skip to content

Commit e280f6f

Browse files
committed
add global translation
1 parent 1d6c898 commit e280f6f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"devDependencies": {
1717
"babel-core": "^6.26.3",
1818
"babel-preset-env": "^1.6.1",
19-
"babel-preset-es2015": "^6.18.0",
2019
"gulp-babel": "^7.0.1"
2120
}
2221
}

views/widget/inline_edit.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
<a style="display:none;" data-url="" class="js-widget-edit-link">{{t "qor_widget.form.edit" "Edit Widget"}}</a>
2525
2626
<!-- JavaScripts -->
27+
<script>
28+
QOR_Translations = window.QOR_Translations || {};
29+
QOR_Translations.okButton = '{{t "qor_admin.form.ok" "OK"}}'
30+
QOR_Translations.cancelButton = '{{t "qor_admin.form.cancel" "Cancel"}}'
31+
QOR_Translations.serverError = '{{t "qor_admin.form.serverError" "Server error, please try again later!"}}'
32+
QOR_Translations.slideoutCloseWarning = '{{t "qor_admin.slideout.close_warning" "You have unsaved changes on this slideout. If you close this slideout, you will lose all unsaved changes. Are you sure you want to close the slideout?"}}'
33+
</script>
2734
{{javascript_tag "qor_admin_default"}}
2835
{{load_admin_javascripts}}
2936
{{load_theme_javascripts}}

0 commit comments

Comments
 (0)