aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/902_9e.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-01-03 14:52:00 -0300
committerSebastian <sebasjm@gmail.com>2024-01-03 14:52:00 -0300
commit1a71cd5ba2e9afb0ba7ef22760ecbe8b44aad953 (patch)
tree7d73293db6dca3ce0ac89d36a52472bd75fa8aa4 /packages/aml-backoffice-ui/src/forms/902_9e.ts
parent609ad091e332e4150b4d472284e5a9518cbe7571 (diff)
downloadwallet-core-1a71cd5ba2e9afb0ba7ef22760ecbe8b44aad953.tar.xz
split forms js
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_9e.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/902_9e.ts34
1 files changed, 17 insertions, 17 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_9e.ts b/packages/aml-backoffice-ui/src/forms/902_9e.ts
index 323a5a057..274d76445 100644
--- a/packages/aml-backoffice-ui/src/forms/902_9e.ts
+++ b/packages/aml-backoffice-ui/src/forms/902_9e.ts
@@ -1,32 +1,32 @@
import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
-import { FlexibleForm, FormState } from "@gnu-taler/web-util/browser";
-import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js";
+import { FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
import { resolutionSection } from "./simplest.js";
+import { BaseForm } from "./index.js";
-export const v1 = (current: BaseForm): FlexibleForm<Form902_9.Form> => ({
+export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_9.Form> => ({
design: [
{
title:
- "Declaration of identity of the beneficial owner" as TranslatedString,
+ i18n.str`Declaration of identity of the beneficial owner`,
fields: [
{
type: "textArea",
props: {
name: "contractingPartner",
- label: "Contracting partner" as TranslatedString,
+ label: i18n.str`Contracting partner`,
},
},
{
type: "caption",
props: {
label:
- "The contracting partner hereby declares that the person(s) listed below is/are the beneficial owner(s) of the assets involved in the business relationship. If the contracting partner is also the sole beneficial owner of the assets, the contracting partner's detail must be set out below" as TranslatedString,
+ i18n.str`The contracting partner hereby declares that the person(s) listed below is/are the beneficial owner(s) of the assets involved in the business relationship. If the contracting partner is also the sole beneficial owner of the assets, the contracting partner's detail must be set out below`,
},
},
{
type: "array",
props: {
- label: "Persons" as TranslatedString,
+ label: i18n.str`Persons`,
labelField: "surname",
name: "persons",
fields: [
@@ -34,37 +34,37 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_9.Form> => ({
type: "text",
props: {
name: "surname",
- label: "Surname(s)" as TranslatedString,
+ label: i18n.str`Surname(s)`,
},
},
{
type: "text",
props: {
name: "firstName",
- label: "First name(s)" as TranslatedString,
+ label: i18n.str`First name(s)`,
},
},
{
type: "absoluteTime",
props: {
name: "dateOfBirth",
- label: "Date of birth" as TranslatedString,
+ label: i18n.str`Date of birth`,
pattern: "dd/MM/yyyy",
- // help: "format 'dd/MM/yyyy'" as TranslatedString,
+ // help: i18n.str`format 'dd/MM/yyyy'`,
},
},
{
type: "text",
props: {
name: "nationality",
- label: "Nationality" as TranslatedString,
+ label: i18n.str`Nationality`,
},
},
{
type: "text",
props: {
name: "address",
- label: "Actual address of domicile" as TranslatedString,
+ label: i18n.str`Actual address of domicile`,
},
},
],
@@ -74,26 +74,26 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_9.Form> => ({
type: "caption",
props: {
label:
- "The contracting partner hereby undertakes to inform automatically of any changes to the information contained herein" as TranslatedString,
+ i18n.str`The contracting partner hereby undertakes to inform automatically of any changes to the information contained herein`,
},
},
{
type: "text",
props: {
name: "signature",
- label: "Signature" as TranslatedString,
+ label: i18n.str`Signature`,
},
},
{
type: "caption",
props: {
label:
- "It is a criminal offense to deliberately provide false information on this form (article 251 of the Swiss Criminal Code, document forgery)" as TranslatedString,
+ i18n.str`It is a criminal offense to deliberately provide false information on this form (article 251 of the Swiss Criminal Code, document forgery)`,
},
},
],
},
- resolutionSection(current),
+ resolutionSection(current, i18n),
],
behavior: function formBehavior(
v: Partial<Form902_9.Form>,