QSelectBox 한/일 언어 처리

This commit is contained in:
changkyu choi 2025-02-04 14:18:11 +09:00
parent 9a074b9c43
commit 016a432eab
2 changed files with 11 additions and 3 deletions

View File

@ -508,8 +508,12 @@ export default function CanvasMenu(props) {
<div className="select-box">
{
<QSelectBox
showKey={'roofMatlNm'}
options={addedRoofs}
//options={addedRoofs}
options={addedRoofs.map((roof) => {
return { ...roof, name: globalLocale === 'ko' ? roof.roofMatlNm : roof.roofMatlNmJp }
})}
//showKey={'roofMatlNm'}
showKey={'name'}
value={selectedRoofMaterial}
onChange={changeSelectedRoofMaterial}
sourceKey={'index'}

View File

@ -258,7 +258,11 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, set
<div className="grid-select no-flx" style={{ width: '171px' }}>
<QSelectBox
title={
currentRoof?.roofSizeSet === '3' ? getMessage('modal.placement.initial.setting.size.none.pitch') : currentRoof?.roofMatlNm
currentRoof?.roofSizeSet === '3'
? getMessage('modal.placement.initial.setting.size.none.pitch')
: globalLocale === 'ko'
? currentRoof?.roofMatlNm
: currentRoof?.roofMatlNmJp
}
//ref={roofRef.roofCd}
options={roofMaterials.map((roof) => {