From ec65f354677babc5b76a984328202be94b7631c2 Mon Sep 17 00:00:00 2001 From: shuhaib-aot Date: Mon, 20 Jan 2025 07:47:37 -0800 Subject: [PATCH] Added some keys for translations for formio --- forms-flow-service/src/formsflow-services.ts | 5 ++-- .../src/resourceBundles/bg/resourceBundles.ts | 5 ++++ .../src/resourceBundles/de/resourceBundles.ts | 5 ++++ .../src/resourceBundles/en/resourceBundles.ts | 16 ++++++++----- .../src/resourceBundles/es/resourceBundles.ts | 7 ++++++ .../resourceBundles/formioResourceBundle.ts | 24 +++++++++++++++++++ .../src/resourceBundles/fr/resourceBundles.ts | 5 ++++ .../src/resourceBundles/pt/resourceBundles.ts | 5 ++++ .../src/resourceBundles/zh/resourceBundles.ts | 7 +++++- 9 files changed, 70 insertions(+), 9 deletions(-) create mode 100644 forms-flow-service/src/resourceBundles/formioResourceBundle.ts diff --git a/forms-flow-service/src/formsflow-services.ts b/forms-flow-service/src/formsflow-services.ts index 24073d5a5..9eb2e4179 100644 --- a/forms-flow-service/src/formsflow-services.ts +++ b/forms-flow-service/src/formsflow-services.ts @@ -3,6 +3,7 @@ import StorageService from "./storage/storageService"; import RequestService from "./request/requestService"; import i18nService from "./resourceBundles/i18n"; import HelperServices from "./helpers/helperServices"; -import StyleServices from "./helpers/styleService" +import StyleServices from "./helpers/styleService"; +import formioResourceBundle from "./resourceBundles/formioResourceBundle"; -export { KeycloakService, StorageService, RequestService, i18nService, HelperServices, StyleServices }; +export { KeycloakService, StorageService, RequestService, i18nService, HelperServices, StyleServices, formioResourceBundle }; diff --git a/forms-flow-service/src/resourceBundles/bg/resourceBundles.ts b/forms-flow-service/src/resourceBundles/bg/resourceBundles.ts index cb4580629..2f71c0df0 100644 --- a/forms-flow-service/src/resourceBundles/bg/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/bg/resourceBundles.ts @@ -1209,4 +1209,9 @@ export const RESOURCE_BUNDLES_BG = { "New Form Description": "Ново описание на формуляра", "Save and Edit form": "Запазване и редактиране на формуляра", "Build New Form": "Създай нов формуляр", + "cancel": "Отмени", + "previous": "Предишна", + "next": "Следваща", + "Month": "Месец", + "Year": "Година" } diff --git a/forms-flow-service/src/resourceBundles/de/resourceBundles.ts b/forms-flow-service/src/resourceBundles/de/resourceBundles.ts index 6cb058116..3066b2ee7 100644 --- a/forms-flow-service/src/resourceBundles/de/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/de/resourceBundles.ts @@ -1214,4 +1214,9 @@ export const RESOURCE_BUNDLES_DE = { "New Form Description": "Neue Formularbeschreibung", "Save and Edit form": "Formular speichern und bearbeiten", "Build New Form": "Neues Formular erstellen", + "cancel": "abbrechen", + "previous": "vorherige", + "next": "nächste", + "Month": "Monat", + "Year": "Jahr" } diff --git a/forms-flow-service/src/resourceBundles/en/resourceBundles.ts b/forms-flow-service/src/resourceBundles/en/resourceBundles.ts index 2cd5b0df5..1b7e40ce7 100644 --- a/forms-flow-service/src/resourceBundles/en/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/en/resourceBundles.ts @@ -711,10 +711,14 @@ export const RESOURCE_BUNDLES_EN ={ "Tenant not found":"Tenant not found", "Access Roles" :"Access Roles", "Description of the new form": "Description of the new form", - "Name of the form": "Name of the form", - "Duplicate": "Duplicate", - "New Form Name": "New Form Name", - "New Form Description": "New Form Description", - "Save and Edit form": "Save and Edit form", - "Build New Form": "Build New Form" + "Name of the form": "Name of the form", + "Duplicate": "Duplicate", + "New Form Name": "New Form Name", + "New Form Description": "New Form Description", + "Save and Edit form": "Save and Edit form", + "Build New Form": "Build New Form", + "Date / Time": "Date / Time", + "Month": "Month", + "Day": "Day", + "Year": "Year" } diff --git a/forms-flow-service/src/resourceBundles/es/resourceBundles.ts b/forms-flow-service/src/resourceBundles/es/resourceBundles.ts index c10539899..8625f0468 100644 --- a/forms-flow-service/src/resourceBundles/es/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/es/resourceBundles.ts @@ -698,4 +698,11 @@ export const RESOURCE_BUNDLES_ES = { "New Form Description": "Nueva descripción del formulario", "Save and Edit form": "Guardar y editar formulario", "Build New Form": "Crear nuevo formulario", + "cancel": "cancelar", + "previous": "anterior", + "next": "siguiente", + "Date / Time": "Fecha / Hora", + "Month": "Mes", + "Day": "Día", + "Year": "Año" } diff --git a/forms-flow-service/src/resourceBundles/formioResourceBundle.ts b/forms-flow-service/src/resourceBundles/formioResourceBundle.ts new file mode 100644 index 000000000..cf05c183a --- /dev/null +++ b/forms-flow-service/src/resourceBundles/formioResourceBundle.ts @@ -0,0 +1,24 @@ +/* ----------- // This file is dedicated to managing specific translations for Formio.---------- */ +export default { + "bg": { + "submit": "Изпрати формуляр" + }, + "de": { + + "submit": "Formular senden" + }, + "es": { + "submit": "enviar formulario" + }, + "fr": { + + "submit": "soumettre le formulaire" + }, + "pt": { + "submit": "enviar formulário" + }, + "zh-CN": { + "submit": "提交表单" + } + +} \ No newline at end of file diff --git a/forms-flow-service/src/resourceBundles/fr/resourceBundles.ts b/forms-flow-service/src/resourceBundles/fr/resourceBundles.ts index 2b114d3a6..fb90fe4f1 100644 --- a/forms-flow-service/src/resourceBundles/fr/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/fr/resourceBundles.ts @@ -1212,6 +1212,11 @@ export const RESOURCE_BUNDLES_FR ={ "New Form Description": "Nouvelle description de formulaire", "Save and Edit form": "Enregistrer et modifier le formulaire", "Build New Form": "Créer un nouveau formulaire", + "cancel": "annuler", + "previous": "précédent", + "next": "suivant", + "Month": "Mois", + "Year": "Année" } diff --git a/forms-flow-service/src/resourceBundles/pt/resourceBundles.ts b/forms-flow-service/src/resourceBundles/pt/resourceBundles.ts index c0b7d2dec..7747f3863 100644 --- a/forms-flow-service/src/resourceBundles/pt/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/pt/resourceBundles.ts @@ -1211,4 +1211,9 @@ export const RESOURCE_BUNDLES_PT ={ "New Form Description": "Nova descrição do formulário", "Save and Edit form": "Salvar e Editar formulário", "Build New Form": "Criar novo formulário", + "cancel": "cancelar", + "previous": "anterior", + "next": "próximo", + "Month": "Mês", + "Year": "Ano" }; diff --git a/forms-flow-service/src/resourceBundles/zh/resourceBundles.ts b/forms-flow-service/src/resourceBundles/zh/resourceBundles.ts index 68fa4fca6..f8db23eae 100644 --- a/forms-flow-service/src/resourceBundles/zh/resourceBundles.ts +++ b/forms-flow-service/src/resourceBundles/zh/resourceBundles.ts @@ -1197,5 +1197,10 @@ export const RESOURCE_BUNDLES_ZH = { "New Form Name": "新表单名称", "New Form Description": "新表单描述", "Save and Edit form": "保存并编辑表单", - "Build New Form": "创建新表单" + "Build New Form": "创建新表单", + "cancel": "取消", + "previous": "上一页", + "next": "下一页", + "Month": "月", + "Year": "年" }