From 444f945cc4c858dcc2587d90c097a834052baa6a Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 2 Jul 2023 14:43:29 +0200 Subject: [PATCH] fix(diana): Add missing options in translation config --- designs/diana/i18n/de.json | 8 ++++++++ designs/diana/i18n/en.json | 8 ++++++++ designs/diana/i18n/es.json | 8 ++++++++ designs/diana/i18n/fr.json | 8 ++++++++ designs/diana/i18n/nl.json | 8 ++++++++ designs/diana/src/index.mjs | 8 ++++++-- 6 files changed, 46 insertions(+), 2 deletions(-) diff --git a/designs/diana/i18n/de.json b/designs/diana/i18n/de.json index 693693dea10..2b927a76815 100644 --- a/designs/diana/i18n/de.json +++ b/designs/diana/i18n/de.json @@ -15,6 +15,14 @@ "drapeAngle": { "t": "Fallwinkel", "d": "Steuert die Stärke des Fallwinkels" + }, + "hipsEase": { + "t": "Hips ease", + "d": "Controls the amount of ease at your hips" + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist" } } } diff --git a/designs/diana/i18n/en.json b/designs/diana/i18n/en.json index 3e51852d73f..773ffaaa18c 100644 --- a/designs/diana/i18n/en.json +++ b/designs/diana/i18n/en.json @@ -15,6 +15,14 @@ "drapeAngle": { "t": "Drape angle", "d": "Controls the amount of drape" + }, + "hipsEase": { + "t": "Hips ease", + "d": "Controls the amount of ease at your hips" + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist" } } } diff --git a/designs/diana/i18n/es.json b/designs/diana/i18n/es.json index 2f2b298c969..cdebb19250e 100644 --- a/designs/diana/i18n/es.json +++ b/designs/diana/i18n/es.json @@ -15,6 +15,14 @@ "drapeAngle": { "t": "Ángulo del drapeado", "d": "Controla la cantidad de drapeado" + }, + "hipsEase": { + "t": "Hips ease", + "d": "Controls the amount of ease at your hips" + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist" } } } diff --git a/designs/diana/i18n/fr.json b/designs/diana/i18n/fr.json index e770935bf9a..f35a11a1975 100644 --- a/designs/diana/i18n/fr.json +++ b/designs/diana/i18n/fr.json @@ -15,6 +15,14 @@ "drapeAngle": { "t": "Angle du drapé", "d": "Contrôle le montant du drapé" + }, + "hipsEase": { + "t": "Hips ease", + "d": "Controls the amount of ease at your hips" + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist" } } } diff --git a/designs/diana/i18n/nl.json b/designs/diana/i18n/nl.json index 0aa01924945..a6dc4cad598 100644 --- a/designs/diana/i18n/nl.json +++ b/designs/diana/i18n/nl.json @@ -15,6 +15,14 @@ "drapeAngle": { "t": "Drape angle", "d": "Bepaalt het aantal drape" + }, + "hipsEase": { + "t": "Hips ease", + "d": "Controls the amount of ease at your hips" + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist" } } } diff --git a/designs/diana/src/index.mjs b/designs/diana/src/index.mjs index de97d363014..5336fc25f10 100644 --- a/designs/diana/src/index.mjs +++ b/designs/diana/src/index.mjs @@ -1,6 +1,7 @@ -import { Design } from '@freesewing/core' +import { Design, mergeI18n } from '@freesewing/core' import { data } from '../data.mjs' -import { i18n } from '../i18n/index.mjs' +import { i18n as brianI18n } from '@freesewing/brian' +import { i18n as dianaI18n } from '../i18n/index.mjs' // Parts import { front } from './front.mjs' import { back } from './front.mjs' @@ -12,5 +13,8 @@ const Diana = new Design({ parts: [front, back, sleeve], }) +// Merge translations +const i18n = mergeI18n([brianI18n, dianaI18n]) + // Named exports export { front, back, sleeve, Diana, i18n }