From 1b800b4ad83c29cf9e1da0e684f9ebc22ed4fe7c Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 2 Jul 2023 14:34:28 +0200 Subject: [PATCH] fix(carlton): Add missing options in translation config --- designs/carlton/i18n/de.json | 72 +++++++++++++++++++++++++++++++++++ designs/carlton/i18n/en.json | 72 +++++++++++++++++++++++++++++++++++ designs/carlton/i18n/es.json | 72 +++++++++++++++++++++++++++++++++++ designs/carlton/i18n/fr.json | 72 +++++++++++++++++++++++++++++++++++ designs/carlton/i18n/nl.json | 72 +++++++++++++++++++++++++++++++++++ designs/carlton/src/index.mjs | 17 +++++++-- 6 files changed, 374 insertions(+), 3 deletions(-) diff --git a/designs/carlton/i18n/de.json b/designs/carlton/i18n/de.json index 790e79ebd85..f216636c143 100644 --- a/designs/carlton/i18n/de.json +++ b/designs/carlton/i18n/de.json @@ -61,6 +61,78 @@ "buttonSpacingHorizontal": { "t": "Horizontaler Knopfabstand", "d": "Horizontaler Abstand der Knöpfe, bestimmt auch den Übertritt des vorderen Verschlusses" + }, + "lapelReduction": { + "t": "Lapel reduction", + "d": "Controls how much the lapel tip goes inwards." + }, + "frontOverlap": { + "t": "Front overlap", + "d": "Controls how much the right and left front of the garment overlap at the center front." + }, + "pocketHeight": { + "t": "Pocket height", + "d": "Controls the height of the front pockets" + }, + "pocketWidth": { + "t": "Pocket width", + "d": "Controls the width of the front pockets" + }, + "chestPocketPlacement": { + "t": "Chest pocket placement", + "d": "Controls the location of the chest pocket." + }, + "chestPocketAngle": { + "t": "Chest pocket angle", + "d": "Controls the slant of the chest pocket." + }, + "chestPocketWidth": { + "t": "Chest pocket width", + "d": "Controls the width of the chest pocket." + }, + "innerPocketPlacement": { + "t": "Inner pocket placement", + "d": "Controls the location of the inner pocket." + }, + "innerPocketDepth": { + "t": "Inner pocket depth", + "d": "Controls the depth of the inner pocket." + }, + "innerPocketWidth": { + "t": "Inner pocket width", + "d": "Controls the width of the inner pocket." + }, + "innerPocketWeltHeight": { + "t": "Inner pocket welt height", + "d": "Controls the height of the inner pocket welts." + }, + "sleeveBend": { + "t": "Sleeve bend", + "d": "The angle of the sleeve at the elbow." + }, + "sleevecapHeight": { + "t": "Sleevecap height", + "d": "Controls the height of the sleevecap." + }, + "sleevecapEase": { + "t": "Sleevecap ease", + "d": "Controls the amount of sleevecap ease." + }, + "cuffLength": { + "t": "Cuff length", + "d": "Controls the length (height if you wish) of the cuffs." + }, + "collarFlare": { + "t": "Collar flare", + "d": "Controls the flare of the collar by altering the fall length (between the neck and the tips) of the collar." + }, + "collarSpread": { + "t": "Collar spread", + "d": "Controls how close the collar lies to the neck." + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist." } } } diff --git a/designs/carlton/i18n/en.json b/designs/carlton/i18n/en.json index 38117752cbc..096185c767c 100644 --- a/designs/carlton/i18n/en.json +++ b/designs/carlton/i18n/en.json @@ -61,6 +61,78 @@ "buttonSpacingHorizontal": { "t": "Horizontal button spacing", "d": "Horizontal spacing of the buttons, also determines the front closure overlap" + }, + "lapelReduction": { + "t": "Lapel reduction", + "d": "Controls how much the lapel tip goes inwards." + }, + "frontOverlap": { + "t": "Front overlap", + "d": "Controls how much the right and left front of the garment overlap at the center front." + }, + "pocketHeight": { + "t": "Pocket height", + "d": "Controls the height of the front pockets" + }, + "pocketWidth": { + "t": "Pocket width", + "d": "Controls the width of the front pockets" + }, + "chestPocketPlacement": { + "t": "Chest pocket placement", + "d": "Controls the location of the chest pocket." + }, + "chestPocketAngle": { + "t": "Chest pocket angle", + "d": "Controls the slant of the chest pocket." + }, + "chestPocketWidth": { + "t": "Chest pocket width", + "d": "Controls the width of the chest pocket." + }, + "innerPocketPlacement": { + "t": "Inner pocket placement", + "d": "Controls the location of the inner pocket." + }, + "innerPocketDepth": { + "t": "Inner pocket depth", + "d": "Controls the depth of the inner pocket." + }, + "innerPocketWidth": { + "t": "Inner pocket width", + "d": "Controls the width of the inner pocket." + }, + "innerPocketWeltHeight": { + "t": "Inner pocket welt height", + "d": "Controls the height of the inner pocket welts." + }, + "sleeveBend": { + "t": "Sleeve bend", + "d": "The angle of the sleeve at the elbow." + }, + "sleevecapHeight": { + "t": "Sleevecap height", + "d": "Controls the height of the sleevecap." + }, + "sleevecapEase": { + "t": "Sleevecap ease", + "d": "Controls the amount of sleevecap ease." + }, + "cuffLength": { + "t": "Cuff length", + "d": "Controls the length (height if you wish) of the cuffs." + }, + "collarFlare": { + "t": "Collar flare", + "d": "Controls the flare of the collar by altering the fall length (between the neck and the tips) of the collar." + }, + "collarSpread": { + "t": "Collar spread", + "d": "Controls how close the collar lies to the neck." + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist." } } } diff --git a/designs/carlton/i18n/es.json b/designs/carlton/i18n/es.json index bc1d2e962dc..b5bab27ec77 100644 --- a/designs/carlton/i18n/es.json +++ b/designs/carlton/i18n/es.json @@ -61,6 +61,78 @@ "buttonSpacingHorizontal": { "t": "Espaciado horizontal de los botones", "d": "El espaciado horizontal de los botones, también determina la superposición del cierre frontal" + }, + "lapelReduction": { + "t": "Lapel reduction", + "d": "Controls how much the lapel tip goes inwards." + }, + "frontOverlap": { + "t": "Front overlap", + "d": "Controls how much the right and left front of the garment overlap at the center front." + }, + "pocketHeight": { + "t": "Pocket height", + "d": "Controls the height of the front pockets" + }, + "pocketWidth": { + "t": "Pocket width", + "d": "Controls the width of the front pockets" + }, + "chestPocketPlacement": { + "t": "Chest pocket placement", + "d": "Controls the location of the chest pocket." + }, + "chestPocketAngle": { + "t": "Chest pocket angle", + "d": "Controls the slant of the chest pocket." + }, + "chestPocketWidth": { + "t": "Chest pocket width", + "d": "Controls the width of the chest pocket." + }, + "innerPocketPlacement": { + "t": "Inner pocket placement", + "d": "Controls the location of the inner pocket." + }, + "innerPocketDepth": { + "t": "Inner pocket depth", + "d": "Controls the depth of the inner pocket." + }, + "innerPocketWidth": { + "t": "Inner pocket width", + "d": "Controls the width of the inner pocket." + }, + "innerPocketWeltHeight": { + "t": "Inner pocket welt height", + "d": "Controls the height of the inner pocket welts." + }, + "sleeveBend": { + "t": "Sleeve bend", + "d": "The angle of the sleeve at the elbow." + }, + "sleevecapHeight": { + "t": "Sleevecap height", + "d": "Controls the height of the sleevecap." + }, + "sleevecapEase": { + "t": "Sleevecap ease", + "d": "Controls the amount of sleevecap ease." + }, + "cuffLength": { + "t": "Cuff length", + "d": "Controls the length (height if you wish) of the cuffs." + }, + "collarFlare": { + "t": "Collar flare", + "d": "Controls the flare of the collar by altering the fall length (between the neck and the tips) of the collar." + }, + "collarSpread": { + "t": "Collar spread", + "d": "Controls how close the collar lies to the neck." + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist." } } } diff --git a/designs/carlton/i18n/fr.json b/designs/carlton/i18n/fr.json index 54ca8e1285d..612f0bb28b0 100644 --- a/designs/carlton/i18n/fr.json +++ b/designs/carlton/i18n/fr.json @@ -61,6 +61,78 @@ "buttonSpacingHorizontal": { "t": "Espacement horizontal des boutons", "d": "L'espacement horizontal des boutons détermine également le chevauchement de la fermeture avant" + }, + "lapelReduction": { + "t": "Lapel reduction", + "d": "Controls how much the lapel tip goes inwards." + }, + "frontOverlap": { + "t": "Front overlap", + "d": "Controls how much the right and left front of the garment overlap at the center front." + }, + "pocketHeight": { + "t": "Pocket height", + "d": "Controls the height of the front pockets" + }, + "pocketWidth": { + "t": "Pocket width", + "d": "Controls the width of the front pockets" + }, + "chestPocketPlacement": { + "t": "Chest pocket placement", + "d": "Controls the location of the chest pocket." + }, + "chestPocketAngle": { + "t": "Chest pocket angle", + "d": "Controls the slant of the chest pocket." + }, + "chestPocketWidth": { + "t": "Chest pocket width", + "d": "Controls the width of the chest pocket." + }, + "innerPocketPlacement": { + "t": "Inner pocket placement", + "d": "Controls the location of the inner pocket." + }, + "innerPocketDepth": { + "t": "Inner pocket depth", + "d": "Controls the depth of the inner pocket." + }, + "innerPocketWidth": { + "t": "Inner pocket width", + "d": "Controls the width of the inner pocket." + }, + "innerPocketWeltHeight": { + "t": "Inner pocket welt height", + "d": "Controls the height of the inner pocket welts." + }, + "sleeveBend": { + "t": "Sleeve bend", + "d": "The angle of the sleeve at the elbow." + }, + "sleevecapHeight": { + "t": "Sleevecap height", + "d": "Controls the height of the sleevecap." + }, + "sleevecapEase": { + "t": "Sleevecap ease", + "d": "Controls the amount of sleevecap ease." + }, + "cuffLength": { + "t": "Cuff length", + "d": "Controls the length (height if you wish) of the cuffs." + }, + "collarFlare": { + "t": "Collar flare", + "d": "Controls the flare of the collar by altering the fall length (between the neck and the tips) of the collar." + }, + "collarSpread": { + "t": "Collar spread", + "d": "Controls how close the collar lies to the neck." + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist." } } } diff --git a/designs/carlton/i18n/nl.json b/designs/carlton/i18n/nl.json index 0c76821e2d2..c0c9387ec28 100644 --- a/designs/carlton/i18n/nl.json +++ b/designs/carlton/i18n/nl.json @@ -61,6 +61,78 @@ "buttonSpacingHorizontal": { "t": "Spreiding knopen horizontaal", "d": "De spreiding van de knopen horizontaal. Bepaalt ook de mate waarin de sluiting vooraan overlapt" + }, + "lapelReduction": { + "t": "Lapel reduction", + "d": "Controls how much the lapel tip goes inwards." + }, + "frontOverlap": { + "t": "Front overlap", + "d": "Controls how much the right and left front of the garment overlap at the center front." + }, + "pocketHeight": { + "t": "Pocket height", + "d": "Controls the height of the front pockets" + }, + "pocketWidth": { + "t": "Pocket width", + "d": "Controls the width of the front pockets" + }, + "chestPocketPlacement": { + "t": "Chest pocket placement", + "d": "Controls the location of the chest pocket." + }, + "chestPocketAngle": { + "t": "Chest pocket angle", + "d": "Controls the slant of the chest pocket." + }, + "chestPocketWidth": { + "t": "Chest pocket width", + "d": "Controls the width of the chest pocket." + }, + "innerPocketPlacement": { + "t": "Inner pocket placement", + "d": "Controls the location of the inner pocket." + }, + "innerPocketDepth": { + "t": "Inner pocket depth", + "d": "Controls the depth of the inner pocket." + }, + "innerPocketWidth": { + "t": "Inner pocket width", + "d": "Controls the width of the inner pocket." + }, + "innerPocketWeltHeight": { + "t": "Inner pocket welt height", + "d": "Controls the height of the inner pocket welts." + }, + "sleeveBend": { + "t": "Sleeve bend", + "d": "The angle of the sleeve at the elbow." + }, + "sleevecapHeight": { + "t": "Sleevecap height", + "d": "Controls the height of the sleevecap." + }, + "sleevecapEase": { + "t": "Sleevecap ease", + "d": "Controls the amount of sleevecap ease." + }, + "cuffLength": { + "t": "Cuff length", + "d": "Controls the length (height if you wish) of the cuffs." + }, + "collarFlare": { + "t": "Collar flare", + "d": "Controls the flare of the collar by altering the fall length (between the neck and the tips) of the collar." + }, + "collarSpread": { + "t": "Collar spread", + "d": "Controls how close the collar lies to the neck." + }, + "waistEase": { + "t": "Waist ease", + "d": "Controls the amount of ease at your waist." } } } diff --git a/designs/carlton/src/index.mjs b/designs/carlton/src/index.mjs index e2200aa5d59..fb617fe83b1 100644 --- a/designs/carlton/src/index.mjs +++ b/designs/carlton/src/index.mjs @@ -1,5 +1,7 @@ -import { Design } from '@freesewing/core' +import { Design, mergeI18n } from '@freesewing/core' import { data } from '../data.mjs' +import { i18n as brianI18n, Brian, sleevecap as brianSleevecap } from '@freesewing/brian' +import { i18n as carltonI18n } from '../i18n/index.mjs' // Parts import { front } from './front.mjs' import { back } from './back.mjs' @@ -18,8 +20,6 @@ import { chestPocketBag } from './chestpocketbag.mjs' import { innerPocketWelt } from './innerpocketwelt.mjs' import { innerPocketBag } from './innerpocketbag.mjs' import { innerPocketTab } from './innerpockettab.mjs' -// Translation -import { i18n } from '../i18n/index.mjs' // Create design const Carlton = new Design({ @@ -45,6 +45,17 @@ const Carlton = new Design({ ], }) +// Merge translations +const i18n = mergeI18n([brianI18n, carltonI18n], { + o: { + keep: [ + ...Object.keys(Brian.patternConfig.options), + ...Object.keys(Carlton.patternConfig.options), + ], + drop: Object.keys(brianSleevecap.options).filter((o) => o !== 'sleevecapEase'), + }, +}) + // Named exports export { front,