diff --git a/examples/supplier-onboarding-i18n/README.md b/examples/supplier-onboarding-i18n/README.md
index 7a745c02..114c8f2c 100644
--- a/examples/supplier-onboarding-i18n/README.md
+++ b/examples/supplier-onboarding-i18n/README.md
@@ -1,20 +1,26 @@
# Supplier onboarding in 15 locales with TeaQL Java
-The [KSML model](model.xml) describes a warehouse with suppliers. The [semantic model](semantics.json) sends two registrations through the generated workspace. One lacks a supplier name. The other submits 3 as the minimum order quantity, below the allowed value of 10. The application attempts audited saves and uses generated Q to confirm that SQLite stores neither invalid supplier.
+The KSML model: https://github.com/teaql/teaql-java/blob/examples-i18n-15-locales-v1/examples/supplier-onboarding-i18n/model.xml describes a warehouse with suppliers. The semantic model: https://github.com/teaql/teaql-java/blob/examples-i18n-15-locales-v1/examples/supplier-onboarding-i18n/semantics.json sends two registrations through the generated workspace. One lacks a supplier name. The other submits 3 as the minimum order quantity, below the allowed value of 10. The application attempts audited saves and uses generated Q to confirm that SQLite stores neither invalid supplier.
+
+## AI-translated business vocabulary
+
+The model bundle includes vocabulary.json: https://github.com/teaql/teaql-java/blob/examples-i18n-15-locales-v1/examples/supplier-onboarding-i18n/vocabulary.json, authored by OpenAI Codex for all 15 locales. It translates every entity and field label, including supplier name and minimum order quantity. The model selects it with `i18n_catalog="vocabulary.json"`. Supply both files when regenerating the workspace. The generator writes these labels into the application catalog and the Checker presentation metadata embedded in the generated library. The example checks the actual error text for the selected locale’s field label. A translated sentence with an untranslated English field label fails verification.
## Run and select a locale
-JDK 21, Maven 3.9, Git, and Python 3.9 or newer. This example uses local Java SDK 6.3.0 source. The runner builds the local Java SDK, generated library and shaded console in temporary directories. Maven settings are supplied by the runner and resolve third-party dependencies through Maven Central.
+JDK 21, Maven 3.9, Git, and Python 3.9 or newer. The model targets the Java 6.3.0 API baseline. The runner reads the version of the selected local SDK source and builds all TeaQL dependencies with that version, including the current local SDK. The runner builds the local Java SDK, generated library and shaded console in temporary directories. Maven settings are supplied by the runner and resolve third-party dependencies through Maven Central.
```sh
-bash examples/supplier-onboarding-i18n/run.sh
-bash examples/supplier-onboarding-i18n/run.sh --locale fr
-bash examples/supplier-onboarding-i18n/run.sh --all
-bash examples/supplier-onboarding-i18n/run.sh --edge-cases
-bash examples/supplier-onboarding-i18n/run.sh --verify
+git clone --branch examples-i18n-15-locales-v1 https://github.com/teaql/teaql-java.git
+cd teaql-java/examples/supplier-onboarding-i18n
+bash run.sh
+bash run.sh --locale ar
+bash run.sh --all
+bash run.sh --edge-cases
+bash run.sh --verify
```
-The commands run from the runtime repository root. The output is UTF-8 JSON Lines. Each validation row gives the effective locale, stable message key, canonical field, native rule, arguments and localized message. `--all` uses the 15 locales from the semantic model in one process. The final command runs the full set twice against one SQLite file and runs the locale boundary checks.
+The clone command creates `teaql-java` in your current directory. The next command enters its supplier example directory. Run the following `bash run.sh` commands there. The article snapshot is pinned by the source tag `examples-i18n-15-locales-v1`. The output is UTF-8 JSON Lines. Each validation row gives the effective locale, stable message key, canonical field, native rule, arguments and localized message. `--all` uses the 15 locales from the semantic model in one process. The final command runs the full set twice against one SQLite file and runs the locale boundary checks.
The app selects the locale with `context.setLocaleCode(code)` and reads `context.locale().code()`. A new context defaults to `en`. The parser trims, normalizes underscores and case, and resolves known aliases such as `ZH_hant` to `zh-TW`. An empty or unsupported code raises `UnsupportedLocaleException` and preserves the previous locale. Single-language mode prints the rejection and exits 2. Locale selection comes from the trusted CLI and context. Environment variables and business input do not set it.
@@ -27,13 +33,17 @@ The app selects the locale with `context.setLocaleCode(code)` and reads `context
3. The renderer chooses the locale and a template for the field's location shape. It binds the rendered field, model path and applicable checker parameters, including the lower bound.
4. The sample attaches the generated application catalog through `context.installI18nCatalog(I18nCatalog.fromJson(input))`. Its Vietnamese message entries are absent. Built-in Vietnamese supplies the same two messages after attachment. For this natural checker message, selection tries the application's shape-specific override, the application legacy template, and the built-in natural template at the active locale, then repeats that order for English. The generic invalid rule can supply the final natural template. Direct lookup through the legacy message catalog selects application and built-in entries at the current locale first, then application and built-in English, then the stable key.
-The independent French context remains French through the main context's Japanese, Arabic and Japanese sequence. Domain labels without an available translation can remain in English. The original rule enum is uppercase. The example exposes the language-neutral keys alongside it. [Locale source](../../teaql-core/src/main/java/io/teaql/core/i18n/Locale.java) · [Message lookup source](../../teaql-core/src/main/java/io/teaql/core/i18n/I18nCatalog.java) · [Natural templates source](../../teaql-core/src/main/java/io/teaql/core/i18n/CheckerMessageCatalog.java)
+The independent French context remains French through the main context's Japanese, Arabic and Japanese sequence. All labels used by this example have explicit translations in its model vocabulary. The original rule enum is uppercase. The example exposes the language-neutral keys alongside it. Locale source: https://github.com/teaql/teaql-java/blob/examples-i18n-15-locales-v1/teaql-core/src/main/java/io/teaql/core/i18n/Locale.java · Message lookup source: https://github.com/teaql/teaql-java/blob/examples-i18n-15-locales-v1/teaql-core/src/main/java/io/teaql/core/i18n/I18nCatalog.java · Natural templates source: https://github.com/teaql/teaql-java/blob/examples-i18n-15-locales-v1/teaql-core/src/main/java/io/teaql/core/i18n/CheckerMessageCatalog.java
## Run the same scene in another runtime
-Keep the same KSML and semantic inputs when switching to its sibling checkout. Each runtime uses its own setup and call style, while the error keys, field paths and minimum bound stay stable.
+Keep the same KSML model, semantic inputs and AI vocabulary when switching runtimes. The refreshed article examples are available at these complete URLs:
+
+https://github.com/teaql/teaql-java/tree/examples-i18n-15-locales-v1/examples/supplier-onboarding-i18n
+
+https://github.com/teaql/teaql-rs/tree/examples-i18n-15-locales-v1/examples/supplier-onboarding-i18n
-[Java](./README.md) · [Rust](../../../rust/examples/supplier-onboarding-i18n/README.md) · [TypeScript](../../../typescript/examples/supplier-onboarding-i18n/README.md) · [Go](../../../go/examples/supplier-onboarding-i18n/README.md) · [Python](../../../python/examples/supplier-onboarding-i18n/README.md) · [C#/.NET](../../../dotnet/examples/supplier-onboarding-i18n/README.md) · [Swift](../../../swift/Examples/SupplierOnboardingI18n/README.md)
+The complete 15-locale, two-error message table is included in `messages.md` in this directory.
## Add a locale
diff --git a/examples/supplier-onboarding-i18n/generated-files.json b/examples/supplier-onboarding-i18n/generated-files.json
index 663b6b66..937020ee 100644
--- a/examples/supplier-onboarding-i18n/generated-files.json
+++ b/examples/supplier-onboarding-i18n/generated-files.json
@@ -7,8 +7,8 @@
"lib/src/main/java/com/teaql/supplieronboardingservice/Checkers.java": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"lib/src/main/java/com/teaql/supplieronboardingservice/Constants.java": "0cfcf3aa558ed8b55ca71f567ede299f9a95227b63d7300e16032e7a5f046dac",
"lib/src/main/java/com/teaql/supplieronboardingservice/E.java": "79ff3cb2cfad2143120ba4a627db0afc1a5f964213d42ef5d8f432b6c30050c5",
- "lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java": "1c7f64b2ddc6fdd70463c9e09ffb0fe37ed312a8cd8609b088c1cb2a01f55e6b",
- "lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java": "f52540b74ce9e6ed0dd8c8b46657f8539617944a5b3e813fdf3a8c68f459bf82",
+ "lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java": "8b7d66f275b6d9df1eab30fce3e711ccb4e5013dc8130233c6a5aaee6b1b3907",
+ "lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java": "b1044e70509517724c0105db9ddea8055aff87e25861688b8499a79b22e9e570",
"lib/src/main/java/com/teaql/supplieronboardingservice/Q.java": "5da716e058711d26d9c0040670349b936f5dae6a117402d29d64cb3a8e96789c",
"lib/src/main/java/com/teaql/supplieronboardingservice/Repositories.java": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"lib/src/main/java/com/teaql/supplieronboardingservice/SupplierOnboardingServiceUserContext.java": "ff9511a4d5363fec480beda8c58a8b1c988b672e2ea7ed3eb0e2aa3cc955b441",
@@ -24,8 +24,8 @@
"lib/src/main/java/com/teaql/supplieronboardingservice/warehouse/WarehouseListExpression.java": "a27a8efffb98747eea8b95cee7f8e2d79d1c11446e9ef85da778fcc613c75e67",
"lib/src/main/java/com/teaql/supplieronboardingservice/warehouse/WarehouseRequest.java": "e61584951aaaacff2175a8b3f753b5b62465a22ff327ef263cb6350c22f81657",
"lib/src/main/resources/META-INF/services/io.teaql.core.meta.EntityMetaAssembler": "c699cbbe9f6d75cebf1253969a8537f8be80ed3b1637040a2392a74b6292539d",
- "teaql/checker-model.json": "0c70836b868047e6bbf8c5a4b167343ef9425e5c535c59ee388b634a79f2b144",
- "teaql/model-provenance.json": "94ae1b99943275455fce8de247c97f10a81cdb09fef91ada0ae924b26e572759"
+ "teaql/checker-model.json": "e1e6711e7493501c604fa095818ec2a2e1d51e137d5afb2674b3a9e852848037",
+ "teaql/model-provenance.json": "8b7e6d5c31dffe0eb18e181dd99d90fff8a4beebe1aee78168ec8097fd979e43"
}
},
"schema": "teaql.i18n-showcase-generation/v1",
@@ -47,8 +47,8 @@
"lib/src/main/java/com/teaql/supplieronboardingservice/Checkers.java": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"lib/src/main/java/com/teaql/supplieronboardingservice/Constants.java": "0cfcf3aa558ed8b55ca71f567ede299f9a95227b63d7300e16032e7a5f046dac",
"lib/src/main/java/com/teaql/supplieronboardingservice/E.java": "79ff3cb2cfad2143120ba4a627db0afc1a5f964213d42ef5d8f432b6c30050c5",
- "lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java": "1c7f64b2ddc6fdd70463c9e09ffb0fe37ed312a8cd8609b088c1cb2a01f55e6b",
- "lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java": "f52540b74ce9e6ed0dd8c8b46657f8539617944a5b3e813fdf3a8c68f459bf82",
+ "lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java": "8b7d66f275b6d9df1eab30fce3e711ccb4e5013dc8130233c6a5aaee6b1b3907",
+ "lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java": "b1044e70509517724c0105db9ddea8055aff87e25861688b8499a79b22e9e570",
"lib/src/main/java/com/teaql/supplieronboardingservice/Q.java": "5da716e058711d26d9c0040670349b936f5dae6a117402d29d64cb3a8e96789c",
"lib/src/main/java/com/teaql/supplieronboardingservice/Repositories.java": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"lib/src/main/java/com/teaql/supplieronboardingservice/SupplierOnboardingServiceUserContext.java": "ff9511a4d5363fec480beda8c58a8b1c988b672e2ea7ed3eb0e2aa3cc955b441",
@@ -69,9 +69,9 @@
"src/main/java/com/teaql/supplieronboardingservice/CustomUserContext.java": "30c31ae5c588e98b2ff6b6821b4022be0528640290eb21de5d727c52d6aa3c63",
"src/main/java/com/teaql/supplieronboardingservice/WorkspaceTeaQLDatabase.java": "a7838bb83fe4b65b1ada7a39cd83cd60b466b312ef2a1b65a2a8aa9e9172db9b",
"src/main/resources/application.properties": "a6206b7e5aea2807617fdffd65a9218373bd2d4d4077ca39c744141e1d2302b8",
- "teaql-i18n.json": "f848093c0785f2730eaa74f8a9e175e1f90943f056d84666bc964d56668e298c",
- "teaql/checker-model.json": "0c70836b868047e6bbf8c5a4b167343ef9425e5c535c59ee388b634a79f2b144",
- "teaql/model-provenance.json": "94ae1b99943275455fce8de247c97f10a81cdb09fef91ada0ae924b26e572759"
+ "teaql-i18n.json": "63100d819a0238ed9746da7f542673f100527257f29040b0e73b7553e8c3be1d",
+ "teaql/checker-model.json": "e1e6711e7493501c604fa095818ec2a2e1d51e137d5afb2674b3a9e852848037",
+ "teaql/model-provenance.json": "8b7e6d5c31dffe0eb18e181dd99d90fff8a4beebe1aee78168ec8097fd979e43"
}
}
}
diff --git a/examples/supplier-onboarding-i18n/java-app-console/pom.xml b/examples/supplier-onboarding-i18n/java-app-console/pom.xml
index 5f164bc1..8824a16a 100644
--- a/examples/supplier-onboarding-i18n/java-app-console/pom.xml
+++ b/examples/supplier-onboarding-i18n/java-app-console/pom.xml
@@ -15,7 +15,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.4.0
+ 6.3.0
diff --git a/examples/supplier-onboarding-i18n/java-app-console/teaql-i18n.json b/examples/supplier-onboarding-i18n/java-app-console/teaql-i18n.json
index 441a4013..41f696f2 100644
--- a/examples/supplier-onboarding-i18n/java-app-console/teaql-i18n.json
+++ b/examples/supplier-onboarding-i18n/java-app-console/teaql-i18n.json
@@ -4,103 +4,240 @@
"locales": {
"de": {
"vocabulary": {
+ "property.warehouse.id": "Kennung",
+ "property.warehouse.name": "Lagername",
+ "property.supplier.id": "Kennung",
+ "entity.supplier": "Lieferant",
+ "entity.warehouse": "Lager",
+ "property.supplier.minimumOrderQuantity": "Mindestbestellmenge",
+ "property.supplier.name": "Lieferantenname",
+ "property.supplier.warehouse": "Lager",
+ "property.supplier.version": "Version",
+ "property.warehouse.version": "Version"
},
"messages": {
}
},
"ko": {
"vocabulary": {
+ "property.warehouse.id": "식별자",
+ "property.warehouse.name": "창고명",
+ "property.supplier.id": "식별자",
+ "entity.supplier": "공급업체",
+ "entity.warehouse": "창고",
+ "property.supplier.minimumOrderQuantity": "최소 주문 수량",
+ "property.supplier.name": "공급업체명",
+ "property.supplier.warehouse": "창고",
+ "property.supplier.version": "버전",
+ "property.warehouse.version": "버전"
},
"messages": {
}
},
"pt": {
"vocabulary": {
+ "property.warehouse.id": "identificador",
+ "property.warehouse.name": "nome do armazém",
+ "property.supplier.id": "identificador",
+ "entity.supplier": "fornecedor",
+ "entity.warehouse": "armazém",
+ "property.supplier.minimumOrderQuantity": "quantidade mínima do pedido",
+ "property.supplier.name": "nome do fornecedor",
+ "property.supplier.warehouse": "armazém",
+ "property.supplier.version": "versão",
+ "property.warehouse.version": "versão"
},
"messages": {
}
},
"zh-TW": {
"vocabulary": {
+ "property.warehouse.id": "識別碼",
+ "property.warehouse.name": "倉庫名稱",
+ "property.supplier.id": "識別碼",
+ "entity.supplier": "供應商",
+ "entity.warehouse": "倉庫",
+ "property.supplier.minimumOrderQuantity": "最小訂購量",
+ "property.supplier.name": "供應商名稱",
+ "property.supplier.warehouse": "倉庫",
+ "property.supplier.version": "版本",
+ "property.warehouse.version": "版本"
},
"messages": {
}
},
"fil": {
"vocabulary": {
+ "property.warehouse.id": "pantukoy",
+ "property.warehouse.name": "pangalan ng bodega",
+ "property.supplier.id": "pantukoy",
+ "entity.supplier": "tagapagtustos",
+ "entity.warehouse": "bodega",
+ "property.supplier.minimumOrderQuantity": "pinakamababang dami ng order",
+ "property.supplier.name": "pangalan ng tagapagtustos",
+ "property.supplier.warehouse": "bodega",
+ "property.supplier.version": "bersiyon",
+ "property.warehouse.version": "bersiyon"
},
"messages": {
}
},
"en": {
"vocabulary": {
- "property.warehouse.id": "Id",
- "property.warehouse.name": "Name",
- "property.supplier.id": "Id",
+ "property.warehouse.id": "identifier",
+ "property.warehouse.name": "warehouse name",
+ "property.supplier.id": "identifier",
"entity.supplier": "Supplier",
"entity.warehouse": "Warehouse",
- "property.supplier.minimumOrderQuantity": "Minimum Order Quantity",
- "property.supplier.name": "Name",
+ "property.supplier.minimumOrderQuantity": "minimum order quantity",
+ "property.supplier.name": "supplier name",
"property.supplier.warehouse": "Warehouse",
- "property.supplier.version": "Version",
- "property.warehouse.version": "Version"
+ "property.supplier.version": "version",
+ "property.warehouse.version": "version"
},
"messages": {
}
},
"fr": {
"vocabulary": {
+ "property.warehouse.id": "identifiant",
+ "property.warehouse.name": "nom de l’entrepôt",
+ "property.supplier.id": "identifiant",
+ "entity.supplier": "fournisseur",
+ "entity.warehouse": "entrepôt",
+ "property.supplier.minimumOrderQuantity": "quantité minimale de commande",
+ "property.supplier.name": "nom du fournisseur",
+ "property.supplier.warehouse": "entrepôt",
+ "property.supplier.version": "version",
+ "property.warehouse.version": "version"
},
"messages": {
}
},
"zh-CN": {
"vocabulary": {
+ "property.warehouse.id": "标识符",
+ "property.warehouse.name": "仓库名称",
+ "property.supplier.id": "标识符",
"entity.supplier": "供应商",
"entity.warehouse": "仓库",
- "property.supplier.warehouse": "仓库"
+ "property.supplier.minimumOrderQuantity": "最小订购量",
+ "property.supplier.name": "供应商名称",
+ "property.supplier.warehouse": "仓库",
+ "property.supplier.version": "版本",
+ "property.warehouse.version": "版本"
},
"messages": {
}
},
"es": {
"vocabulary": {
+ "property.warehouse.id": "identificador",
+ "property.warehouse.name": "nombre del almacén",
+ "property.supplier.id": "identificador",
+ "entity.supplier": "proveedor",
+ "entity.warehouse": "almacén",
+ "property.supplier.minimumOrderQuantity": "cantidad mínima de pedido",
+ "property.supplier.name": "nombre del proveedor",
+ "property.supplier.warehouse": "almacén",
+ "property.supplier.version": "versión",
+ "property.warehouse.version": "versión"
},
"messages": {
}
},
"ar": {
"vocabulary": {
+ "property.warehouse.id": "المعرّف",
+ "property.warehouse.name": "اسم المستودع",
+ "property.supplier.id": "المعرّف",
+ "entity.supplier": "المورد",
+ "entity.warehouse": "المستودع",
+ "property.supplier.minimumOrderQuantity": "الحد الأدنى لكمية الطلب",
+ "property.supplier.name": "اسم المورد",
+ "property.supplier.warehouse": "المستودع",
+ "property.supplier.version": "الإصدار",
+ "property.warehouse.version": "الإصدار"
},
"messages": {
}
},
"vi": {
"vocabulary": {
+ "property.warehouse.id": "mã định danh",
+ "property.warehouse.name": "tên kho",
+ "property.supplier.id": "mã định danh",
+ "entity.supplier": "nhà cung cấp",
+ "entity.warehouse": "kho",
+ "property.supplier.minimumOrderQuantity": "số lượng đặt hàng tối thiểu",
+ "property.supplier.name": "tên nhà cung cấp",
+ "property.supplier.warehouse": "kho",
+ "property.supplier.version": "phiên bản",
+ "property.warehouse.version": "phiên bản"
},
"messages": {
}
},
"th": {
"vocabulary": {
+ "property.warehouse.id": "รหัส",
+ "property.warehouse.name": "ชื่อคลังสินค้า",
+ "property.supplier.id": "รหัส",
+ "entity.supplier": "ผู้จัดจำหน่าย",
+ "entity.warehouse": "คลังสินค้า",
+ "property.supplier.minimumOrderQuantity": "จำนวนสั่งซื้อขั้นต่ำ",
+ "property.supplier.name": "ชื่อผู้จัดจำหน่าย",
+ "property.supplier.warehouse": "คลังสินค้า",
+ "property.supplier.version": "เวอร์ชัน",
+ "property.warehouse.version": "เวอร์ชัน"
},
"messages": {
}
},
"uk": {
"vocabulary": {
+ "property.warehouse.id": "ідентифікатор",
+ "property.warehouse.name": "назва складу",
+ "property.supplier.id": "ідентифікатор",
+ "entity.supplier": "постачальник",
+ "entity.warehouse": "склад",
+ "property.supplier.minimumOrderQuantity": "мінімальна кількість замовлення",
+ "property.supplier.name": "назва постачальника",
+ "property.supplier.warehouse": "склад",
+ "property.supplier.version": "версія",
+ "property.warehouse.version": "версія"
},
"messages": {
}
},
"ja": {
"vocabulary": {
+ "property.warehouse.id": "識別子",
+ "property.warehouse.name": "倉庫名",
+ "property.supplier.id": "識別子",
+ "entity.supplier": "仕入先",
+ "entity.warehouse": "倉庫",
+ "property.supplier.minimumOrderQuantity": "最小発注数量",
+ "property.supplier.name": "仕入先名",
+ "property.supplier.warehouse": "倉庫",
+ "property.supplier.version": "バージョン",
+ "property.warehouse.version": "バージョン"
},
"messages": {
}
},
"id": {
"vocabulary": {
+ "property.warehouse.id": "pengenal",
+ "property.warehouse.name": "nama gudang",
+ "property.supplier.id": "pengenal",
+ "entity.supplier": "pemasok",
+ "entity.warehouse": "gudang",
+ "property.supplier.minimumOrderQuantity": "jumlah pesanan minimum",
+ "property.supplier.name": "nama pemasok",
+ "property.supplier.warehouse": "gudang",
+ "property.supplier.version": "versi",
+ "property.warehouse.version": "versi"
},
"messages": {
}
diff --git a/examples/supplier-onboarding-i18n/java-app-console/teaql/checker-model.json b/examples/supplier-onboarding-i18n/java-app-console/teaql/checker-model.json
index 1eec5fc8..f77a0e6e 100644
--- a/examples/supplier-onboarding-i18n/java-app-console/teaql/checker-model.json
+++ b/examples/supplier-onboarding-i18n/java-app-console/teaql/checker-model.json
@@ -1 +1 @@
-{"schema":"teaql.checker-model/v1","revision":"sha256:f4b63b86dd7cad758f18ebc623d0a4976afb15dbe9f61002523f909bb75098b0","entities":{"Supplier":{"labels":{"en":"Supplier","zh-CN":"供应商"},"fields":[{"name":"id","labels":{"en":"id"},"aliases":["Id"]},{"name":"minimum_order_quantity","labels":{"en":"minimum order quantity"},"aliases":["MinimumOrderQuantity","minimumOrderQuantity"]},{"name":"name","labels":{"en":"name"},"aliases":["Name"]},{"name":"version","labels":{"en":"version"},"aliases":["Version"]},{"name":"warehouse","targetType":"Warehouse","labels":{"en":"Warehouse","zh-CN":"仓库"},"aliases":["Warehouse"]}]},"Warehouse":{"labels":{"en":"Warehouse","zh-CN":"仓库"},"fields":[{"name":"id","labels":{"en":"id"},"aliases":["Id"]},{"name":"name","labels":{"en":"name"},"aliases":["Name"]},{"name":"supplier_list","targetType":"Supplier","labels":{"en":"Supplier","zh-CN":"供应商"},"aliases":["SupplierList","supplierList"]},{"name":"version","labels":{"en":"version"},"aliases":["Version"]}]}}}
\ No newline at end of file
+{"schema":"teaql.checker-model/v1","revision":"sha256:6062a2dd181642c0ffa1b6731b1402b88272a4fa7c808eb9c90f2807b61905d3","entities":{"Supplier":{"labels":{"en":"Supplier","zh-CN":"供应商","zh-TW":"供應商","ja":"仕入先","ko":"공급업체","de":"Lieferant","fr":"fournisseur","es":"proveedor","pt":"fornecedor","ar":"المورد","th":"ผู้จัดจำหน่าย","id":"pemasok","fil":"tagapagtustos","uk":"постачальник","vi":"nhà cung cấp"},"fields":[{"name":"id","labels":{"en":"identifier","zh-CN":"标识符","zh-TW":"識別碼","ja":"識別子","ko":"식별자","de":"Kennung","fr":"identifiant","es":"identificador","pt":"identificador","ar":"المعرّف","th":"รหัส","id":"pengenal","fil":"pantukoy","uk":"ідентифікатор","vi":"mã định danh"},"aliases":["Id"]},{"name":"minimum_order_quantity","labels":{"en":"minimum order quantity","zh-CN":"最小订购量","zh-TW":"最小訂購量","ja":"最小発注数量","ko":"최소 주문 수량","de":"Mindestbestellmenge","fr":"quantité minimale de commande","es":"cantidad mínima de pedido","pt":"quantidade mínima do pedido","ar":"الحد الأدنى لكمية الطلب","th":"จำนวนสั่งซื้อขั้นต่ำ","id":"jumlah pesanan minimum","fil":"pinakamababang dami ng order","uk":"мінімальна кількість замовлення","vi":"số lượng đặt hàng tối thiểu"},"aliases":["MinimumOrderQuantity","minimumOrderQuantity"]},{"name":"name","labels":{"en":"supplier name","zh-CN":"供应商名称","zh-TW":"供應商名稱","ja":"仕入先名","ko":"공급업체명","de":"Lieferantenname","fr":"nom du fournisseur","es":"nombre del proveedor","pt":"nome do fornecedor","ar":"اسم المورد","th":"ชื่อผู้จัดจำหน่าย","id":"nama pemasok","fil":"pangalan ng tagapagtustos","uk":"назва постачальника","vi":"tên nhà cung cấp"},"aliases":["Name"]},{"name":"version","labels":{"en":"version","zh-CN":"版本","zh-TW":"版本","ja":"バージョン","ko":"버전","de":"Version","fr":"version","es":"versión","pt":"versão","ar":"الإصدار","th":"เวอร์ชัน","id":"versi","fil":"bersiyon","uk":"версія","vi":"phiên bản"},"aliases":["Version"]},{"name":"warehouse","targetType":"Warehouse","labels":{"en":"Warehouse","zh-CN":"仓库","zh-TW":"倉庫","ja":"倉庫","ko":"창고","de":"Lager","fr":"entrepôt","es":"almacén","pt":"armazém","ar":"المستودع","th":"คลังสินค้า","id":"gudang","fil":"bodega","uk":"склад","vi":"kho"},"aliases":["Warehouse"]}]},"Warehouse":{"labels":{"en":"Warehouse","zh-CN":"仓库","zh-TW":"倉庫","ja":"倉庫","ko":"창고","de":"Lager","fr":"entrepôt","es":"almacén","pt":"armazém","ar":"المستودع","th":"คลังสินค้า","id":"gudang","fil":"bodega","uk":"склад","vi":"kho"},"fields":[{"name":"id","labels":{"en":"identifier","zh-CN":"标识符","zh-TW":"識別碼","ja":"識別子","ko":"식별자","de":"Kennung","fr":"identifiant","es":"identificador","pt":"identificador","ar":"المعرّف","th":"รหัส","id":"pengenal","fil":"pantukoy","uk":"ідентифікатор","vi":"mã định danh"},"aliases":["Id"]},{"name":"name","labels":{"en":"warehouse name","zh-CN":"仓库名称","zh-TW":"倉庫名稱","ja":"倉庫名","ko":"창고명","de":"Lagername","fr":"nom de l’entrepôt","es":"nombre del almacén","pt":"nome do armazém","ar":"اسم المستودع","th":"ชื่อคลังสินค้า","id":"nama gudang","fil":"pangalan ng bodega","uk":"назва складу","vi":"tên kho"},"aliases":["Name"]},{"name":"supplier_list","targetType":"Supplier","labels":{"en":"Supplier","zh-CN":"供应商","zh-TW":"供應商","ja":"仕入先","ko":"공급업체","de":"Lieferant","fr":"fournisseur","es":"proveedor","pt":"fornecedor","ar":"المورد","th":"ผู้จัดจำหน่าย","id":"pemasok","fil":"tagapagtustos","uk":"постачальник","vi":"nhà cung cấp"},"aliases":["SupplierList","supplierList"]},{"name":"version","labels":{"en":"version","zh-CN":"版本","zh-TW":"版本","ja":"バージョン","ko":"버전","de":"Version","fr":"version","es":"versión","pt":"versão","ar":"الإصدار","th":"เวอร์ชัน","id":"versi","fil":"bersiyon","uk":"версія","vi":"phiên bản"},"aliases":["Version"]}]}}}
\ No newline at end of file
diff --git a/examples/supplier-onboarding-i18n/java-app-console/teaql/model-provenance.json b/examples/supplier-onboarding-i18n/java-app-console/teaql/model-provenance.json
index 05f3b87b..829625d5 100644
--- a/examples/supplier-onboarding-i18n/java-app-console/teaql/model-provenance.json
+++ b/examples/supplier-onboarding-i18n/java-app-console/teaql/model-provenance.json
@@ -1 +1 @@
-{"schemaVersion":1,"modelUuid":null,"revisionHash":"sha256:66bd8079ce8129c77f2ed1769a9d518a285fa8abd19823e9941351de6e826436","generatorVersion":"Git"}
\ No newline at end of file
+{"schemaVersion":1,"modelUuid":null,"revisionHash":"sha256:6731d709a547fb9ced01c1cfbab9cd40adc46e8bcc7bc58a1a5eeb0f533f76b5","generatorVersion":"Git"}
\ No newline at end of file
diff --git a/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml b/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml
index 31970845..1247c8fb 100644
--- a/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml
+++ b/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.4.0
+ 6.3.0
UTF-8
true
diff --git a/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java b/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java
index 421f22da..954c48f3 100644
--- a/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java
+++ b/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/EntityMetaRegistry.java
@@ -25,6 +25,36 @@ private void registerWarehouse() {
entityDescriptor.with("name", "Warehouse")
.with("zh_CN", "仓库")
+
+ .with("message_label_en", "Warehouse")
+
+ .with("message_label_zh_CN", "仓库")
+
+ .with("message_label_zh_TW", "倉庫")
+
+ .with("message_label_ja", "倉庫")
+
+ .with("message_label_ko", "창고")
+
+ .with("message_label_de", "Lager")
+
+ .with("message_label_fr", "entrepôt")
+
+ .with("message_label_es", "almacén")
+
+ .with("message_label_pt", "armazém")
+
+ .with("message_label_ar", "المستودع")
+
+ .with("message_label_th", "คลังสินค้า")
+
+ .with("message_label_id", "gudang")
+
+ .with("message_label_fil", "bodega")
+
+ .with("message_label_uk", "склад")
+
+ .with("message_label_vi", "kho")
;
entityDescriptor.setAuditMaskFields(java.util.List.of());
@@ -38,15 +68,19 @@ private void registerWarehouse() {
entityDescriptor.addSimpleProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.VERSION_PROPERTY, Long.class)
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.ID_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.ID_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.ID_PROPERTY).with("message_label_ar", "المعرّف")
- .with("isVersion", "false")
+ .with("message_label_vi", "mã định danh")
- .with("oracle_sqlType", "number(11)")
+ .with("message_label_th", "รหัส")
- .with("javaType", "java.lang.Long")
+ .with("message_label_es", "identificador")
- .with("sqlType", "BIGINT")
+ .with("message_label_ja", "識別子")
+
+ .with("oracle_sqlType", "number(11)")
+
+ .with("message_label_ko", "식별자")
.with("isId", "true")
@@ -56,31 +90,57 @@ private void registerWarehouse() {
.with("isNumber", "false")
+ .with("message_label_en", "identifier")
+
.with("isString", "false")
.with("isDate", "false")
.with("snowflake_sqlType", "number")
- .with("graphqlType", "Long")
+ .with("message_label_zh_TW", "識別碼")
- .with("isTime", "false")
+ .with("graphqlType", "Long")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("isVersion", "false")
+
+ .with("message_label_id", "pengenal")
+
+ .with("message_label_uk", "ідентифікатор")
+
+ .with("javaType", "java.lang.Long")
+
+ .with("message_label_de", "Kennung")
+
+ .with("sqlType", "BIGINT")
+
+ .with("message_label_zh_CN", "标识符")
+
+ .with("message_label_pt", "identificador")
+
+ .with("message_label_fr", "identifiant")
+
+ .with("message_label_fil", "pantukoy")
+
+ .with("isTime", "false")
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.NAME_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.NAME_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.NAME_PROPERTY).with("message_label_ar", "اسم المستودع")
- .with("max", "100")
+ .with("message_label_vi", "tên kho")
- .with("isVersion", "false")
+ .with("message_label_th", "ชื่อคลังสินค้า")
- .with("javaType", "java.lang.String")
+ .with("message_label_es", "nombre del almacén")
- .with("candidates", "Central Warehouse")
+ .with("message_label_ja", "倉庫名")
- .with("sqlType", "VARCHAR()")
+ .with("message_label_ko", "창고명")
.with("isId", "false")
@@ -90,27 +150,61 @@ private void registerWarehouse() {
.with("isNumber", "false")
+ .with("message_label_en", "warehouse name")
+
.with("isString", "true")
.with("isDate", "false")
- .with("graphqlType", "String")
+ .with("message_label_zh_TW", "倉庫名稱")
- .with("isTime", "false")
+ .with("graphqlType", "String")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("max", "100")
+
+ .with("isVersion", "false")
+
+ .with("message_label_id", "nama gudang")
+
+ .with("message_label_uk", "назва складу")
+
+ .with("javaType", "java.lang.String")
+
+ .with("message_label_de", "Lagername")
+
+ .with("candidates", "Central Warehouse")
+
+ .with("sqlType", "VARCHAR()")
+
+ .with("message_label_zh_CN", "仓库名称")
+
+ .with("message_label_pt", "nome do armazém")
+
+ .with("message_label_fr", "nom de l’entrepôt")
+
+ .with("message_label_fil", "pangalan ng bodega")
+
+ .with("isTime", "false")
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.VERSION_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.VERSION_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.warehouse.Warehouse.VERSION_PROPERTY).with("message_label_ar", "الإصدار")
- .with("isVersion", "true")
+ .with("message_label_vi", "phiên bản")
- .with("oracle_sqlType", "number(11)")
+ .with("message_label_th", "เวอร์ชัน")
- .with("javaType", "java.lang.Long")
+ .with("message_label_es", "versión")
- .with("sqlType", "BIGINT")
+ .with("message_label_ja", "バージョン")
+
+ .with("oracle_sqlType", "number(11)")
+
+ .with("message_label_ko", "버전")
.with("isId", "false")
@@ -120,17 +214,43 @@ private void registerWarehouse() {
.with("isNumber", "false")
+ .with("message_label_en", "version")
+
.with("isString", "false")
.with("isDate", "false")
.with("snowflake_sqlType", "number")
- .with("graphqlType", "Long")
+ .with("message_label_zh_TW", "版本")
- .with("isTime", "false")
+ .with("graphqlType", "Long")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("isVersion", "true")
+
+ .with("message_label_id", "versi")
+
+ .with("message_label_uk", "версія")
+
+ .with("javaType", "java.lang.Long")
+
+ .with("message_label_de", "Version")
+
+ .with("sqlType", "BIGINT")
+
+ .with("message_label_zh_CN", "版本")
+
+ .with("message_label_pt", "versão")
+
+ .with("message_label_fr", "version")
+
+ .with("message_label_fil", "bersiyon")
+
+ .with("isTime", "false")
;
$factory.register(entityDescriptor);
@@ -144,6 +264,36 @@ private void registerSupplier() {
entityDescriptor.with("name", "Supplier")
.with("zh_CN", "供应商")
+
+ .with("message_label_en", "Supplier")
+
+ .with("message_label_zh_CN", "供应商")
+
+ .with("message_label_zh_TW", "供應商")
+
+ .with("message_label_ja", "仕入先")
+
+ .with("message_label_ko", "공급업체")
+
+ .with("message_label_de", "Lieferant")
+
+ .with("message_label_fr", "fournisseur")
+
+ .with("message_label_es", "proveedor")
+
+ .with("message_label_pt", "fornecedor")
+
+ .with("message_label_ar", "المورد")
+
+ .with("message_label_th", "ผู้จัดจำหน่าย")
+
+ .with("message_label_id", "pemasok")
+
+ .with("message_label_fil", "tagapagtustos")
+
+ .with("message_label_uk", "постачальник")
+
+ .with("message_label_vi", "nhà cung cấp")
;
entityDescriptor.setAuditMaskFields(java.util.List.of());
@@ -163,15 +313,19 @@ private void registerSupplier() {
entityDescriptor.addSimpleProperty(com.teaql.supplieronboardingservice.supplier.Supplier.VERSION_PROPERTY, Long.class)
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.ID_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.ID_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.ID_PROPERTY).with("message_label_ar", "المعرّف")
- .with("isVersion", "false")
+ .with("message_label_vi", "mã định danh")
- .with("oracle_sqlType", "number(11)")
+ .with("message_label_th", "รหัส")
- .with("javaType", "java.lang.Long")
+ .with("message_label_es", "identificador")
- .with("sqlType", "BIGINT")
+ .with("message_label_ja", "識別子")
+
+ .with("oracle_sqlType", "number(11)")
+
+ .with("message_label_ko", "식별자")
.with("isId", "true")
@@ -181,34 +335,92 @@ private void registerSupplier() {
.with("isNumber", "false")
+ .with("message_label_en", "identifier")
+
.with("isString", "false")
.with("isDate", "false")
.with("snowflake_sqlType", "number")
- .with("graphqlType", "Long")
+ .with("message_label_zh_TW", "識別碼")
- .with("isTime", "false")
+ .with("graphqlType", "Long")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("isVersion", "false")
+
+ .with("message_label_id", "pengenal")
+
+ .with("message_label_uk", "ідентифікатор")
+
+ .with("javaType", "java.lang.Long")
+
+ .with("message_label_de", "Kennung")
+
+ .with("sqlType", "BIGINT")
+
+ .with("message_label_zh_CN", "标识符")
+
+ .with("message_label_pt", "identificador")
+
+ .with("message_label_fr", "identifiant")
+
+ .with("message_label_fil", "pantukoy")
+
+ .with("isTime", "false")
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.WAREHOUSE_PROPERTY).with("required", "true");
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.WAREHOUSE_PROPERTY).with("message_label_ar", "المستودع")
+
+ .with("message_label_vi", "kho")
+
+ .with("message_label_th", "คลังสินค้า")
+
+ .with("message_label_es", "almacén")
+
+ .with("message_label_id", "gudang")
+
+ .with("message_label_uk", "склад")
+
+ .with("message_label_ja", "倉庫")
+
+ .with("message_label_de", "Lager")
+
+ .with("message_label_zh_CN", "仓库")
+
+ .with("message_label_ko", "창고")
+
+ .with("message_label_pt", "armazém")
+
+ .with("message_label_en", "Warehouse")
+
+ .with("message_label_zh_TW", "倉庫")
+
+ .with("message_label_fr", "entrepôt")
+
+ .with("message_label_fil", "bodega")
+ ;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.NAME_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.NAME_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.NAME_PROPERTY).with("message_label_ar", "اسم المورد")
- .with("max", "80")
+ .with("message_label_vi", "tên nhà cung cấp")
- .with("isVersion", "false")
+ .with("message_label_th", "ชื่อผู้จัดจำหน่าย")
- .with("javaType", "java.lang.String")
+ .with("message_label_es", "nombre del proveedor")
- .with("sqlType", "VARCHAR()")
+ .with("message_label_ja", "仕入先名")
.with("min", "1")
+ .with("message_label_ko", "공급업체명")
+
.with("isId", "false")
.with("isBool", "false")
@@ -217,34 +429,62 @@ private void registerSupplier() {
.with("isNumber", "false")
+ .with("message_label_en", "supplier name")
+
.with("isString", "true")
.with("isDate", "false")
- .with("graphqlType", "String")
+ .with("message_label_zh_TW", "供應商名稱")
- .with("isTime", "false")
+ .with("graphqlType", "String")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("max", "80")
+
+ .with("isVersion", "false")
+
+ .with("message_label_id", "nama pemasok")
+
+ .with("message_label_uk", "назва постачальника")
+
+ .with("javaType", "java.lang.String")
+
+ .with("message_label_de", "Lieferantenname")
+
+ .with("sqlType", "VARCHAR()")
+
+ .with("message_label_zh_CN", "供应商名称")
+
+ .with("message_label_pt", "nome do fornecedor")
+
+ .with("message_label_fr", "nom du fournisseur")
+
+ .with("message_label_fil", "pangalan ng tagapagtustos")
+
+ .with("isTime", "false")
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.MINIMUM_ORDER_QUANTITY_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.MINIMUM_ORDER_QUANTITY_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.MINIMUM_ORDER_QUANTITY_PROPERTY).with("message_label_ar", "الحد الأدنى لكمية الطلب")
- .with("max", "10000")
-
- .with("db2_sqlType", "decimal(19,7)")
+ .with("message_label_vi", "số lượng đặt hàng tối thiểu")
- .with("isVersion", "false")
+ .with("message_label_th", "จำนวนสั่งซื้อขั้นต่ำ")
- .with("oracle_sqlType", "number(19,7)")
+ .with("message_label_es", "cantidad mínima de pedido")
- .with("javaType", "java.lang.Integer")
+ .with("message_label_ja", "最小発注数量")
- .with("sqlType", "INTEGER")
+ .with("oracle_sqlType", "number(19,7)")
.with("min", "10")
+ .with("message_label_ko", "최소 주문 수량")
+
.with("isId", "false")
.with("isBool", "false")
@@ -253,29 +493,63 @@ private void registerSupplier() {
.with("isNumber", "true")
+ .with("message_label_en", "minimum order quantity")
+
.with("isInt", "true")
.with("isString", "false")
.with("isDate", "false")
- .with("graphqlType", "Int")
+ .with("message_label_zh_TW", "最小訂購量")
- .with("isTime", "false")
+ .with("graphqlType", "Int")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("max", "10000")
+
+ .with("db2_sqlType", "decimal(19,7)")
+
+ .with("isVersion", "false")
+
+ .with("message_label_id", "jumlah pesanan minimum")
+
+ .with("message_label_uk", "мінімальна кількість замовлення")
+
+ .with("javaType", "java.lang.Integer")
+
+ .with("message_label_de", "Mindestbestellmenge")
+
+ .with("sqlType", "INTEGER")
+
+ .with("message_label_zh_CN", "最小订购量")
+
+ .with("message_label_pt", "quantidade mínima do pedido")
+
+ .with("message_label_fr", "quantité minimale de commande")
+
+ .with("message_label_fil", "pinakamababang dami ng order")
+
+ .with("isTime", "false")
;
entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.VERSION_PROPERTY).with("required", "true");
- entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.VERSION_PROPERTY).with("isPassword", "false")
+ entityDescriptor.findProperty(com.teaql.supplieronboardingservice.supplier.Supplier.VERSION_PROPERTY).with("message_label_ar", "الإصدار")
- .with("isVersion", "true")
+ .with("message_label_vi", "phiên bản")
- .with("oracle_sqlType", "number(11)")
+ .with("message_label_th", "เวอร์ชัน")
- .with("javaType", "java.lang.Long")
+ .with("message_label_es", "versión")
- .with("sqlType", "BIGINT")
+ .with("message_label_ja", "バージョン")
+
+ .with("oracle_sqlType", "number(11)")
+
+ .with("message_label_ko", "버전")
.with("isId", "false")
@@ -285,17 +559,43 @@ private void registerSupplier() {
.with("isNumber", "false")
+ .with("message_label_en", "version")
+
.with("isString", "false")
.with("isDate", "false")
.with("snowflake_sqlType", "number")
- .with("graphqlType", "Long")
+ .with("message_label_zh_TW", "版本")
- .with("isTime", "false")
+ .with("graphqlType", "Long")
.with("isText", "false")
+
+ .with("isPassword", "false")
+
+ .with("isVersion", "true")
+
+ .with("message_label_id", "versi")
+
+ .with("message_label_uk", "версія")
+
+ .with("javaType", "java.lang.Long")
+
+ .with("message_label_de", "Version")
+
+ .with("sqlType", "BIGINT")
+
+ .with("message_label_zh_CN", "版本")
+
+ .with("message_label_pt", "versão")
+
+ .with("message_label_fr", "version")
+
+ .with("message_label_fil", "bersiyon")
+
+ .with("isTime", "false")
;
$factory.register(entityDescriptor);
diff --git a/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java b/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java
index b67bbb6c..8648cb09 100644
--- a/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java
+++ b/examples/supplier-onboarding-i18n/java-lib-core/lib/src/main/java/com/teaql/supplieronboardingservice/GeneratedRuntimeModule.java
@@ -4,7 +4,7 @@
public final class GeneratedRuntimeModule {
private static final io.teaql.core.RuntimeModule MODULE = io.teaql.core.RuntimeModule.of(new EntityMetaRegistry())
.withCheckers(new com.teaql.supplieronboardingservice.warehouse.WarehouseChecker(), new com.teaql.supplieronboardingservice.supplier.SupplierChecker())
- .withCheckerPresentation(io.teaql.core.checker.CheckerPresentation.Model.fromJson(String.join("", "{\"schema\":\"teaql.checker-model/v1\",\"revision\":\"sha256:f4b63b86dd7cad758f18ebc623d0a4976afb15dbe9f61002523f909bb75098b0\",\"entities\":{\"Supplier\":{\"labels\":{\"en\":\"Supplier\",\"zh-CN\":\"供应商\"},\"fields\":[{\"name\":\"id\",\"labels\":{\"en\":\"id\"},\"aliases\":[\"Id\"]},{\"name\":\"minimum_order_quantity\",\"labels\":{\"en\":\"minimum order quantity\"},\"aliases\":[\"MinimumOrderQuantity\",\"minimumOrderQuantity\"]},{\"name\":\"name\",\"labels\":{\"en\":\"name\"},\"aliases\":[\"Name\"]},{\"name\":\"version\",\"labels\":{\"en\":\"version\"},\"aliases\":[\"Version\"]},{\"name\":\"warehouse\",\"targetType\":\"Warehouse\",\"labels\":{\"en\":\"Warehouse\",\"zh-CN\":\"仓库\"},\"aliases\":[\"Warehouse\"]}]},\"Warehouse\":{\"labels\":{\"en\":\"Warehouse\",\"zh-CN\":\"仓库\"},\"fields\":[{\"name\":\"id\",\"labels\":{\"en\":\"id\"},\"aliases\":[\"Id\"]},{\"name\":\"name\",\"labels\":{\"en\":\"name\"},\"aliases\":[\"Name\"]},{\"name\":\"supplier_list\",\"targetType\":\"Supplier\",\"labels\":{\"en\":\"Supplier\",\"zh-CN\":\"供应商\"},\"aliases\":[\"SupplierList\",\"supplierList\"]},{\"name\":\"version\",\"labels\":{\"en\":\"version\"},\"aliases\":[\"Version\"]}]}}}")))
+ .withCheckerPresentation(io.teaql.core.checker.CheckerPresentation.Model.fromJson(String.join("", "{\"schema\":\"teaql.checker-model/v1\",\"revision\":\"sha256:6062a2dd181642c0ffa1b6731b1402b88272a4fa7c808eb9c90f2807b61905d3\",\"entities\":{\"Supplier\":{\"labels\":{\"en\":\"Supplier\",\"zh-CN\":\"供应商\",\"zh-TW\":\"供應商\",\"ja\":\"仕入先\",\"ko\":\"공급업체\",\"de\":\"Lieferant\",\"fr\":\"fournisseur\",\"es\":\"proveedor\",\"pt\":\"fornecedor\",\"ar\":\"المورد\",\"th\":\"ผู้จัดจำหน่าย\",\"id\":\"pemasok\",\"fil\":\"tagapagtustos\",\"uk\":\"постачальник\",\"vi\":\"nhà cung cấp\"},\"fields\":[{\"name\":\"id\",\"labels\":{\"en\":\"identifier\",\"zh-CN\":\"标识符\",\"zh-TW\":\"識別碼\",\"ja\":\"識別子\",\"ko\":\"식별자\",\"de\":\"Kennung\",\"fr\":\"identifiant\",\"es\":\"identificador\",\"pt\":\"identificador\",\"ar\":\"المعرّف\",\"th\":\"รหัส\",\"id\":\"pengenal\",\"fil\":\"pantukoy\",\"uk\":\"ідентифікатор\",\"vi\":\"mã định danh\"},\"aliases\":[\"Id\"]},{\"name\":\"minimum_order_quantity\",\"labels\":{\"en\":\"minimum order quantity\",\"zh-CN\":\"最小订购量\",\"zh-TW\":\"最小訂購量\",\"ja\":\"最小発注数量\",\"ko\":\"최소 주문 수량\",\"de\":\"Mindestbestellmenge\",\"fr\":\"quantité minimale de commande\",\"es\":\"cantidad mínima de pedido\",\"pt\":\"quantidade mínima do pedido\",\"ar\":\"الحد الأدنى لكمية الطلب\",\"th\":\"จำนวนสั่งซื้อขั้นต่ำ\",\"id\":\"jumlah pesanan minimum\",\"fil\":\"pinakamababang dami ng order\",\"uk\":\"мінімальна кількість замовлення\",\"vi\":\"số lượng đặt hàng tối thiểu\"},\"aliases\":[\"MinimumOrderQuantity\",\"minimumOrderQuantity\"]},{\"name\":\"name\",\"labels\":{\"en\":\"supplier name\",\"zh-CN\":\"供应商名称\",\"zh-TW\":\"供應商名稱\",\"ja\":\"仕入先名\",\"ko\":\"공급업체명\",\"de\":\"Lieferantenname\",\"fr\":\"nom du fournisseur\",\"es\":\"nombre del proveedor\",\"pt\":\"nome do fornecedor\",\"ar\":\"اسم المورد\",\"th\":\"ชื่อผู้จัดจำหน่าย\",\"id\":\"nama pemasok\",\"fil\":\"pangalan ng tagapagtustos\",\"uk\":\"назва постачальника\",\"vi\":\"tên nhà cung cấp\"},\"aliases\":[\"Name\"]},{\"name\":\"version\",\"labels\":{\"en\":\"version\",\"zh-CN\":\"版本\",\"zh-TW\":\"版本\",\"ja\":\"バージョン\",\"ko\":\"버전\",\"de\":\"Version\",\"fr\":\"version\",\"es\":\"versión\",\"pt\":\"versão\",\"ar\":\"الإصدار\",\"th\":\"เวอร์ชัน\",\"id\":\"versi\",\"fil\":\"bersiyon\",\"uk\":\"версія\",\"vi\":\"phiên bản\"},\"aliases\":[\"Version\"]},{\"name\":\"warehouse\",\"targetType\":\"Warehouse\",\"labels\":{\"en\":\"Warehouse\",\"zh-CN\":\"仓库\",\"zh-TW\":\"倉庫\",\"ja\":\"倉庫\",\"ko\":\"창고\",\"de\":\"Lager\",\"fr\":\"entrepôt\",\"es\":\"almacén\",\"pt\":\"armazém\",\"ar\":\"المستودع\",\"th\":\"คลังสินค้า\",\"id\":\"gudang\",\"fil\":\"bodega\",\"uk\":\"склад\",\"vi\":\"kho\"},\"aliases\":[\"Warehouse\"]}]},\"Warehouse\":{\"labels\":{\"en\":\"Warehouse\",\"zh-CN\":\"仓库\",\"zh-TW\":\"倉庫\",\"ja\":\"倉庫\",\"ko\":\"창고\",\"de\":\"Lager\",\"fr\":\"entrepôt\",\"es\":\"almacén\",\"pt\":\"armazém\",\"ar\":\"المستودع\",\"th\":\"คลังสินค้า\",\"id\":\"gudang\",\"fil\":\"bodega\",\"uk\":\"склад\",\"vi\":\"kho\"},\"fields\":[{\"name\":\"id\",\"labels\":{\"en\":\"identifier\",\"zh-CN\":\"标识符\",\"zh-TW\":\"識別碼\",\"ja\":\"識別子\",\"ko\":\"식별자\",\"de\":\"Kennung\",\"fr\":\"identifiant\",\"es\":\"identificador\",\"pt\":\"identificador\",\"ar\":\"المعرّف\",\"th\":\"รหัส\",\"id\":\"pengenal\",\"fil\":\"pantukoy\",\"uk\":\"ідентифікатор\",\"vi\":\"mã định danh\"},\"aliases\":[\"Id\"]},{\"name\":\"name\",\"labels\":{\"en\":\"warehouse name\",\"zh-CN\":\"仓库名称\",\"zh-TW\":\"倉庫名稱\",\"ja\":\"倉庫名\",\"ko\":\"창고명\",\"de\":\"Lagername\",\"fr\":\"nom de l’entrepôt\",\"es\":\"nombre del almacén\",\"pt\":\"nome do armazém\",\"ar\":\"اسم المستودع\",\"th\":\"ชื่อคลังสินค้า\",\"id\":\"nama gudang\",\"fil\":\"pangalan ng bodega\",\"uk\":\"назва складу\",\"vi\":\"tên kho\"},\"aliases\":[\"Name\"]},{\"name\":\"supplier_list\",\"targetType\":\"Supplier\",\"labels\":{\"en\":\"Supplier\",\"zh-CN\":\"供应商\",\"zh-TW\":\"供應商\",\"ja\":\"仕入先\",\"ko\":\"공급업체\",\"de\":\"Lieferant\",\"fr\":\"fournisseur\",\"es\":\"proveedor\",\"pt\":\"fornecedor\",\"ar\":\"المورد\",\"th\":\"ผู้จัดจำหน่าย\",\"id\":\"pemasok\",\"fil\":\"tagapagtustos\",\"uk\":\"постачальник\",\"vi\":\"nhà cung cấp\"},\"aliases\":[\"SupplierList\",\"supplierList\"]},{\"name\":\"version\",\"labels\":{\"en\":\"version\",\"zh-CN\":\"版本\",\"zh-TW\":\"版本\",\"ja\":\"バージョン\",\"ko\":\"버전\",\"de\":\"Version\",\"fr\":\"version\",\"es\":\"versión\",\"pt\":\"versão\",\"ar\":\"الإصدار\",\"th\":\"เวอร์ชัน\",\"id\":\"versi\",\"fil\":\"bersiyon\",\"uk\":\"версія\",\"vi\":\"phiên bản\"},\"aliases\":[\"Version\"]}]}}}")))
.withBootstrap(GeneratedRuntimeModule::ensureGeneratedBootstrap);
private GeneratedRuntimeModule() {}
diff --git a/examples/supplier-onboarding-i18n/java-lib-core/teaql/checker-model.json b/examples/supplier-onboarding-i18n/java-lib-core/teaql/checker-model.json
index 1eec5fc8..f77a0e6e 100644
--- a/examples/supplier-onboarding-i18n/java-lib-core/teaql/checker-model.json
+++ b/examples/supplier-onboarding-i18n/java-lib-core/teaql/checker-model.json
@@ -1 +1 @@
-{"schema":"teaql.checker-model/v1","revision":"sha256:f4b63b86dd7cad758f18ebc623d0a4976afb15dbe9f61002523f909bb75098b0","entities":{"Supplier":{"labels":{"en":"Supplier","zh-CN":"供应商"},"fields":[{"name":"id","labels":{"en":"id"},"aliases":["Id"]},{"name":"minimum_order_quantity","labels":{"en":"minimum order quantity"},"aliases":["MinimumOrderQuantity","minimumOrderQuantity"]},{"name":"name","labels":{"en":"name"},"aliases":["Name"]},{"name":"version","labels":{"en":"version"},"aliases":["Version"]},{"name":"warehouse","targetType":"Warehouse","labels":{"en":"Warehouse","zh-CN":"仓库"},"aliases":["Warehouse"]}]},"Warehouse":{"labels":{"en":"Warehouse","zh-CN":"仓库"},"fields":[{"name":"id","labels":{"en":"id"},"aliases":["Id"]},{"name":"name","labels":{"en":"name"},"aliases":["Name"]},{"name":"supplier_list","targetType":"Supplier","labels":{"en":"Supplier","zh-CN":"供应商"},"aliases":["SupplierList","supplierList"]},{"name":"version","labels":{"en":"version"},"aliases":["Version"]}]}}}
\ No newline at end of file
+{"schema":"teaql.checker-model/v1","revision":"sha256:6062a2dd181642c0ffa1b6731b1402b88272a4fa7c808eb9c90f2807b61905d3","entities":{"Supplier":{"labels":{"en":"Supplier","zh-CN":"供应商","zh-TW":"供應商","ja":"仕入先","ko":"공급업체","de":"Lieferant","fr":"fournisseur","es":"proveedor","pt":"fornecedor","ar":"المورد","th":"ผู้จัดจำหน่าย","id":"pemasok","fil":"tagapagtustos","uk":"постачальник","vi":"nhà cung cấp"},"fields":[{"name":"id","labels":{"en":"identifier","zh-CN":"标识符","zh-TW":"識別碼","ja":"識別子","ko":"식별자","de":"Kennung","fr":"identifiant","es":"identificador","pt":"identificador","ar":"المعرّف","th":"รหัส","id":"pengenal","fil":"pantukoy","uk":"ідентифікатор","vi":"mã định danh"},"aliases":["Id"]},{"name":"minimum_order_quantity","labels":{"en":"minimum order quantity","zh-CN":"最小订购量","zh-TW":"最小訂購量","ja":"最小発注数量","ko":"최소 주문 수량","de":"Mindestbestellmenge","fr":"quantité minimale de commande","es":"cantidad mínima de pedido","pt":"quantidade mínima do pedido","ar":"الحد الأدنى لكمية الطلب","th":"จำนวนสั่งซื้อขั้นต่ำ","id":"jumlah pesanan minimum","fil":"pinakamababang dami ng order","uk":"мінімальна кількість замовлення","vi":"số lượng đặt hàng tối thiểu"},"aliases":["MinimumOrderQuantity","minimumOrderQuantity"]},{"name":"name","labels":{"en":"supplier name","zh-CN":"供应商名称","zh-TW":"供應商名稱","ja":"仕入先名","ko":"공급업체명","de":"Lieferantenname","fr":"nom du fournisseur","es":"nombre del proveedor","pt":"nome do fornecedor","ar":"اسم المورد","th":"ชื่อผู้จัดจำหน่าย","id":"nama pemasok","fil":"pangalan ng tagapagtustos","uk":"назва постачальника","vi":"tên nhà cung cấp"},"aliases":["Name"]},{"name":"version","labels":{"en":"version","zh-CN":"版本","zh-TW":"版本","ja":"バージョン","ko":"버전","de":"Version","fr":"version","es":"versión","pt":"versão","ar":"الإصدار","th":"เวอร์ชัน","id":"versi","fil":"bersiyon","uk":"версія","vi":"phiên bản"},"aliases":["Version"]},{"name":"warehouse","targetType":"Warehouse","labels":{"en":"Warehouse","zh-CN":"仓库","zh-TW":"倉庫","ja":"倉庫","ko":"창고","de":"Lager","fr":"entrepôt","es":"almacén","pt":"armazém","ar":"المستودع","th":"คลังสินค้า","id":"gudang","fil":"bodega","uk":"склад","vi":"kho"},"aliases":["Warehouse"]}]},"Warehouse":{"labels":{"en":"Warehouse","zh-CN":"仓库","zh-TW":"倉庫","ja":"倉庫","ko":"창고","de":"Lager","fr":"entrepôt","es":"almacén","pt":"armazém","ar":"المستودع","th":"คลังสินค้า","id":"gudang","fil":"bodega","uk":"склад","vi":"kho"},"fields":[{"name":"id","labels":{"en":"identifier","zh-CN":"标识符","zh-TW":"識別碼","ja":"識別子","ko":"식별자","de":"Kennung","fr":"identifiant","es":"identificador","pt":"identificador","ar":"المعرّف","th":"รหัส","id":"pengenal","fil":"pantukoy","uk":"ідентифікатор","vi":"mã định danh"},"aliases":["Id"]},{"name":"name","labels":{"en":"warehouse name","zh-CN":"仓库名称","zh-TW":"倉庫名稱","ja":"倉庫名","ko":"창고명","de":"Lagername","fr":"nom de l’entrepôt","es":"nombre del almacén","pt":"nome do armazém","ar":"اسم المستودع","th":"ชื่อคลังสินค้า","id":"nama gudang","fil":"pangalan ng bodega","uk":"назва складу","vi":"tên kho"},"aliases":["Name"]},{"name":"supplier_list","targetType":"Supplier","labels":{"en":"Supplier","zh-CN":"供应商","zh-TW":"供應商","ja":"仕入先","ko":"공급업체","de":"Lieferant","fr":"fournisseur","es":"proveedor","pt":"fornecedor","ar":"المورد","th":"ผู้จัดจำหน่าย","id":"pemasok","fil":"tagapagtustos","uk":"постачальник","vi":"nhà cung cấp"},"aliases":["SupplierList","supplierList"]},{"name":"version","labels":{"en":"version","zh-CN":"版本","zh-TW":"版本","ja":"バージョン","ko":"버전","de":"Version","fr":"version","es":"versión","pt":"versão","ar":"الإصدار","th":"เวอร์ชัน","id":"versi","fil":"bersiyon","uk":"версія","vi":"phiên bản"},"aliases":["Version"]}]}}}
\ No newline at end of file
diff --git a/examples/supplier-onboarding-i18n/java-lib-core/teaql/model-provenance.json b/examples/supplier-onboarding-i18n/java-lib-core/teaql/model-provenance.json
index 05f3b87b..829625d5 100644
--- a/examples/supplier-onboarding-i18n/java-lib-core/teaql/model-provenance.json
+++ b/examples/supplier-onboarding-i18n/java-lib-core/teaql/model-provenance.json
@@ -1 +1 @@
-{"schemaVersion":1,"modelUuid":null,"revisionHash":"sha256:66bd8079ce8129c77f2ed1769a9d518a285fa8abd19823e9941351de6e826436","generatorVersion":"Git"}
\ No newline at end of file
+{"schemaVersion":1,"modelUuid":null,"revisionHash":"sha256:6731d709a547fb9ced01c1cfbab9cd40adc46e8bcc7bc58a1a5eeb0f533f76b5","generatorVersion":"Git"}
\ No newline at end of file
diff --git a/examples/supplier-onboarding-i18n/messages.md b/examples/supplier-onboarding-i18n/messages.md
new file mode 100644
index 00000000..789770ea
--- /dev/null
+++ b/examples/supplier-onboarding-i18n/messages.md
@@ -0,0 +1,21 @@
+# Supplier validation messages in 15 locales
+
+Run `bash run.sh --all` from this example directory. The 30 validation messages correspond to the following article table. Stable message keys and model field names remain unchanged when selecting a locale.
+
+| 语言与 locale | 未填写供应商名称 | 最小订购量不足 10 |
+| --- | --- | --- |
+| 英语 / English
`en` | The supplier name is required. | The minimum order quantity must be at least 10. |
+| 简体中文
`zh-CN` | 请填写供应商名称。 | 最小订购量不得小于10。 |
+| 繁体中文 / 繁體中文
`zh-TW` | 請填寫供應商名稱。 | 最小訂購量不得小於10。 |
+| 日语 / 日本語
`ja` | 仕入先名は必須です。 | 最小発注数量は10以上である必要があります。 |
+| 韩语 / 한국어
`ko` | 공급업체명 항목은 필수입니다. | 최소 주문 수량 값은 10 이상이어야 합니다. |
+| 德语 / Deutsch
`de` | Das Feld Lieferantenname ist erforderlich. | Das Feld Mindestbestellmenge muss mindestens 10 betragen. |
+| 法语 / français
`fr` | Le champ nom du fournisseur est obligatoire. | Le champ quantité minimale de commande doit être au moins égal à 10. |
+| 西班牙语 / español
`es` | El campo nombre del proveedor es obligatorio. | El campo cantidad mínima de pedido debe ser al menos 10. |
+| 葡萄牙语 / português
`pt` | O campo nome do fornecedor é obrigatório. | O campo quantidade mínima do pedido deve ser pelo menos 10. |
+| 阿拉伯语 / العربية
`ar` | الحقل اسم المورد مطلوب. | يجب ألا تقل قيمة الحقل الحد الأدنى لكمية الطلب عن 10. |
+| 泰语 / ไทย
`th` | ต้องระบุชื่อผู้จัดจำหน่าย | จำนวนสั่งซื้อขั้นต่ำต้องมีค่าอย่างน้อย 10 |
+| 印度尼西亚语 / Bahasa Indonesia
`id` | Kolom nama pemasok wajib diisi. | Nilai jumlah pesanan minimum minimal 10. |
+| 菲律宾语 / Filipino
`fil` | Kinakailangan ang pangalan ng tagapagtustos. | Ang pinakamababang dami ng order ay dapat hindi bababa sa 10. |
+| 乌克兰语 / Українська
`uk` | Поле назва постачальника є обов’язковим. | Значення поля мінімальна кількість замовлення має бути не менше 10. |
+| 越南语 / Tiếng Việt
`vi` | Trường tên nhà cung cấp là bắt buộc. | Giá trị số lượng đặt hàng tối thiểu phải ít nhất là 10. |
diff --git a/examples/supplier-onboarding-i18n/model.xml b/examples/supplier-onboarding-i18n/model.xml
index 639f16fd..65741ed5 100644
--- a/examples/supplier-onboarding-i18n/model.xml
+++ b/examples/supplier-onboarding-i18n/model.xml
@@ -1,5 +1,8 @@
-
+
"$scratch/settings.xml" <<'XML'
XML
export MAVEN_SKIP_RC=1
unset MAVEN_OPTS MAVEN_ARGS
+sdk_version="$(python3 - "$scratch/runtime/pom.xml" "$scratch/java-lib-core/lib/pom.xml" "$scratch/java-app-console/pom.xml" <<'PY'
+from pathlib import Path
+import re
+import sys
+import xml.etree.ElementTree as ET
+root = ET.parse(sys.argv[1]).getroot()
+version = root.findtext('{*}version')
+if not version or not version.strip():
+ raise SystemExit('The selected Java SDK must declare its version')
+version = version.strip()
+# Installed POMs must carry the same version for transitive dependencies.
+# Adapt only the disposable copies; keep the generated source fixtures intact.
+for name in sys.argv[2:]:
+ pom = Path(name)
+ text, count = re.subn(r'[^<]+',
+ lambda _: '' + version + '',
+ pom.read_text(encoding='utf-8'))
+ if count != 1:
+ raise SystemExit('Expected one teaql.version property in ' + str(pom))
+ pom.write_text(text, encoding='utf-8')
+print(version)
+PY
+)"
maven=("${MAVEN:-mvn}" -B -ntp -s "$scratch/settings.xml" -gs "$scratch/settings.xml"
- "-Dmaven.repo.local=$scratch/maven" "-Djava.io.tmpdir=$scratch")
+ "-Dmaven.repo.local=$scratch/maven" "-Djava.io.tmpdir=$scratch" "-Dteaql.version=$sdk_version")
cd -- "$scratch"
"${maven[@]}" -f "$scratch/runtime/pom.xml" -pl teaql-sqlite -am -DskipTests install >&2
"${maven[@]}" -f "$scratch/java-lib-core/lib/pom.xml" -DskipTests install >&2
diff --git a/examples/supplier-onboarding-i18n/semantics.json b/examples/supplier-onboarding-i18n/semantics.json
index 04839b73..77f2f901 100644
--- a/examples/supplier-onboarding-i18n/semantics.json
+++ b/examples/supplier-onboarding-i18n/semantics.json
@@ -5,6 +5,10 @@
"operation": "register a supplier for warehouse purchasing",
"warehouse": {"id": 1, "name": "Central Warehouse"},
"defaultLocale": "en",
+ "fieldVocabulary": {
+ "name": "property.supplier.name",
+ "minimum_order_quantity": "property.supplier.minimumOrderQuantity"
+ },
"locales": [
{"code": "en", "chinese": "英语", "native": "English"},
{"code": "zh-CN", "chinese": "简体中文", "native": "简体中文"},
diff --git a/examples/supplier-onboarding-i18n/vocabulary.json b/examples/supplier-onboarding-i18n/vocabulary.json
new file mode 100644
index 00000000..cadae624
--- /dev/null
+++ b/examples/supplier-onboarding-i18n/vocabulary.json
@@ -0,0 +1,231 @@
+{
+ "schema": "teaql.i18n/v1",
+ "defaultLocale": "en",
+ "locales": {
+ "en": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "Warehouse",
+ "entity.supplier": "Supplier",
+ "property.warehouse.id": "identifier",
+ "property.warehouse.name": "warehouse name",
+ "property.warehouse.version": "version",
+ "property.supplier.id": "identifier",
+ "property.supplier.name": "supplier name",
+ "property.supplier.minimumOrderQuantity": "minimum order quantity",
+ "property.supplier.warehouse": "Warehouse",
+ "property.supplier.version": "version"
+ }
+ },
+ "zh-CN": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "仓库",
+ "entity.supplier": "供应商",
+ "property.warehouse.id": "标识符",
+ "property.warehouse.name": "仓库名称",
+ "property.warehouse.version": "版本",
+ "property.supplier.id": "标识符",
+ "property.supplier.name": "供应商名称",
+ "property.supplier.minimumOrderQuantity": "最小订购量",
+ "property.supplier.warehouse": "仓库",
+ "property.supplier.version": "版本"
+ }
+ },
+ "zh-TW": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "倉庫",
+ "entity.supplier": "供應商",
+ "property.warehouse.id": "識別碼",
+ "property.warehouse.name": "倉庫名稱",
+ "property.warehouse.version": "版本",
+ "property.supplier.id": "識別碼",
+ "property.supplier.name": "供應商名稱",
+ "property.supplier.minimumOrderQuantity": "最小訂購量",
+ "property.supplier.warehouse": "倉庫",
+ "property.supplier.version": "版本"
+ }
+ },
+ "ja": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "倉庫",
+ "entity.supplier": "仕入先",
+ "property.warehouse.id": "識別子",
+ "property.warehouse.name": "倉庫名",
+ "property.warehouse.version": "バージョン",
+ "property.supplier.id": "識別子",
+ "property.supplier.name": "仕入先名",
+ "property.supplier.minimumOrderQuantity": "最小発注数量",
+ "property.supplier.warehouse": "倉庫",
+ "property.supplier.version": "バージョン"
+ }
+ },
+ "ko": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "창고",
+ "entity.supplier": "공급업체",
+ "property.warehouse.id": "식별자",
+ "property.warehouse.name": "창고명",
+ "property.warehouse.version": "버전",
+ "property.supplier.id": "식별자",
+ "property.supplier.name": "공급업체명",
+ "property.supplier.minimumOrderQuantity": "최소 주문 수량",
+ "property.supplier.warehouse": "창고",
+ "property.supplier.version": "버전"
+ }
+ },
+ "de": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "Lager",
+ "entity.supplier": "Lieferant",
+ "property.warehouse.id": "Kennung",
+ "property.warehouse.name": "Lagername",
+ "property.warehouse.version": "Version",
+ "property.supplier.id": "Kennung",
+ "property.supplier.name": "Lieferantenname",
+ "property.supplier.minimumOrderQuantity": "Mindestbestellmenge",
+ "property.supplier.warehouse": "Lager",
+ "property.supplier.version": "Version"
+ }
+ },
+ "fr": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "entrepôt",
+ "entity.supplier": "fournisseur",
+ "property.warehouse.id": "identifiant",
+ "property.warehouse.name": "nom de l’entrepôt",
+ "property.warehouse.version": "version",
+ "property.supplier.id": "identifiant",
+ "property.supplier.name": "nom du fournisseur",
+ "property.supplier.minimumOrderQuantity": "quantité minimale de commande",
+ "property.supplier.warehouse": "entrepôt",
+ "property.supplier.version": "version"
+ }
+ },
+ "es": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "almacén",
+ "entity.supplier": "proveedor",
+ "property.warehouse.id": "identificador",
+ "property.warehouse.name": "nombre del almacén",
+ "property.warehouse.version": "versión",
+ "property.supplier.id": "identificador",
+ "property.supplier.name": "nombre del proveedor",
+ "property.supplier.minimumOrderQuantity": "cantidad mínima de pedido",
+ "property.supplier.warehouse": "almacén",
+ "property.supplier.version": "versión"
+ }
+ },
+ "pt": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "armazém",
+ "entity.supplier": "fornecedor",
+ "property.warehouse.id": "identificador",
+ "property.warehouse.name": "nome do armazém",
+ "property.warehouse.version": "versão",
+ "property.supplier.id": "identificador",
+ "property.supplier.name": "nome do fornecedor",
+ "property.supplier.minimumOrderQuantity": "quantidade mínima do pedido",
+ "property.supplier.warehouse": "armazém",
+ "property.supplier.version": "versão"
+ }
+ },
+ "ar": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "المستودع",
+ "entity.supplier": "المورد",
+ "property.warehouse.id": "المعرّف",
+ "property.warehouse.name": "اسم المستودع",
+ "property.warehouse.version": "الإصدار",
+ "property.supplier.id": "المعرّف",
+ "property.supplier.name": "اسم المورد",
+ "property.supplier.minimumOrderQuantity": "الحد الأدنى لكمية الطلب",
+ "property.supplier.warehouse": "المستودع",
+ "property.supplier.version": "الإصدار"
+ }
+ },
+ "th": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "คลังสินค้า",
+ "entity.supplier": "ผู้จัดจำหน่าย",
+ "property.warehouse.id": "รหัส",
+ "property.warehouse.name": "ชื่อคลังสินค้า",
+ "property.warehouse.version": "เวอร์ชัน",
+ "property.supplier.id": "รหัส",
+ "property.supplier.name": "ชื่อผู้จัดจำหน่าย",
+ "property.supplier.minimumOrderQuantity": "จำนวนสั่งซื้อขั้นต่ำ",
+ "property.supplier.warehouse": "คลังสินค้า",
+ "property.supplier.version": "เวอร์ชัน"
+ }
+ },
+ "id": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "gudang",
+ "entity.supplier": "pemasok",
+ "property.warehouse.id": "pengenal",
+ "property.warehouse.name": "nama gudang",
+ "property.warehouse.version": "versi",
+ "property.supplier.id": "pengenal",
+ "property.supplier.name": "nama pemasok",
+ "property.supplier.minimumOrderQuantity": "jumlah pesanan minimum",
+ "property.supplier.warehouse": "gudang",
+ "property.supplier.version": "versi"
+ }
+ },
+ "fil": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "bodega",
+ "entity.supplier": "tagapagtustos",
+ "property.warehouse.id": "pantukoy",
+ "property.warehouse.name": "pangalan ng bodega",
+ "property.warehouse.version": "bersiyon",
+ "property.supplier.id": "pantukoy",
+ "property.supplier.name": "pangalan ng tagapagtustos",
+ "property.supplier.minimumOrderQuantity": "pinakamababang dami ng order",
+ "property.supplier.warehouse": "bodega",
+ "property.supplier.version": "bersiyon"
+ }
+ },
+ "uk": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "склад",
+ "entity.supplier": "постачальник",
+ "property.warehouse.id": "ідентифікатор",
+ "property.warehouse.name": "назва складу",
+ "property.warehouse.version": "версія",
+ "property.supplier.id": "ідентифікатор",
+ "property.supplier.name": "назва постачальника",
+ "property.supplier.minimumOrderQuantity": "мінімальна кількість замовлення",
+ "property.supplier.warehouse": "склад",
+ "property.supplier.version": "версія"
+ }
+ },
+ "vi": {
+ "messages": {},
+ "vocabulary": {
+ "entity.warehouse": "kho",
+ "entity.supplier": "nhà cung cấp",
+ "property.warehouse.id": "mã định danh",
+ "property.warehouse.name": "tên kho",
+ "property.warehouse.version": "phiên bản",
+ "property.supplier.id": "mã định danh",
+ "property.supplier.name": "tên nhà cung cấp",
+ "property.supplier.minimumOrderQuantity": "số lượng đặt hàng tối thiểu",
+ "property.supplier.warehouse": "kho",
+ "property.supplier.version": "phiên bản"
+ }
+ }
+ }
+}