Skip to content

Commit

Permalink
feat(Input): Internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
WB01081293 committed Jan 25, 2024
1 parent 2b48ec7 commit 3426de2
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/input/textarea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Input from '../locale/zh-cn';
import zhCN from '../locale/zh-cn';
import { obj, env } from '../util';
import Base from './base';

Expand Down Expand Up @@ -84,7 +84,7 @@ export default class TextArea extends Base {
isPreview: false,
rows: 4,
autoHeight: false,
locale: Input.Input,
locale: zhCN.TextArea,
};

constructor(props) {
Expand Down
3 changes: 3 additions & 0 deletions components/locale/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: 'Clear',
},
TextArea: {
clear: 'Clear',
},
List: {
empty: 'No Data',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/id-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const locale: Locale = {
Input: {
clear: 'Reset',
},
TextArea: {
clear: 'Reset',
},
List: {
empty: 'Tidak Ada Data',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/it-it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const locale: Locale = {
Input: {
clear: 'Cancella',
},
TextArea: {
clear: 'Cancella',
},
List: {
empty: 'Nessun dato',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/ja-jp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: 'クリア',
},
TextArea: {
clear: 'クリア',
},
List: {
empty: 'データなし',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/ko-kr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: '삭제',
},
TextArea: {
clear: '삭제',
},
List: {
empty: '노데이터',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/ms-my.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: 'Jelas',
},
TextArea: {
clear: 'Jelas',
},
List: {
empty: 'tiada data',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/pt-pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale = {
Input: {
clear: 'Limpar',
},
TextArea: {
clear: 'Limpar',
},
List: {
empty: 'Vazio',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/th-th.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: 'ชัดเจน',
},
TextArea: {
clear: 'ชัดเจน',
},
List: {
empty: 'ไม่มีข้อมูล',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export interface Locale extends LocaleConfig {
Input: {
clear: string;
};
TextArea: {
clear: string;
};
List: {
empty: string;
};
Expand Down
3 changes: 3 additions & 0 deletions components/locale/vi-vn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const locale: Locale = {
Input: {
clear: 'Xóa',
},
TextArea: {
clear: 'Xóa',
},
List: {
empty: 'Không có dữ liệu',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: '清除',
},
TextArea: {
clear: '清除',
},
List: {
empty: '没有数据',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/zh-hk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: '清除',
},
TextArea: {
clear: '清除',
},
List: {
empty: '沒有數據',
},
Expand Down
3 changes: 3 additions & 0 deletions components/locale/zh-tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const locale: Locale = {
Input: {
clear: '清除',
},
TextArea: {
clear: '清除',
},
List: {
empty: '沒有數據',
},
Expand Down

0 comments on commit 3426de2

Please sign in to comment.