From 8f6c1cb04f31eb1868ff6bc035e4d264a55e3092 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Sat, 19 Apr 2025 12:16:41 +0200 Subject: [PATCH] =?UTF-8?q?(ts)=20reference=20tsconfig.json=20in=20schema?= =?UTF-8?q?=20generator=20so=20it=20picks=20up=20the=20~=20import=20alias?= =?UTF-8?q?=20it=20didn=E2=80=99t=20generate=20a=20schema=20for=20Category?= =?UTF-8?q?,=20so=20it=20passed=20even=20on=20wrong=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locale/generate.ts | 1 + locale/it/config.suml | 41 ++++++++++++++++++++++++++++++----------- locale/ro/config.suml | 4 +++- 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/locale/generate.ts b/locale/generate.ts index 36ae42ea3..1473353bf 100644 --- a/locale/generate.ts +++ b/locale/generate.ts @@ -11,6 +11,7 @@ const __dirname = new URL('.', import.meta.url).pathname; const generateConfigJsonSchema = async () => { const schema = createGenerator({ path: `${__dirname}/config.ts`, + tsconfig: `${__dirname}/../tsconfig.json`, strictTuples: true, markdownDescription: true, // speed up schema generation; type checking happens separately diff --git a/locale/it/config.suml b/locale/it/config.suml index 5ca82f00e..5c84a8fae 100644 --- a/locale/it/config.suml +++ b/locale/it/config.suml @@ -154,17 +154,36 @@ terminology: enabled: true published: true categories: - - 'Orientamento sessuale' - - 'Orientamento romantico' - - 'Orientamento terziario' - - 'Genere' - - 'Espressione di genere' - - 'Modello di relazione' - - 'Lingua' - - 'Attrazione' - - 'Politica' - - 'Pregiudizio' - + - + key: 'sexual orientation' + text: 'Orientamento sessuale' + - + key: 'romantic orientation' + text: 'Orientamento romantico' + - + key: 'tertiary orientation' + text: 'Orientamento terziario' + - + key: 'gender' + text: 'Genere' + - + key: 'gender expression' + text: 'Espressione di genere' + - + key: 'relationship model' + text: 'Modello di relazione' + - + key: 'language' + text: 'Lingua' + - + key: 'attraction' + text: 'Attrazione' + - + key: 'politics' + text: 'Politica' + - + key: 'prejudice' + text: 'Pregiudizio' route: 'Terminologia' names: diff --git a/locale/ro/config.suml b/locale/ro/config.suml index 5d623c0b8..e1c9e0eee 100644 --- a/locale/ro/config.suml +++ b/locale/ro/config.suml @@ -158,7 +158,9 @@ terminology: - key: 'politică' text: 'politică' - - 'prejudiciu' + - + key: 'prejudiciu' + text: 'prejudiciu' route: 'terminologie'