1
0
Fork 0

fix(charlie): Add missing options in translation config

This commit is contained in:
joostdecock 2023-07-02 14:40:02 +02:00
parent ea913faefd
commit bd199202e2

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 titanI18n } from '@freesewing/titan'
import { i18n as charlieI18n } from '../i18n/index.mjs'
// Parts // Parts
import { back } from './back.mjs' import { back } from './back.mjs'
import { front } from './front.mjs' import { front } from './front.mjs'
@ -14,8 +16,6 @@ import { backPocketWelt } from './back-pocket-welt.mjs'
import { flyFacing } from './fly-facing.mjs' import { flyFacing } from './fly-facing.mjs'
import { flyExtension } from './fly-extension.mjs' import { flyExtension } from './fly-extension.mjs'
import { beltLoops } from './beltloops.mjs' import { beltLoops } from './beltloops.mjs'
// Translation
import { i18n } from '../i18n/index.mjs'
// Create design // Create design
const Charlie = new Design({ const Charlie = new Design({
@ -37,6 +37,9 @@ const Charlie = new Design({
], ],
}) })
// Merge translations
const i18n = mergeI18n([titanI18n, charlieI18n])
// Named exports // Named exports
export { export {
front, front,