From 38f50fc0be2357daa2dbbdf0e66814b552e1d42b Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 2 Jul 2023 17:27:30 +0200 Subject: [PATCH] feat(yuri): Add i18n named export --- designs/yuri/i18n/en.json | 7 ++++++- designs/yuri/src/index.mjs | 10 ++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/designs/yuri/i18n/en.json b/designs/yuri/i18n/en.json index cc94900187d..d1a56b7fbde 100644 --- a/designs/yuri/i18n/en.json +++ b/designs/yuri/i18n/en.json @@ -10,5 +10,10 @@ "sleeve": "Sleeve" }, "s": {}, - "o": {} + "o": { + "hipsEase": { + "t": "Hips ease", + "d": "Controls the amount of ease at the hips" + } + } } diff --git a/designs/yuri/src/index.mjs b/designs/yuri/src/index.mjs index 1c8ca7266ba..fd2fb5debc6 100644 --- a/designs/yuri/src/index.mjs +++ b/designs/yuri/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 } from '@freesewing/brian' +import { i18n as yuriI18n } from '../i18n/index.mjs' import { back } from './back.mjs' import { front } from './front.mjs' import { sleeve } from './sleeve.mjs' @@ -13,5 +15,9 @@ const Yuri = new Design({ parts: [back, front, sleeve, gusset, hoodSide, hoodCenter], }) +// Merge translations +const i18n = mergeI18n([brianI18n, yuriI18n]) + // Named exports -export { back, front, sleeve, gusset, hoodSide, hoodCenter, Yuri } +// Named exports +export { back, front, sleeve, gusset, hoodSide, hoodCenter, Yuri, i18n }