|
I was searching through the codebase, the docs and the repo, but I couldn't find a guide for adding a region's settings, currencies, classifications, translation keys, etc. |
Replies: 2 comments 4 replies
|
The shortest path is to create a Partner Pack rather than edit all of the core settings separately. A pack is specifically meant to bundle a region's locale, currency, cost catalogues, validation presets, and onboarding defaults.
openconstructionerp pack new my-regionThis creates a ready-to-edit folder containing
{
"slug": "my-region",
"partner_name": "My Region Construction Pack",
"default_locale": "xx",
"additional_locales": { "xx": "locales/xx.json" },
"default_currency": "XXX",
"cwicr_regions": ["cwicr-xx-city"],
"validation_rule_packs": ["existing_rule_pack_slug"],
"branding": { "primary_color": "#0F2C5F", "logo_path": "logo.svg" },
"onboarding_script_path": "onboarding.yaml"
}Use a real ISO-4217 three-letter code for
node frontend/scripts/i18n-diff.cjs frontend/src/app/locales/xx.ts
So: start with a Partner Pack; only touch core for a genuinely new UI language, curated picker entry, executable validation logic, or BOQ classification tree. That keeps the regional contribution small and avoids duplicating defaults across the app. |
|
yhay81 has this right. I checked it against the code and it holds, so I have marked it as the answer. Two things to add. The manifest has more fields than the example shows, so use MANIFEST_REFERENCE.md as the list. And there are 29 locale files now, not the 27 our docs still say. You were right that nothing tells you where to start. That is our gap and we will write that page. |
The shortest path is to create a Partner Pack rather than edit all of the core settings separately. A pack is specifically meant to bundle a region's locale, currency, cost catalogues, validation presets, and onboarding defaults.
This creates a ready-to-edit folder containing
manifest.json,logo.svg,onboarding.yaml, and a README. The full workflow is documented in Partner Packs — Onboarding & Reference Guide.manifest.json. A minimal useful example is:{ "slug": "my-region", "partner_name": "My Region Construction Pack", "default_locale": "xx", "additional_locales": { "xx": "locales/xx.json" …