Skip to content

Commit

Permalink
feat(language): add Korean translation (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
2jun0 authored Nov 15, 2021
1 parent ea630dd commit 9f5cec9
Show file tree
Hide file tree
Showing 41 changed files with 852 additions and 3 deletions.
8 changes: 8 additions & 0 deletions formily/antd/playground/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ GlobalRegistry.registerDesignerLocales({
Displays: 'Displays',
},
},
'ko-KR': {
sources: {
Inputs: '입력',
Layouts: '레이아웃',
Arrays: '배열',
Displays: '디스플레이',
},
},
})

const App = () => {
Expand Down
1 change: 1 addition & 0 deletions formily/antd/playground/widgets/ActionsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const ActionsWidget = observer(() => {
options={[
{ label: 'English', value: 'en-us' },
{ label: '简体中文', value: 'zh-cn' },
{ label: '한국어', value: 'ko-kr' },
]}
onChange={(e) => {
GlobalRegistry.setDesignerLanguage(e.target.value)
Expand Down
15 changes: 15 additions & 0 deletions formily/antd/src/locales/ArrayBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export const ArrayRemove = {
'en-US': {
title: 'Remove',
},
'ko-KR': {
title: '삭제',
},
}

export const ArrayMoveUp = {
Expand All @@ -42,6 +45,9 @@ export const ArrayMoveUp = {
'en-US': {
title: 'Move Up',
},
'ko-KR': {
title: '위로 옮기기',
},
}

export const ArrayMoveDown = {
Expand All @@ -51,6 +57,9 @@ export const ArrayMoveDown = {
'en-US': {
title: 'Move Down',
},
'ko-KR': {
title: '아래로 옮기기',
},
}

export const ArrayIndex = {
Expand All @@ -60,6 +69,9 @@ export const ArrayIndex = {
'en-US': {
title: 'Index',
},
'ko-KR': {
title: '색인',
},
}

export const ArraySortHandle = {
Expand All @@ -69,4 +81,7 @@ export const ArraySortHandle = {
'en-US': {
title: 'Sort Handle',
},
'ko-KR': {
title: '정렬 핸들',
},
}
5 changes: 5 additions & 0 deletions formily/antd/src/locales/ArrayCards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ export const ArrayCards = createLocales(Card, {
addIndex: 'Add Index',
addOperation: 'Add Operations',
},
'ko-KR': {
title: '배열 카드',
addIndex: '색인 추가',
addOperation: '작업 추가',
},
})
39 changes: 39 additions & 0 deletions formily/antd/src/locales/ArrayTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ export const ArrayTable = {
},
},
},
'ko-KR': {
title: '배열 테이블',
addSortHandle: '정렬 핸들 추가',
addColumn: '열 추가',
addIndex: '색인 추가',
addOperation: '작업 추가',
settings: {
'x-component-props': {
showHeader: '헤더 보여주기',
sticky: '고정',
align: {
title: '정렬',
dataSource: ['왼쪽', '오른쪽', '가운데'],
},
colSpan: 'colSpan',
fixed: { title: '고정', dataSource: ['왼쪽', '오른쪽', '없음'] },
width: '너비',
defaultValue: '기본 값',
},
},
},
}

export const ArrayTableColumn = {
Expand Down Expand Up @@ -80,4 +101,22 @@ export const ArrayTableColumn = {
},
},
},
'ko-KR': {
title: '열',
settings: {
'x-component-props': {
title: '제목',
align: {
title: '정렬',
dataSource: ['왼쪽', '오른쪽', '가운데'],
},
colSpan: 'Col Span',
width: '너비',
fixed: {
title: '고정',
dataSource: ['왼쪽', '오른족', '없음'],
},
},
},
},
}
14 changes: 14 additions & 0 deletions formily/antd/src/locales/Card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,18 @@ export const Card = {
},
},
},
'ko-KR': {
title: '카드',
settings: {
'x-component-props': {
type: '타입',
title: '제목',
extra: '추가 항목',
cardTypes: [
{ label: '안쪽', value: 'inner' },
{ label: '기본', value: '' },
],
},
},
},
}
21 changes: 21 additions & 0 deletions formily/antd/src/locales/Cascader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,25 @@ export const Cascader = {
},
},
},
'ko-KR': {
title: 'Cascader',
settings: {
'x-component-props': {
changeOnSelect: {
title: '선택 시 변경',
tooltip: '메뉴 옵션 값의 레벨을 클릭하면 변경됩니다.',
},
displayRender: {
title: '디스플레이 렌더링',
tooltip:
'선택 후 실행되는 렌더링 함수로 기본 값은 label => label.join("/") ',
},
fieldNames: {
title: '필드 이름',
tooltip:
'기본 값:{ label: "label", value: "value", children: "children" }',
},
},
},
},
}
3 changes: 3 additions & 0 deletions formily/antd/src/locales/Checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ export const CheckboxGroup = {
'en-US': {
title: 'Checkbox',
},
'ko-KR': {
title: '체크박스',
},
}
17 changes: 17 additions & 0 deletions formily/antd/src/locales/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,21 @@ export const Component = {
},
},
},
'ko-KR': {
settings: {
style: {
width: '너비',
height: '높이',
display: '디스플레이',
background: '배경',
boxShadow: '쉐도우 박스',
font: '폰트',
margin: '마진',
padding: '패딩',
borderRadius: '테두리 굴곡',
border: '테두리',
opacity: '투명도',
},
},
},
}
27 changes: 27 additions & 0 deletions formily/antd/src/locales/DatePicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@ export const DatePicker = {
},
},
},
'ko-KR': {
title: '날짜 선택 상자',
settings: {
'x-component-props': {
disabledDate: {
title: '비활성화 된 날짜',
tooltip: '형식 (currentDate: moment) => boolean',
},
disabledTime: {
title: '비활성화 된 시간',
tooltip: '형식 (currentDate: moment) => boolean',
},
inputReadOnly: 'ReadOnly',
format: '포맷',
picker: {
title: '타입',
dataSource: ['시간', '날짜', '월', '년', '분기', '십년 단위'],
},
showNow: '현재 시각 보기',
showTime: '시간 보기',
showToday: '오늘 보기',
},
},
},
}

export const DateRangePicker = createLocales(DatePicker, {
Expand All @@ -58,4 +82,7 @@ export const DateRangePicker = createLocales(DatePicker, {
'en-US': {
title: 'DateRange',
},
'ko-KR': {
title: '날짜범위 선택 상자',
},
})
108 changes: 108 additions & 0 deletions formily/antd/src/locales/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,112 @@ export const Field = {
},
},
},
'ko-KR': {
settings: {
name: '이름',
title: '제목',
required: '필수항목',
description: '설명',
default: '기본 값',
enum: 'DataSource',
'x-display': {
title: '디스플레이 상태',
tooltip:
'디스플레이 값이 "없음"이면 데이터가 "숨김"상태가 되고 삭제됩니다. 디스플레이 값이 숨김이면 UI만 숨겨집니다.',
dataSource: ['보임', '숨김', '없음', '상속'],
},
'x-pattern': {
title: 'UI 패턴',
dataSource: ['수정 가능', '비활성화', 'ReadOnly', 'ReadPretty', '상속'],
},
'x-validator': '유효성 검사 도구',
'x-decorator': '데코레이터',
'x-reactions': 'Reactions',
'field-group': '필드 속성',
'component-group': '컴포넌트 속성',
'decorator-group': '데코레이터 속성',
'component-style-group': '컴포넌트 스타일',
'decorator-style-group': '데코레이터 스타일',
'x-component-props': {
size: {
title: '크기',
dataSource: ['크게', '작게', '보통', '상속'],
},
allowClear: '삭제 허용',
autoFocus: '오토 포커스',
showSearch: '검색 보기',
notFoundContent: '값을 찾을 수 없음',
bordered: 'Bordered',
placeholder: 'Placeholder',
style: {
width: '너비',
height: '높이',
display: '디스플레이',
background: '배경',
boxShadow: '그림자 박스',
font: '폰트',
margin: '마진',
padding: '패딩',
borderRadius: '테두리 굴곡',
border: '테두리',
opacity: '투명도',
},
},
'x-decorator-props': {
addonAfter: '에드온 뒤',
addonBefore: '에드온 전',
tooltip: '툴팁',
asterisk: '별표시',
gridSpan: 'Grid Span',
labelCol: 'Label Col',
wrapperCol: 'Wrapper Col',
colon: 'Colon',
labelAlign: {
title: 'Label 정렬',
dataSource: ['왼쪽', '오른쪽', '상속'],
},
wrapperAlign: {
title: 'Wrapper 정렬',
dataSource: ['왼쪽', '오른쪽', '상속'],
},
labelWrap: 'Label Wrap',
wrapperWrap: 'Wrapper Wrap',
labelWidth: 'Label Width',
wrapperWidth: 'Wrapper Width',
fullness: 'Fullness',
inset: 'Inset',
shallow: '얇게',
bordered: 'Bordered',
size: {
title: '크기',
dataSource: ['크게', '작게', '보통', '상속'],
},
layout: {
title: '레이아웃',
dataSource: ['수직', '수평', '인라인', '상속'],
},
feedbackLayout: {
title: '피드백 레이아웃',
dataSource: ['느슨하게', 'Terse', '팝업', '없음', '상속'],
},
tooltipLayout: {
title: '툴팁 레이아웃',
dataSource: ['아이콘', '텍스트', '상속'],
},
style: {
width: '너비',
height: '높이',
display: '디스플레이',
background: '배경',
boxShadow: '그림자 박수',
font: '폰트',
margin: '마진',
padding: '패딩',
borderRadius: '테두리 굴곡',
border: '테두리',
opacity: '투명도',
},
},
},
},
}
Loading

0 comments on commit 9f5cec9

Please sign in to comment.