diff --git a/src/bootstrap3.ts b/src/bootstrap3.ts index 40362b333..e8621498d 100644 --- a/src/bootstrap3.ts +++ b/src/bootstrap3.ts @@ -1,7 +1,9 @@ import bootstrap3 from './templates/bootstrap3'; +import translations from './translations'; export default { framework: 'bootstrap3', templates: { bootstrap3 }, + translations }; diff --git a/src/bootstrap4.ts b/src/bootstrap4.ts index 6d4fc3b8b..7abbc43f2 100644 --- a/src/bootstrap4.ts +++ b/src/bootstrap4.ts @@ -1,7 +1,9 @@ import bootstrap4 from './templates/bootstrap4'; +import translations from './translations'; export default { framework: 'bootstrap4', templates: { bootstrap4 }, + translations }; \ No newline at end of file diff --git a/src/bootstrap5.ts b/src/bootstrap5.ts index c50cda340..43cb49f37 100644 --- a/src/bootstrap5.ts +++ b/src/bootstrap5.ts @@ -1,7 +1,9 @@ import bootstrap5 from './templates/bootstrap5'; +import translations from './translations'; export default { framework: 'bootstrap5', templates: { bootstrap5 }, + translations }; \ No newline at end of file diff --git a/src/templates/bootstrap3/builderEditForm/form.ejs b/src/templates/bootstrap3/builderEditForm/form.ejs index cd10a50d6..c72ef7034 100644 --- a/src/templates/bootstrap3/builderEditForm/form.ejs +++ b/src/templates/bootstrap3/builderEditForm/form.ejs @@ -1,12 +1,12 @@
-

{{ctx.t(ctx.componentInfo.title, { _userInput: true })}} {{ctx.t('Component')}}

+

{{ctx.t(ctx.componentInfo.title, { _userInput: true })}} {{ctx.t('component')}}

{% if (ctx.helplinks) { %}
@@ -19,9 +19,9 @@
{% if (!ctx.preview) { %}
- - - + + +
{% } %} @@ -29,7 +29,7 @@
-

{{ctx.t('Preview')}}

+

{{ctx.t('preview')}}

@@ -43,9 +43,9 @@
{% } %}
- - - + + +
{% } %} diff --git a/src/templates/bootstrap3/builderPlaceholder/form.ejs b/src/templates/bootstrap3/builderPlaceholder/form.ejs index 1d439ceca..40aac7394 100644 --- a/src/templates/bootstrap3/builderPlaceholder/form.ejs +++ b/src/templates/bootstrap3/builderPlaceholder/form.ejs @@ -5,5 +5,5 @@ data-noattach="true" data-position="{{ctx.position}}" > - {{ctx.t('Drag and Drop a form component')}} + {{ctx.t('dragAndDropComponent')}}
diff --git a/src/templates/bootstrap3/builderSidebar/form.ejs b/src/templates/bootstrap3/builderSidebar/form.ejs index f47612713..0252a1113 100644 --- a/src/templates/bootstrap3/builderSidebar/form.ejs +++ b/src/templates/bootstrap3/builderSidebar/form.ejs @@ -1,5 +1,5 @@
- +
{% ctx.groups.forEach(function(group) { %} {{ group }} diff --git a/src/templates/bootstrap3/builderSidebarGroup/form.ejs b/src/templates/bootstrap3/builderSidebarGroup/form.ejs index a4a523e41..8d340ddf4 100644 --- a/src/templates/bootstrap3/builderSidebarGroup/form.ejs +++ b/src/templates/bootstrap3/builderSidebarGroup/form.ejs @@ -38,7 +38,7 @@ {% }) %} {{ctx.subgroups.join('')}} {% } else { %} -
{{ctx.t('No Matches Found')}}
+
{{ctx.t('noMatchesFound')}}
{% } %}
diff --git a/src/templates/bootstrap3/column-menu/html.ejs b/src/templates/bootstrap3/column-menu/html.ejs index e5d956276..e98b3ea9d 100644 --- a/src/templates/bootstrap3/column-menu/html.ejs +++ b/src/templates/bootstrap3/column-menu/html.ejs @@ -1,12 +1,12 @@
@@ -59,14 +59,14 @@ {% if (!ctx.disabled && (ctx.component.multiple || !ctx.files.length)) { %} {% if (ctx.self.useWebViewCamera) { %}
- - + +
{% } else if (!ctx.self.cameraMode) { %}
- {{ctx.t('Drop files to attach,')}} + {{ctx.t('dropFilesToAttach')}} {% if (ctx.self.imageUpload && ctx.component.webcam) { %} - {{ctx.t('Use Camera,')}} + {{ctx.t('useCamera') + ','}} {% } %} {{ctx.t('or')}} {{ctx.t('browse')}}
@@ -74,8 +74,8 @@
- - + + {% } %} {% } %} {% ctx.statuses.forEach(function(status) { %} @@ -89,7 +89,7 @@ {% if (status.status === 'progress') { %}
- {{status.progress}}% {{ctx.t('Complete')}} + {{status.progress}}% {{ctx.t('completeStatus')}}
{% } else if (status.status === 'error'){ %} @@ -104,16 +104,16 @@ {% if (!ctx.component.storage || ctx.support.hasWarning) { %}
{% if (!ctx.component.storage) { %} -

{{ctx.t('No storage has been set for this field. File uploads are disabled until storage is set up.')}}

+

{{ctx.t('noStorageSet')}}

{% } %} {% if (!ctx.support.filereader) { %} -

{{ctx.t('File API & FileReader API not supported.')}}

+

{{ctx.t('noFileApiSupport')}}

{% } %} {% if (!ctx.support.formdata) { %} -

{{ctx.t("XHR2's FormData is not supported.")}}

+

{{ctx.t('noFormDataSupport')}}

{% } %} {% if (!ctx.support.progress) { %} -

{{ctx.t("XHR2's upload progress isn't supported.")}}

+

{{ctx.t('noProgressSupport')}}

{% } %}
{% } %} \ No newline at end of file diff --git a/src/templates/bootstrap3/grid/html.ejs b/src/templates/bootstrap3/grid/html.ejs index ef9b6b616..7a053abd7 100644 --- a/src/templates/bootstrap3/grid/html.ejs +++ b/src/templates/bootstrap3/grid/html.ejs @@ -7,7 +7,7 @@ {% if (ctx.component.enableRowSelect) { %}
{% if (ctx.selectedRows) { %} - {{ctx.selectedRows}} selected + {{ctx.selectedRows}} {{ctx.t('selected')}} {% } %}
{% } %} @@ -24,7 +24,7 @@ {% if (!ctx.component.components.length) { %} - No components have been set up to display in the Data Table. "Table View" must be checked for components to render. + {{ctx.t('noComponentsSetInGrid')}} {% } %} {% if (ctx.component.enableRowSelect) { %} @@ -35,7 +35,7 @@ {% ctx.component.components.forEach(function(comp, i) { %} {% if (comp.show) { %} - {{ comp.label || comp.key }} + {{ ctx.t(comp.label || comp.key, { _userInput: true }) }} {% if (ctx.options.sortable && comp.sortable) { %} {{ ctx.component.sort.isAsc ? '↑' : '↓' }} @@ -56,7 +56,7 @@ && !ctx.options.pdf) { %}
- Actions + {{ctx.t('actions')}} {% if (ctx.component.showDeleteAllBtn && ctx.data.length) { %} {% } %} diff --git a/src/templates/bootstrap3/modaldialog/form.ejs b/src/templates/bootstrap3/modaldialog/form.ejs index b6a74f239..7d2099b91 100644 --- a/src/templates/bootstrap3/modaldialog/form.ejs +++ b/src/templates/bootstrap3/modaldialog/form.ejs @@ -6,7 +6,7 @@ type="button" role="button" class="btn btn-primary btn-xs formio-modaledit-close"> - {{ctx.t('Close')}} + {{ctx.t('close')}}
diff --git a/src/templates/bootstrap3/pagination/html.ejs b/src/templates/bootstrap3/pagination/html.ejs index 1d790c1d9..7a3f2952c 100644 --- a/src/templates/bootstrap3/pagination/html.ejs +++ b/src/templates/bootstrap3/pagination/html.ejs @@ -1,7 +1,7 @@