diff --git a/packages/react/components/Editor/components/menus/Input.mjs b/packages/react/components/Editor/components/menus/Input.mjs
index 2b77b6ad02c..1ece88e007f 100644
--- a/packages/react/components/Editor/components/menus/Input.mjs
+++ b/packages/react/components/Editor/components/menus/Input.mjs
@@ -1,4 +1,5 @@
import React, { useMemo, useCallback, useState } from 'react'
+import { i18n } from '@freesewing/collection'
import { designOptionType, round, measurementAsUnits, measurementAsMm } from '@freesewing/utils'
import { menuRoundPct } from '../../lib/index.mjs'
import { ButtonFrame, NumberInput } from '@freesewing/react/components/Input'
@@ -389,25 +390,31 @@ const useBoolConfig = (name, config) => {
/** an input for the 'only' setting. toggles individual parts*/
export const MenuOnlySettingInput = (props) => {
const { config } = props
- config.sideBySide = true
- config.titleMethod = (entry, t) => {
- const chunks = entry.split('.')
- return {t(`${chunks[0]}:${chunks[1]}`)}
- }
- config.valueMethod = (entry) => (
- {capitalize(entry.split('.')[0])}
- )
- config.dense = true
- // Sort alphabetically (translated)
- const order = []
+ //config.sideBySide = true
+ //config.titleMethod = (entry, t) => {
+ // const chunks = entry.split('.')
+ // return {entry} //t(`${chunks[0]}:${chunks[1]}`)}
+ //}
+ //config.valueMethod = (entry) => (
+ // {capitalize(entry.split('.')[0])}
+ //)
+ //config.dense = true
+ // Sort alphabetically
+ //const order = []
+ //order.sort()
+ console.log(i18n)
+ config.list = config.list.sort()
config.choiceTitles = {}
for (const part of config.list) {
- const [ns, name] = part.split('.')
- order.push(`${ns}:${name}|${part}`)
- config.choiceTitles[part] = `${ns}:${name}`
+ const [design, name] = part.split('.')
+ config.choiceTitles[part] = (
+
+ {design}
+ »
+ {i18n[design].en.p[name]}
+
+ )
}
- order.sort()
- config.list = order.map((entry) => entry.split('|')[1])
return
}
diff --git a/packages/react/components/Editor/lib/core-settings.mjs b/packages/react/components/Editor/lib/core-settings.mjs
index fd7d0816419..21dec42e749 100644
--- a/packages/react/components/Editor/lib/core-settings.mjs
+++ b/packages/react/components/Editor/lib/core-settings.mjs
@@ -199,6 +199,7 @@ export function menuCoreSettingsStructure({ units = 'metric', sabool = false, pa
icon: ExpandIcon,
},
only: {
+ dense: true,
title: 'Only included selected pattern parts',
ux: config.uxLevels.core.only,
dflt: false,