summaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/902_5e.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_5e.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/902_5e.ts85
1 files changed, 42 insertions, 43 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_5e.ts b/packages/aml-backoffice-ui/src/forms/902_5e.ts
index 8eafb506e..f8dc82b7c 100644
--- a/packages/aml-backoffice-ui/src/forms/902_5e.ts
+++ b/packages/aml-backoffice-ui/src/forms/902_5e.ts
@@ -1,98 +1,97 @@
-import { TranslatedString } from "@gnu-taler/taler-util";
-import { FlexibleForm, FormState } from "@gnu-taler/web-util/browser";
-import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js";
-import { currencyList } from "./index.js";
+import type { TranslatedString } from "@gnu-taler/taler-util";
+import type { FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
+import { BaseForm } from "./index.js";
import { resolutionSection } from "./simplest.js";
-export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
+export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
design: [
{
- title: "Customer Profile" as TranslatedString,
+ title: i18n.str`Customer Profile`,
description:
- "The information below has to refer to the persons from whom the assets originate ultimately (e.g. beneficial owner of the assets, founder/creator of a trust or foundation). Is the customer an operational legal entity or partnership the information may refer to the entity itself (not to the controlling person), unless the entity holds the assets in trust for a third party." as TranslatedString,
+ i18n.str`The information below has to refer to the persons from whom the assets originate ultimately (e.g. beneficial owner of the assets, founder/creator of a trust or foundation). Is the customer an operational legal entity or partnership the information may refer to the entity itself (not to the controlling person), unless the entity holds the assets in trust for a third party.`,
fields: [
{
type: "text",
props: {
name: "customer",
- label: "Customer" as TranslatedString,
- help: "Pursuant Identification Form (VQF doc. No. 902.1) numeral 1" as TranslatedString,
+ label: i18n.str`Customer`,
+ help: i18n.str`Pursuant Identification Form (VQF doc. No. 902.1) numeral 1`,
},
},
],
},
{
- title: "Business activity" as TranslatedString,
+ title: i18n.str`Business activity`,
fields: [
{
type: "textArea",
props: {
- label: "Profession, business activities" as TranslatedString,
+ label: i18n.str`Profession, business activities`,
name: "businessActivity",
- help: "former, current, potentially planned" as TranslatedString,
+ help: i18n.str`former, current, potentially planned`,
},
},
],
},
{
- title: "Financial circumstances" as TranslatedString,
+ title: i18n.str`Financial circumstances`,
fields: [
{
type: "textArea",
props: {
- label: "Income and assets, liabilities" as TranslatedString,
+ label: i18n.str`Income and assets, liabilities`,
name: "financial",
- help: "estimated" as TranslatedString,
+ help: i18n.str`estimated`,
},
},
],
},
{
- title: "Origin of the deposited assets involved" as TranslatedString,
+ title: i18n.str`Origin of the deposited assets involved`,
fields: [
{
type: "text",
props: {
- label: "Nature" as TranslatedString,
+ label: i18n.str`Nature`,
name: "originOfAssets.nature",
- help: "nature of the involved assets" as TranslatedString,
+ help: i18n.str`nature of the involved assets`,
},
},
{
type: "selectOne",
props: {
name: "originOfAssets.currency",
- label: "Currency" as TranslatedString,
- choices: currencyList,
+ label: i18n.str`Currency`,
+ choices: window.amlExchangeBackoffice!.currencies(i18n),
},
},
{
type: "integer",
props: {
- label: "Amount" as TranslatedString,
+ label: i18n.str`Amount`,
name: "originOfAssets.amount",
},
},
{
type: "choiceStacked",
props: {
- label: "Category" as TranslatedString,
+ label: i18n.str`Category`,
name: "originOfAssets.category",
choices: [
{
- label: "Savings" as TranslatedString,
+ label: i18n.str`Savings`,
value: "savings",
},
{
- label: "Own business operations" as TranslatedString,
+ label: i18n.str`Own business operations`,
value: "own-business",
},
{
- label: "Inheritance" as TranslatedString,
+ label: i18n.str`Inheritance`,
value: "inheritance",
},
{
- label: "Other, what?" as TranslatedString,
+ label: i18n.str`Other, what?`,
value: "other",
},
],
@@ -101,7 +100,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
{
type: "text",
props: {
- label: "Other category" as TranslatedString,
+ label: i18n.str`Other category`,
name: "originOfAssets.categoryOther",
required: true,
},
@@ -110,7 +109,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
type: "textArea",
props: {
label:
- "Detailed description of the origins/economical background of the assets involved in the business relationship" as TranslatedString,
+ i18n.str`Detailed description of the origins/economical background of the assets involved in the business relationship`,
name: "originOfAssets.details",
},
},
@@ -118,21 +117,21 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
},
{
title:
- "Nature and purpose of the business relationship" as TranslatedString,
+ i18n.str`Nature and purpose of the business relationship`,
fields: [
{
type: "textArea",
props: {
- label: "Purpose of the business relationship" as TranslatedString,
+ label: i18n.str`Purpose of the business relationship`,
name: "nature.purpose",
- help: "nature of the involved assets" as TranslatedString,
+ help: i18n.str`nature of the involved assets`,
},
},
{
type: "textArea",
props: {
label:
- "Information on the planned development of the business relationship and the assets" as TranslatedString,
+ i18n.str`Information on the planned development of the business relationship and the assets`,
name: "nature.plan",
},
},
@@ -140,20 +139,20 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
type: "textArea",
props: {
label:
- "Especially in the case of cash or money and asset transfer transactions with regular customers: Details on usual business volume, Information on the beneficiaries, (Full name, address, bank account)" as TranslatedString,
+ i18n.str`Especially in the case of cash or money and asset transfer transactions with regular customers: Details on usual business volume, Information on the beneficiaries, (Full name, address, bank account)`,
name: "nature.cashOrMoneyTransfer",
},
},
],
},
{
- title: "Relationship with third parties" as TranslatedString,
+ title: i18n.str`Relationship with third parties`,
fields: [
{
type: "textArea",
props: {
label:
- "Relation of the customer to the beneficial owner involved in the business relationship" as TranslatedString,
+ i18n.str`Relation of the customer to the beneficial owner involved in the business relationship`,
name: "relations.beneficialOwners",
},
},
@@ -161,7 +160,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
type: "textArea",
props: {
label:
- "Relation of the customer to the controlling persons involved in the business relationship" as TranslatedString,
+ i18n.str`Relation of the customer to the controlling persons involved in the business relationship`,
name: "relations.controllingPersons",
},
},
@@ -169,7 +168,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
type: "textArea",
props: {
label:
- "Relation of the customer to the authorized signatories involved in the business relationship" as TranslatedString,
+ i18n.str`Relation of the customer to the authorized signatories involved in the business relationship`,
name: "relations.authorizedSignatories",
},
},
@@ -177,39 +176,39 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
type: "textArea",
props: {
label:
- "Relation of the customer to other persons involved in the business relationship" as TranslatedString,
+ i18n.str`Relation of the customer to other persons involved in the business relationship`,
name: "relations.otherPersons",
},
},
{
type: "textArea",
props: {
- label: "Relation to other AMLA-Files" as TranslatedString,
+ label: i18n.str`Relation to other AMLA-Files`,
name: "relations.withOtherAmlaFiles",
},
},
{
type: "textArea",
props: {
- label: "Introducer / agents / references" as TranslatedString,
+ label: i18n.str`Introducer / agents / references`,
name: "relations.references",
},
},
],
},
{
- title: "Further information" as TranslatedString,
+ title: i18n.str`Further information`,
fields: [
{
type: "textArea",
props: {
- label: "Other relevant information" as TranslatedString,
+ label: i18n.str`Other relevant information`,
name: "furtherInformation",
},
},
],
},
- resolutionSection(current),
+ resolutionSection(current, i18n),
],
behavior: function formBehavior(
v: Partial<Form902_5.Form>,