diff --git a/src/frontend/src/lib/components/docs/DocForm.svelte b/src/frontend/src/lib/components/docs/DocForm.svelte index 54de52c08..e596bb2b8 100644 --- a/src/frontend/src/lib/components/docs/DocForm.svelte +++ b/src/frontend/src/lib/components/docs/DocForm.svelte @@ -93,7 +93,7 @@

{#if isActive} - {$i18n.document.title_add_new_document} + {$i18n.document_form.title_add_new_document} {:else} ​ {/if} @@ -103,12 +103,12 @@

- {$i18n.document.field_doc_id_label} + {$i18n.document_form.field_doc_id_label}
@@ -116,7 +116,7 @@ class="text action start" type="button" on:click={() => (key = nanoid())} - aria-label={$i18n.document.field_doc_id_btn_auto_id} + aria-label={$i18n.document_form.field_doc_id_btn_auto_id} > @@ -135,7 +135,7 @@
diff --git a/src/frontend/src/lib/components/docs/DocFormField.svelte b/src/frontend/src/lib/components/docs/DocFormField.svelte index 21f8c74d9..f193f86d8 100644 --- a/src/frontend/src/lib/components/docs/DocFormField.svelte +++ b/src/frontend/src/lib/components/docs/DocFormField.svelte @@ -16,12 +16,12 @@
- {$i18n.document.field_name_label} + {$i18n.document_form.field_name_label} @@ -29,31 +29,31 @@
- {$i18n.document.field_type_label} + {$i18n.document_form.field_type_label}
- {$i18n.document.field_value_label} + {$i18n.document_form.field_value_label}
{#if fieldType === DocFieldTypeEnum.NUMBER || fieldType === DocFieldTypeEnum.STRING} {/if} {#if fieldType === DocFieldTypeEnum.BOOLEAN} {/if} diff --git a/src/frontend/src/lib/components/docs/Docs.svelte b/src/frontend/src/lib/components/docs/Docs.svelte index 64fba8584..dd33360fe 100644 --- a/src/frontend/src/lib/components/docs/Docs.svelte +++ b/src/frontend/src/lib/components/docs/Docs.svelte @@ -107,7 +107,7 @@ {$i18n.document_form.btn_add_document} {/if} diff --git a/src/frontend/src/lib/i18n/en.json b/src/frontend/src/lib/i18n/en.json index e9d06e979..f0311fba2 100644 --- a/src/frontend/src/lib/i18n/en.json +++ b/src/frontend/src/lib/i18n/en.json @@ -266,7 +266,9 @@ "delete": "Delete document?", "description": "Description", "document_submission_success": "Document has been successfully submitted!", - "document_submission_failed": "Document submission failed!", + "document_submission_failed": "Document submission failed!" + }, + "document_form": { "field_doc_id_label": "Doc ID", "field_doc_id_btn_auto_id": "Auto ID", "field_doc_id_placeholder": "Document ID", diff --git a/src/frontend/src/lib/i18n/it.json b/src/frontend/src/lib/i18n/it.json index dd651a9f0..a6426ea35 100644 --- a/src/frontend/src/lib/i18n/it.json +++ b/src/frontend/src/lib/i18n/it.json @@ -266,7 +266,9 @@ "delete": "Vuoi eliminare il documento?", "description": "Descrizione", "document_submission_success": "Il documento è stato inviato con successo!", - "document_submission_failed": "Invio del documento non riuscito!", + "document_submission_failed": "Invio del documento non riuscito!" + }, + "document_form": { "field_doc_id_label": "Doc ID", "field_doc_id_btn_auto_id": "Auto ID", "field_doc_id_placeholder": "ID documento", diff --git a/src/frontend/src/lib/i18n/zh-cn.json b/src/frontend/src/lib/i18n/zh-cn.json index dd726945e..6bef1b172 100644 --- a/src/frontend/src/lib/i18n/zh-cn.json +++ b/src/frontend/src/lib/i18n/zh-cn.json @@ -266,7 +266,9 @@ "delete": "删除文档?", "description": "描述", "document_submission_success": "文件已成功提交!", - "document_submission_failed": "文件提交失败!", + "document_submission_failed": "文件提交失败!" + }, + "document_form": { "field_doc_id_label": "Doc ID", "field_doc_id_btn_auto_id": "Auto ID", "field_doc_id_placeholder": "文件编号", diff --git a/src/frontend/src/lib/types/i18n.d.ts b/src/frontend/src/lib/types/i18n.d.ts index 7bb6c9175..84fefbddb 100644 --- a/src/frontend/src/lib/types/i18n.d.ts +++ b/src/frontend/src/lib/types/i18n.d.ts @@ -283,6 +283,9 @@ interface I18nDocument { description: string; document_submission_success: string; document_submission_failed: string; +} + +interface I18nDocument_form { field_doc_id_label: string; field_doc_id_btn_auto_id: string; field_doc_id_placeholder: string; @@ -483,6 +486,7 @@ interface I18n { cli: I18nCli; errors: I18nErrors; document: I18nDocument; + document_form: I18nDocument_form; asset: I18nAsset; admin: I18nAdmin; controllers: I18nControllers;