aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/902_12e.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_12e.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/902_12e.ts110
1 files changed, 55 insertions, 55 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_12e.ts b/packages/aml-backoffice-ui/src/forms/902_12e.ts
index 7adeb6988..5a6b80772 100644
--- a/packages/aml-backoffice-ui/src/forms/902_12e.ts
+++ b/packages/aml-backoffice-ui/src/forms/902_12e.ts
@@ -1,18 +1,18 @@
-import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
-import { FlexibleForm, FormState } from "@gnu-taler/web-util/browser";
-import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js";
+import type { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
+import type { 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_12.Form> => ({
+export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
design: [
{
- title: "Foundations" as TranslatedString,
+ title: i18n.str`Foundations`,
fields: [
{
type: "textArea",
props: {
name: "contractingPartner",
- label: "Contracting partner" as TranslatedString,
+ label: i18n.str`Contracting partner`,
},
},
{
@@ -20,7 +20,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "knownAs",
label:
- "The undersigned hereby declare(s) that as board member of the foundation, or of the highest supervisory body of an underlying company of a foundation, known as" as TranslatedString,
+ i18n.str`The undersigned hereby declare(s) that as board member of the foundation, or of the highest supervisory body of an underlying company of a foundation, known as`,
},
},
{
@@ -28,21 +28,21 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "foundation.name",
label:
- "Name and information pertaining to the foundation" as TranslatedString,
+ i18n.str`Name and information pertaining to the foundation`,
},
},
{
type: "choiceStacked",
props: {
name: "foundation.type",
- label: "Type of foundation" as TranslatedString,
+ label: i18n.str`Type of foundation`,
choices: [
{
- label: "Discretionary foundation" as TranslatedString,
+ label: i18n.str`Discretionary foundation`,
value: "discretionary",
},
{
- label: "Non-discretionary foundation" as TranslatedString,
+ label: i18n.str`Non-discretionary foundation`,
value: "non-discretionary",
},
],
@@ -52,14 +52,14 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "choiceStacked",
props: {
name: "foundation.revocability",
- label: "Revocability" as TranslatedString,
+ label: i18n.str`Revocability`,
choices: [
{
- label: "Revocable foundation" as TranslatedString,
+ label: i18n.str`Revocable foundation`,
value: "revocable",
},
{
- label: "Irrevocable foundation" as TranslatedString,
+ label: i18n.str`Irrevocable foundation`,
value: "irrevocable",
},
],
@@ -69,7 +69,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "array",
props: {
label:
- "Information pertaining to the (ultimate economic, not fiduciary) founder (individual(s) or entity/ies)" as TranslatedString,
+ i18n.str`Information pertaining to the (ultimate economic, not fiduciary) founder (individual(s) or entity/ies)`,
labelField: "fullName",
name: "founders",
fields: [
@@ -78,7 +78,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "fullName",
label:
- "Last name(s), first name(s)/entity" as TranslatedString,
+ i18n.str`Last name(s), first name(s)/entity`,
},
},
{
@@ -86,36 +86,36 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "address",
label:
- "Actual address of domicile/registered office" as TranslatedString,
+ i18n.str`Actual address of domicile/registered office`,
},
},
{
type: "text",
props: {
name: "country",
- label: "Country" as TranslatedString,
+ label: i18n.str`Country`,
},
},
{
type: "text",
props: {
name: "dateOfBirth",
- label: "Date of birth" as TranslatedString,
+ label: i18n.str`Date of birth`,
},
},
{
type: "text",
props: {
name: "nationality",
- label: "Nationality" as TranslatedString,
+ label: i18n.str`Nationality`,
},
},
{
type: "text",
props: {
name: "dateOfDeath",
- label: "Date of death" as TranslatedString,
- help: "if deceased" as TranslatedString,
+ label: i18n.str`Date of death`,
+ help: i18n.str`if deceased`,
},
},
{
@@ -124,14 +124,14 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
name: "rightToRevoke",
required: true,
label:
- "Does the founder have the right to revoke the foundation?" as TranslatedString,
+ i18n.str`Does the founder have the right to revoke the foundation?`,
choices: [
{
- label: "Yes" as TranslatedString,
+ label: i18n.str`Yes`,
value: "yes",
},
{
- label: "No" as TranslatedString,
+ label: i18n.str`No`,
value: "no",
},
],
@@ -144,7 +144,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "array",
props: {
label:
- "If the foundation results from the restructuring of pre-existing foundation (re-settlement) or the merger of pre-existing foundations, the following information pertaining to the (actual) founder(s) of the pre-existing foundation(s) has to be given" as TranslatedString,
+ i18n.str`If the foundation results from the restructuring of pre-existing foundation (re-settlement) or the merger of pre-existing foundations, the following information pertaining to the (actual) founder(s) of the pre-existing foundation(s) has to be given`,
labelField: "fullName",
name: "preExistingFounders",
fields: [
@@ -153,7 +153,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "fullName",
label:
- "Last name(s), first name(s)/entity" as TranslatedString,
+ i18n.str`Last name(s), first name(s)/entity`,
},
},
{
@@ -161,36 +161,36 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "address",
label:
- "Actual address of domicile/registered office" as TranslatedString,
+ i18n.str`Actual address of domicile/registered office`,
},
},
{
type: "text",
props: {
name: "country",
- label: "Country" as TranslatedString,
+ label: i18n.str`Country`,
},
},
{
type: "text",
props: {
name: "dateOfBirth",
- label: "Date of birth" as TranslatedString,
+ label: i18n.str`Date of birth`,
},
},
{
type: "text",
props: {
name: "nationality",
- label: "Nationality" as TranslatedString,
+ label: i18n.str`Nationality`,
},
},
{
type: "text",
props: {
name: "dateOfDeath",
- label: "Date of death" as TranslatedString,
- help: "if deceased" as TranslatedString,
+ label: i18n.str`Date of death`,
+ help: i18n.str`if deceased`,
},
},
],
@@ -200,7 +200,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "array",
props: {
label:
- "Pertaining to the beneficiary/-ies at the time of the signing of this form" as TranslatedString,
+ i18n.str`Pertaining to the beneficiary/-ies at the time of the signing of this form`,
labelField: "fullName",
name: "beneficiaryWhenSigning",
fields: [
@@ -209,7 +209,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "fullName",
label:
- "Last name(s), first name(s)/entity" as TranslatedString,
+ i18n.str`Last name(s), first name(s)/entity`,
},
},
{
@@ -217,28 +217,28 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "address",
label:
- "Actual address of domicile/registered office" as TranslatedString,
+ i18n.str`Actual address of domicile/registered office`,
},
},
{
type: "text",
props: {
name: "country",
- label: "Country" as TranslatedString,
+ label: i18n.str`Country`,
},
},
{
type: "text",
props: {
name: "dateOfBirth",
- label: "Date of birth" as TranslatedString,
+ label: i18n.str`Date of birth`,
},
},
{
type: "text",
props: {
name: "nationality",
- label: "Nationality" as TranslatedString,
+ label: i18n.str`Nationality`,
},
},
{
@@ -246,14 +246,14 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "rightToClaim",
label:
- "Has the beneficiary an actual right to claim distribution?" as TranslatedString,
+ i18n.str`Has the beneficiary an actual right to claim distribution?`,
choices: [
{
- label: "Yes" as TranslatedString,
+ label: i18n.str`Yes`,
value: "yes",
},
{
- label: "No" as TranslatedString,
+ label: i18n.str`No`,
value: "no",
},
],
@@ -263,7 +263,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "textArea",
props: {
label:
- "in addition to certain beneficiaries or if there is/are no defined beneficiary/ies pertaining to (a) group(s) of beneficiaries (e.g. descendants of the founder) known at the time of the signing of this form" as TranslatedString,
+ i18n.str`in addition to certain beneficiaries or if there is/are no defined beneficiary/ies pertaining to (a) group(s) of beneficiaries (e.g. descendants of the founder) known at the time of the signing of this form`,
name: "beneficiaryExtra",
},
},
@@ -274,7 +274,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "array",
props: {
label:
- "Information pertaining to further persons having the right to determine or nominate representatives (e.g.) members of the foundation board), if these representatives may dispose over the assets or have the right to change the distribution of the assets or the nomination of beneficiaries" as TranslatedString,
+ i18n.str`Information pertaining to further persons having the right to determine or nominate representatives (e.g.) members of the foundation board), if these representatives may dispose over the assets or have the right to change the distribution of the assets or the nomination of beneficiaries`,
labelField: "fullName",
name: "withRightToNominate",
fields: [
@@ -283,7 +283,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "fullName",
label:
- "Last name(s), first name(s)/entity" as TranslatedString,
+ i18n.str`Last name(s), first name(s)/entity`,
},
},
{
@@ -291,28 +291,28 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "address",
label:
- "Actual address of domicile/registered office" as TranslatedString,
+ i18n.str`Actual address of domicile/registered office`,
},
},
{
type: "text",
props: {
name: "country",
- label: "Country" as TranslatedString,
+ label: i18n.str`Country`,
},
},
{
type: "text",
props: {
name: "dateOfBirth",
- label: "Date of birth" as TranslatedString,
+ label: i18n.str`Date of birth`,
},
},
{
type: "text",
props: {
name: "nationality",
- label: "Nationality" as TranslatedString,
+ label: i18n.str`Nationality`,
},
},
{
@@ -320,14 +320,14 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
props: {
name: "rightToClaim",
label:
- "has the person the right to revoke the foundation?" as TranslatedString,
+ i18n.str`has the person the right to revoke the foundation?`,
choices: [
{
- label: "Yes" as TranslatedString,
+ label: i18n.str`Yes`,
value: "yes",
},
{
- label: "No" as TranslatedString,
+ label: i18n.str`No`,
value: "no",
},
],
@@ -337,7 +337,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "textArea",
props: {
label:
- "in addition to certain beneficiaries or if there is/are no defined beneficiary/ies pertaining to (a) group(s) of beneficiaries (e.g. descendants of the founder) known at the time of the signing of this form" as TranslatedString,
+ i18n.str`in addition to certain beneficiaries or if there is/are no defined beneficiary/ies pertaining to (a) group(s) of beneficiaries (e.g. descendants of the founder) known at the time of the signing of this form`,
name: "beneficiaryExtra",
},
},
@@ -348,12 +348,12 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_12.Form> => ({
type: "text",
props: {
name: "signature",
- label: "Signature" as TranslatedString,
+ label: i18n.str`Signature`,
},
},
],
},
- resolutionSection(current),
+ resolutionSection(current, i18n),
],
behavior: function formBehavior(
v: Partial<Form902_12.Form>,