1
0
Fork 0

feat(sven): Add i18n named export

This commit is contained in:
joostdecock 2023-07-02 16:44:19 +02:00
parent d8b5f3c27c
commit 6e4325c8c5

View file

@ -1,5 +1,7 @@
import { Design } from '@freesewing/core' import { Design, mergeI18n } from '@freesewing/core'
import { data } from '../data.mjs' import { data } from '../data.mjs'
import { i18n as brianI18n } from '@freesewing/brian'
import { i18n as svenI18n } from '../i18n/index.mjs'
import { front, back } from './frontback.mjs' import { front, back } from './frontback.mjs'
import { sleeve } from './sleeve.mjs' import { sleeve } from './sleeve.mjs'
import { cuff } from './cuff.mjs' import { cuff } from './cuff.mjs'
@ -11,5 +13,8 @@ const Sven = new Design({
parts: [front, back, sleeve, cuff, waistband], parts: [front, back, sleeve, cuff, waistband],
}) })
// Merge translations
const i18n = mergeI18n([brianI18n, svenI18n])
// Named exports // Named exports
export { front, back, sleeve, cuff, waistband, Sven } export { front, back, sleeve, cuff, waistband, Sven, i18n }