mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
commit
4c23bc2543
@ -2038,7 +2038,7 @@ timeline: true
|
||||
|
||||
```javascript
|
||||
import { LocaleProvider } from 'antd';
|
||||
import zhCN from 'antd/lib/locale-provider/zh_CN';
|
||||
import zhCN from 'antd/lib/locale/zh_CN';
|
||||
|
||||
ReactDOM.render(
|
||||
<LocaleProvider locale={zhCN}>
|
||||
|
@ -7,6 +7,7 @@ import KeyCode from 'rc-util/lib/KeyCode';
|
||||
|
||||
interface TransButtonProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
||||
noStyle?: boolean;
|
||||
}
|
||||
|
||||
const inlineStyle: React.CSSProperties = {
|
||||
@ -53,7 +54,8 @@ class TransButton extends React.Component<TransButtonProps> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { style } = this.props;
|
||||
const { style, noStyle } = this.props;
|
||||
|
||||
return (
|
||||
<div
|
||||
role="button"
|
||||
@ -62,7 +64,7 @@ class TransButton extends React.Component<TransButtonProps> {
|
||||
{...this.props}
|
||||
onKeyDown={this.onKeyDown}
|
||||
onKeyUp={this.onKeyUp}
|
||||
style={{ ...inlineStyle, ...style }}
|
||||
style={{ ...(!noStyle ? inlineStyle : null), ...style }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@ -1,6 +1,11 @@
|
||||
import warning from 'warning';
|
||||
|
||||
const warned: Record<string, boolean> = {};
|
||||
let warned: Record<string, boolean> = {};
|
||||
|
||||
export function resetWarned() {
|
||||
warned = {};
|
||||
}
|
||||
|
||||
export default (valid: boolean, component: string, message: string): void => {
|
||||
if (!valid && !warned[message]) {
|
||||
warning(false, `[antd: ${component}] ${message}`);
|
||||
|
2
components/calendar/locale/ms_MY.tsx
Normal file
2
components/calendar/locale/ms_MY.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
import ms_MY from '../../date-picker/locale/ms_MY';
|
||||
export default ms_MY;
|
@ -35,6 +35,6 @@ cols: 1
|
||||
| disabled | 禁用后的面板展开与否将无法通过用户交互改变 | boolean | false | |
|
||||
| forceRender | 被隐藏时是否渲染 DOM 结构 | boolean | false | 3.2.0 |
|
||||
| header | 面板头内容 | string\|ReactNode | 无 | |
|
||||
| key | 对应 activeKey | string\|number | 无 | |
|
||||
| key | 对应 activeKey | string\|number | 无 | |
|
||||
| showArrow | 是否展示当前面板上的箭头 | boolean | `true` | 3.13.0 |
|
||||
| extra | 自定义渲染每个面板右上角的内容 | ReactNode | - | 3.14.0 |
|
||||
|
187
components/config-provider/demo/locale.md
Normal file
187
components/config-provider/demo/locale.md
Normal file
@ -0,0 +1,187 @@
|
||||
---
|
||||
order: 1
|
||||
title:
|
||||
zh-CN: 国际化
|
||||
en-US: Locale
|
||||
---
|
||||
|
||||
## zh-CN
|
||||
|
||||
此处列出 Ant Design 中需要国际化支持的组件,你可以在演示里切换语言。
|
||||
|
||||
## en-US
|
||||
|
||||
Components which need localization support are listed here, you can toggle the language in the demo.
|
||||
|
||||
```jsx
|
||||
import {
|
||||
ConfigProvider,
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Popconfirm,
|
||||
Table,
|
||||
Modal,
|
||||
Button,
|
||||
Select,
|
||||
Transfer,
|
||||
Radio,
|
||||
} from 'antd';
|
||||
import zhCN from 'antd/lib/locale/zh_CN';
|
||||
import moment from 'moment';
|
||||
import 'moment/locale/zh-cn';
|
||||
|
||||
moment.locale('en');
|
||||
|
||||
const { Option } = Select;
|
||||
const { RangePicker } = DatePicker;
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: 'Name',
|
||||
dataIndex: 'name',
|
||||
filters: [
|
||||
{
|
||||
text: 'filter1',
|
||||
value: 'filter1',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Age',
|
||||
dataIndex: 'age',
|
||||
},
|
||||
];
|
||||
|
||||
class Page extends React.Component {
|
||||
state = {
|
||||
visible: false,
|
||||
};
|
||||
|
||||
showModal = () => {
|
||||
this.setState({ visible: true });
|
||||
};
|
||||
|
||||
hideModal = () => {
|
||||
this.setState({ visible: false });
|
||||
};
|
||||
|
||||
render() {
|
||||
const info = () => {
|
||||
Modal.info({
|
||||
title: 'some info',
|
||||
content: 'some info',
|
||||
});
|
||||
};
|
||||
const confirm = () => {
|
||||
Modal.confirm({
|
||||
title: 'some info',
|
||||
content: 'some info',
|
||||
});
|
||||
};
|
||||
return (
|
||||
<div className="locale-components">
|
||||
<div className="example">
|
||||
<Pagination defaultCurrent={1} total={50} showSizeChanger />
|
||||
</div>
|
||||
<div className="example">
|
||||
<Select showSearch style={{ width: 200 }}>
|
||||
<Option value="jack">jack</Option>
|
||||
<Option value="lucy">lucy</Option>
|
||||
</Select>
|
||||
<DatePicker />
|
||||
<TimePicker />
|
||||
<RangePicker style={{ width: 200 }} />
|
||||
</div>
|
||||
<div className="example">
|
||||
<Button type="primary" onClick={this.showModal}>
|
||||
Show Modal
|
||||
</Button>
|
||||
<Button onClick={info}>Show info</Button>
|
||||
<Button onClick={confirm}>Show confirm</Button>
|
||||
<Popconfirm title="Question?">
|
||||
<a href="#">Click to confirm</a>
|
||||
</Popconfirm>
|
||||
</div>
|
||||
<div className="example">
|
||||
<Transfer dataSource={[]} showSearch targetKeys={[]} render={item => item.title} />
|
||||
</div>
|
||||
<div style={{ width: 319, border: '1px solid #d9d9d9', borderRadius: 4 }}>
|
||||
<Calendar fullscreen={false} value={moment()} />
|
||||
</div>
|
||||
<div className="example">
|
||||
<Table dataSource={[]} columns={columns} />
|
||||
</div>
|
||||
<Modal title="Locale Modal" visible={this.state.visible} onCancel={this.hideModal}>
|
||||
<p>Locale Modal</p>
|
||||
</Modal>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class App extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = {
|
||||
locale: null,
|
||||
};
|
||||
}
|
||||
|
||||
changeLocale = e => {
|
||||
const localeValue = e.target.value;
|
||||
this.setState({ locale: localeValue });
|
||||
if (!localeValue) {
|
||||
moment.locale('en');
|
||||
} else {
|
||||
moment.locale('zh-cn');
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const { locale } = this.state;
|
||||
return (
|
||||
<div>
|
||||
<div className="change-locale">
|
||||
<span style={{ marginRight: 16 }}>Change locale of components: </span>
|
||||
<Radio.Group defaultValue={undefined} onChange={this.changeLocale}>
|
||||
<Radio.Button key="en" value={undefined}>
|
||||
English
|
||||
</Radio.Button>
|
||||
<Radio.Button key="cn" value={zhCN}>
|
||||
中文
|
||||
</Radio.Button>
|
||||
</Radio.Group>
|
||||
</div>
|
||||
<ConfigProvider locale={locale}>
|
||||
<Page
|
||||
key={locale ? locale.locale : 'en' /* Have to refresh for production environment */}
|
||||
/>
|
||||
</ConfigProvider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
ReactDOM.render(<App />, mountNode);
|
||||
```
|
||||
|
||||
```css
|
||||
.locale-components {
|
||||
border-top: 1px solid #d9d9d9;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.example {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.example > * {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.change-locale {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
```
|
@ -41,4 +41,5 @@ Some component use dynamic style to support wave effect. You can config `csp` pr
|
||||
| csp | Set [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) config | { nonce: string } | - | 3.13.1 |
|
||||
| renderEmpty | set empty content of components. Ref [Empty](/components/empty/) | Function(componentName: string): ReactNode | - | 3.12.2 |
|
||||
| getPopupContainer | to set the container of the popup element. The default is to create a `div` element in `body`. | Function(triggerNode) | `() => document.body` | 3.11.0 |
|
||||
| locale | language package setting, you can find the packages in [antd/es/locale](http://unpkg.com/antd/es/locale/) | object | 3.21.0 |
|
||||
| prefixCls | set prefix class | string | ant | 3.12.0 |
|
||||
|
@ -2,6 +2,7 @@ import * as React from 'react';
|
||||
import createReactContext from '@ant-design/create-react-context';
|
||||
|
||||
import defaultRenderEmpty, { RenderEmptyHandler } from './renderEmpty';
|
||||
import LocaleProvider, { Locale, ANT_MARK } from '../locale-provider';
|
||||
|
||||
export { RenderEmptyHandler };
|
||||
|
||||
@ -16,6 +17,7 @@ export interface ConfigConsumerProps {
|
||||
renderEmpty: RenderEmptyHandler;
|
||||
csp?: CSPConfig;
|
||||
autoInsertSpaceInButton?: boolean;
|
||||
locale?: Locale;
|
||||
}
|
||||
|
||||
export const configConsumerProps = [
|
||||
@ -25,6 +27,7 @@ export const configConsumerProps = [
|
||||
'renderEmpty',
|
||||
'csp',
|
||||
'autoInsertSpaceInButton',
|
||||
'locale',
|
||||
];
|
||||
|
||||
export interface ConfigProviderProps {
|
||||
@ -34,6 +37,7 @@ export interface ConfigProviderProps {
|
||||
renderEmpty?: RenderEmptyHandler;
|
||||
csp?: CSPConfig;
|
||||
autoInsertSpaceInButton?: boolean;
|
||||
locale?: Locale;
|
||||
}
|
||||
|
||||
const ConfigContext = createReactContext<ConfigConsumerProps>({
|
||||
@ -59,7 +63,14 @@ class ConfigProvider extends React.Component<ConfigProviderProps> {
|
||||
};
|
||||
|
||||
renderProvider = (context: ConfigConsumerProps) => {
|
||||
const { children, getPopupContainer, renderEmpty, csp, autoInsertSpaceInButton } = this.props;
|
||||
const {
|
||||
children,
|
||||
getPopupContainer,
|
||||
renderEmpty,
|
||||
csp,
|
||||
autoInsertSpaceInButton,
|
||||
locale,
|
||||
} = this.props;
|
||||
|
||||
const config: ConfigConsumerProps = {
|
||||
...context,
|
||||
@ -75,7 +86,13 @@ class ConfigProvider extends React.Component<ConfigProviderProps> {
|
||||
config.renderEmpty = renderEmpty;
|
||||
}
|
||||
|
||||
return <ConfigContext.Provider value={config}>{children}</ConfigContext.Provider>;
|
||||
return (
|
||||
<ConfigContext.Provider value={config}>
|
||||
<LocaleProvider locale={locale} _ANT_MARK__={ANT_MARK}>
|
||||
{children}
|
||||
</LocaleProvider>
|
||||
</ConfigContext.Provider>
|
||||
);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
@ -42,4 +42,5 @@ return (
|
||||
| csp | 设置 [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) 配置 | { nonce: string } | - | 3.13.1 |
|
||||
| renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | Function(componentName: string): ReactNode | - | 3.12.2 |
|
||||
| getPopupContainer | 弹出框(Select, Tooltip, Menu 等等)渲染父节点,默认渲染到 body 上。 | Function(triggerNode) | () => document.body | 3.11.0 |
|
||||
| locale | 语言包配置,语言包可到 [antd/es/locale](http://unpkg.com/antd/es/locale/) 目录下寻找 | object | - | 3.21.0 |
|
||||
| prefixCls | 设置统一样式前缀 | string | ant | 3.12.0 |
|
||||
|
@ -21,7 +21,7 @@ There are four kinds of picker:
|
||||
|
||||
### Localization
|
||||
|
||||
The default locale is en-US, if you need to use other languages, recommend to use internationalized components provided by us at the entrance. Look at: [LocaleProvider](http://ant.design/components/locale-provider/).
|
||||
The default locale is en-US, if you need to use other languages, recommend to use internationalized components provided by us at the entrance. Look at: [ConfigProvider](http://ant.design/components/config-provider/).
|
||||
|
||||
If there are special needs (only modifying single component language), Please use the property: local. Example: [default](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json).
|
||||
|
||||
|
@ -22,7 +22,7 @@ subtitle: 日期选择框
|
||||
|
||||
### 国际化配置
|
||||
|
||||
默认配置为 en-US,如果你需要设置其他语言,推荐在入口处使用我们提供的国际化组件,详见:[LocaleProvider 国际化](http://ant.design/components/locale-provider-cn/)。
|
||||
默认配置为 en-US,如果你需要设置其他语言,推荐在入口处使用我们提供的国际化组件,详见:[ConfigProvider 国际化](http://ant.design/components/config-provider-cn/)。
|
||||
|
||||
如有特殊需求(仅修改单一组件的语言),请使用 locale 参数,参考:[默认配置](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json)。
|
||||
|
||||
|
19
components/date-picker/locale/ms_MY.tsx
Normal file
19
components/date-picker/locale/ms_MY.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import CalendarLocale from 'rc-calendar/lib/locale/ms_MY';
|
||||
import TimePickerLocale from '../../time-picker/locale/ms_MY';
|
||||
|
||||
// Merge into a locale object
|
||||
const locale = {
|
||||
lang: {
|
||||
placeholder: 'Pilih tarikh',
|
||||
rangePlaceholder: ['Tarikh mula', 'Tarikh akhir'],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
...TimePickerLocale,
|
||||
},
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||
|
||||
export default locale;
|
72
components/descriptions/Col.tsx
Normal file
72
components/descriptions/Col.tsx
Normal file
@ -0,0 +1,72 @@
|
||||
import * as React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { DescriptionsItemProps } from './index';
|
||||
|
||||
interface ColProps {
|
||||
child: React.ReactElement<DescriptionsItemProps>;
|
||||
bordered: boolean;
|
||||
colon: boolean;
|
||||
type?: 'label' | 'content';
|
||||
layout?: 'horizontal' | 'vertical';
|
||||
}
|
||||
|
||||
const Col: React.SFC<ColProps> = props => {
|
||||
const { child, bordered, colon, type, layout } = props;
|
||||
const { prefixCls, label, className, children, span = 1 } = child.props;
|
||||
const labelProps: any = {
|
||||
className: classNames(`${prefixCls}-item-label`, className, {
|
||||
[`${prefixCls}-item-colon`]: colon,
|
||||
[`${prefixCls}-item-no-label`]: !label,
|
||||
}),
|
||||
key: 'label',
|
||||
};
|
||||
if (layout === 'vertical') {
|
||||
labelProps.colSpan = span * 2 - 1;
|
||||
}
|
||||
|
||||
if (bordered) {
|
||||
if (type === 'label') {
|
||||
return <th {...labelProps}>{label}</th>;
|
||||
}
|
||||
return (
|
||||
<td
|
||||
className={classNames(`${prefixCls}-item-content`, className)}
|
||||
key="content"
|
||||
colSpan={span * 2 - 1}
|
||||
>
|
||||
{children}
|
||||
</td>
|
||||
);
|
||||
}
|
||||
if (layout === 'vertical') {
|
||||
if (type === 'content') {
|
||||
return (
|
||||
<td colSpan={span} className={classNames(`${prefixCls}-item`, className)}>
|
||||
<span className={`${prefixCls}-item-content`} key="content">
|
||||
{children}
|
||||
</span>
|
||||
</td>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<td colSpan={span} className={classNames(`${prefixCls}-item`, className)}>
|
||||
<span
|
||||
className={classNames(`${prefixCls}-item-label`, { [`${prefixCls}-item-colon`]: colon })}
|
||||
key="label"
|
||||
>
|
||||
{label}
|
||||
</span>
|
||||
</td>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<td colSpan={span} className={classNames(`${prefixCls}-item`, className)}>
|
||||
<span {...labelProps}>{label}</span>
|
||||
<span className={`${prefixCls}-item-content`} key="content">
|
||||
{children}
|
||||
</span>
|
||||
</td>
|
||||
);
|
||||
};
|
||||
|
||||
export default Col;
|
@ -22,7 +22,7 @@ exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
UserName
|
||||
</span>
|
||||
@ -37,7 +37,7 @@ exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Telephone
|
||||
</span>
|
||||
@ -52,7 +52,7 @@ exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Live
|
||||
</span>
|
||||
@ -71,7 +71,7 @@ exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Remark
|
||||
</span>
|
||||
@ -86,7 +86,7 @@ exports[`renders ./components/descriptions/demo/basic.md correctly 1`] = `
|
||||
colspan="2"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Address
|
||||
</span>
|
||||
@ -121,7 +121,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Product
|
||||
</th>
|
||||
@ -132,7 +132,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
Cloud Database
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Billing Mode
|
||||
</th>
|
||||
@ -143,7 +143,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
Prepaid
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Automatic Renewal
|
||||
</th>
|
||||
@ -158,7 +158,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Order time
|
||||
</th>
|
||||
@ -169,7 +169,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
2018-04-24 18:00:00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Usage Time
|
||||
</th>
|
||||
@ -184,7 +184,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Status
|
||||
</th>
|
||||
@ -210,7 +210,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Negotiated Amount
|
||||
</th>
|
||||
@ -221,7 +221,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
$80.00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Discount
|
||||
</th>
|
||||
@ -232,7 +232,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
$20.00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Official Receipts
|
||||
</th>
|
||||
@ -247,7 +247,7 @@ exports[`renders ./components/descriptions/demo/border.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Config Info
|
||||
</th>
|
||||
@ -294,7 +294,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Product
|
||||
</th>
|
||||
@ -305,7 +305,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
Cloud Database
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Billing
|
||||
</th>
|
||||
@ -316,7 +316,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
Prepaid
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
time
|
||||
</th>
|
||||
@ -331,7 +331,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Amount
|
||||
</th>
|
||||
@ -342,7 +342,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
$80.00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Discount
|
||||
</th>
|
||||
@ -353,7 +353,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
$20.00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Official
|
||||
</th>
|
||||
@ -368,7 +368,7 @@ exports[`renders ./components/descriptions/demo/responsive.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Config Info
|
||||
</th>
|
||||
@ -479,7 +479,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Product
|
||||
</th>
|
||||
@ -490,7 +490,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
Cloud Database
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Billing
|
||||
</th>
|
||||
@ -501,7 +501,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
Prepaid
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
time
|
||||
</th>
|
||||
@ -516,7 +516,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Amount
|
||||
</th>
|
||||
@ -527,7 +527,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
$80.00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Discount
|
||||
</th>
|
||||
@ -538,7 +538,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
$20.00
|
||||
</td>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Official
|
||||
</th>
|
||||
@ -553,7 +553,7 @@ exports[`renders ./components/descriptions/demo/size.md correctly 1`] = `
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<th
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Config Info
|
||||
</th>
|
||||
@ -604,7 +604,7 @@ exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
UserName
|
||||
</span>
|
||||
@ -614,7 +614,7 @@ exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Telephone
|
||||
</span>
|
||||
@ -624,7 +624,7 @@ exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Live
|
||||
</span>
|
||||
@ -672,7 +672,7 @@ exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
|
||||
colspan="1"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Remark
|
||||
</span>
|
||||
@ -682,7 +682,7 @@ exports[`renders ./components/descriptions/demo/vertical.md correctly 1`] = `
|
||||
colspan="2"
|
||||
>
|
||||
<span
|
||||
class="ant-descriptions-item-label"
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
>
|
||||
Address
|
||||
</span>
|
||||
@ -735,24 +735,24 @@ exports[`renders ./components/descriptions/demo/vertical-border.md correctly 1`]
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Product
|
||||
</td>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
</th>
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Billing Mode
|
||||
</td>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
</th>
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Automatic Renewal
|
||||
</td>
|
||||
</th>
|
||||
</tr>
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
@ -779,18 +779,18 @@ exports[`renders ./components/descriptions/demo/vertical-border.md correctly 1`]
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Order time
|
||||
</td>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
</th>
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="5"
|
||||
>
|
||||
Usage Time
|
||||
</td>
|
||||
</th>
|
||||
</tr>
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
@ -811,12 +811,12 @@ exports[`renders ./components/descriptions/demo/vertical-border.md correctly 1`]
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="5"
|
||||
>
|
||||
Status
|
||||
</td>
|
||||
</th>
|
||||
</tr>
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
@ -842,24 +842,24 @@ exports[`renders ./components/descriptions/demo/vertical-border.md correctly 1`]
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Negotiated Amount
|
||||
</td>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
</th>
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Discount
|
||||
</td>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
</th>
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="1"
|
||||
>
|
||||
Official Receipts
|
||||
</td>
|
||||
</th>
|
||||
</tr>
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
@ -886,12 +886,12 @@ exports[`renders ./components/descriptions/demo/vertical-border.md correctly 1`]
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
>
|
||||
<td
|
||||
class="ant-descriptions-item-label"
|
||||
<th
|
||||
class="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
colspan="5"
|
||||
>
|
||||
Config Info
|
||||
</td>
|
||||
</th>
|
||||
</tr>
|
||||
<tr
|
||||
class="ant-descriptions-row"
|
||||
|
@ -1,5 +1,74 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Descriptions Descriptions support colon 1`] = `
|
||||
<Descriptions
|
||||
colon={false}
|
||||
column={
|
||||
Object {
|
||||
"lg": 3,
|
||||
"md": 3,
|
||||
"sm": 2,
|
||||
"xl": 3,
|
||||
"xs": 1,
|
||||
"xxl": 3,
|
||||
}
|
||||
}
|
||||
size="default"
|
||||
>
|
||||
<div
|
||||
className="ant-descriptions"
|
||||
>
|
||||
<div
|
||||
className="ant-descriptions-view"
|
||||
>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="0"
|
||||
>
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Product"
|
||||
prefixCls="ant-descriptions"
|
||||
span={1}
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={false}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</Descriptions>
|
||||
`;
|
||||
|
||||
exports[`Descriptions Descriptions support style 1`] = `
|
||||
<Descriptions
|
||||
column={
|
||||
@ -36,21 +105,37 @@ exports[`Descriptions Descriptions support style 1`] = `
|
||||
className="ant-descriptions-row"
|
||||
key="0"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
prefixCls="ant-descriptions"
|
||||
span={1}
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-no-label"
|
||||
key="label"
|
||||
/>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon ant-descriptions-item-no-label"
|
||||
key="label"
|
||||
/>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -85,23 +170,41 @@ exports[`Descriptions Descriptions.Item support className 1`] = `
|
||||
className="ant-descriptions-row"
|
||||
key="0"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item my-class"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
className="my-class"
|
||||
label="Product"
|
||||
prefixCls="ant-descriptions"
|
||||
span={1}
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item my-class"
|
||||
colSpan={1}
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label my-class ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -127,81 +230,144 @@ exports[`Descriptions column is number 1`] = `
|
||||
className="ant-descriptions-row"
|
||||
key="0"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
key=".$.0"
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Product"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
key=".$.1"
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Billing"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Prepaid
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-1"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Billing
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Prepaid
|
||||
</span>
|
||||
</td>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Billing
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Prepaid
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="time"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
18:00:00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-2"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
time
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
18:00:00
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
time
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
18:00:00
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="1"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={3}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Amount"
|
||||
prefixCls="ant-descriptions"
|
||||
span={3}
|
||||
>
|
||||
$80.00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={3}
|
||||
>
|
||||
Amount
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
$80.00
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Amount
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
$80.00
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -237,129 +403,259 @@ exports[`Descriptions vertical layout 1`] = `
|
||||
className="ant-descriptions-row"
|
||||
key="label-0"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Product"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="vertical"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="content-0"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Product"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="content-0"
|
||||
layout="vertical"
|
||||
type="content"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="label-1"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Billing"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Prepaid
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="vertical"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Billing
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Billing
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="content-1"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Billing"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Prepaid
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="content-0"
|
||||
layout="vertical"
|
||||
type="content"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Prepaid
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Prepaid
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="label-2"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="time"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
18:00:00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="vertical"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
time
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
time
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="content-2"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="time"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
18:00:00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="content-0"
|
||||
layout="vertical"
|
||||
type="content"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
18:00:00
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
18:00:00
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="label-3"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Amount"
|
||||
prefixCls="ant-descriptions"
|
||||
span={1}
|
||||
>
|
||||
$80.00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="vertical"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Amount
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Amount
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="content-3"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Amount"
|
||||
prefixCls="ant-descriptions"
|
||||
span={1}
|
||||
>
|
||||
$80.00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="content-0"
|
||||
layout="vertical"
|
||||
type="content"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
$80.00
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
$80.00
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -394,89 +690,154 @@ exports[`Descriptions when item is rendered conditionally 1`] = `
|
||||
className="ant-descriptions-row"
|
||||
key="0"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Product"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Cloud Database
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Product
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Cloud Database
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="1"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Billing"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
Prepaid
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Billing
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Prepaid
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Billing
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
Prepaid
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="2"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="time"
|
||||
prefixCls="ant-descriptions"
|
||||
>
|
||||
18:00:00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
time
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
18:00:00
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
time
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
18:00:00
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
<tr
|
||||
className="ant-descriptions-row"
|
||||
key="3"
|
||||
>
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
<Col
|
||||
bordered={false}
|
||||
child={
|
||||
<DescriptionsItem
|
||||
label="Amount"
|
||||
prefixCls="ant-descriptions"
|
||||
span={1}
|
||||
>
|
||||
$80.00
|
||||
</DescriptionsItem>
|
||||
}
|
||||
colon={true}
|
||||
key="label-0"
|
||||
layout="horizontal"
|
||||
type="label"
|
||||
>
|
||||
<span
|
||||
className="ant-descriptions-item-label"
|
||||
key="label"
|
||||
<td
|
||||
className="ant-descriptions-item"
|
||||
colSpan={1}
|
||||
>
|
||||
Amount
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
$80.00
|
||||
</span>
|
||||
</td>
|
||||
<span
|
||||
className="ant-descriptions-item-label ant-descriptions-item-colon"
|
||||
key="label"
|
||||
>
|
||||
Amount
|
||||
</span>
|
||||
<span
|
||||
className="ant-descriptions-item-content"
|
||||
key="content"
|
||||
>
|
||||
$80.00
|
||||
</span>
|
||||
</td>
|
||||
</Col>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -152,6 +152,15 @@ describe('Descriptions', () => {
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('Descriptions support colon', () => {
|
||||
const wrapper = mount(
|
||||
<Descriptions colon={false}>
|
||||
<Descriptions.Item label="Product">Cloud Database</Descriptions.Item>
|
||||
</Descriptions>,
|
||||
);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('Descriptions support style', () => {
|
||||
const wrapper = mount(
|
||||
<Descriptions style={{ backgroundColor: '#e8e8e8' }}>
|
||||
|
@ -22,6 +22,7 @@ Commonly displayed on the details page.
|
||||
| column | the number of `DescriptionItems` in a row,could be a number or a object like `{ xs: 8, sm: 16, md: 24}`,(Only set `bordered={true}` to take effect) | number | 3 | 3.19.0 |
|
||||
| size | set the size of the list. Can be set to `middle`,`small`, or not filled | `default | middle | small` | false | 3.19.0 |
|
||||
| layout | Define description layout | `horizontal | vertical` | `horizontal` | 3.19.8 |
|
||||
| colon | change default props `colon` value of `Descriptions.Item` | boolean | true | 3.21.0 |
|
||||
|
||||
### DescriptionItem
|
||||
|
||||
|
@ -7,6 +7,7 @@ import ResponsiveObserve, {
|
||||
responsiveArray,
|
||||
} from '../_util/responsiveObserve';
|
||||
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
||||
import Col from './Col';
|
||||
|
||||
export interface DescriptionsItemProps {
|
||||
prefixCls?: string;
|
||||
@ -29,6 +30,7 @@ export interface DescriptionsProps {
|
||||
title?: React.ReactNode;
|
||||
column?: number | Partial<Record<Breakpoint, number>>;
|
||||
layout?: 'horizontal' | 'vertical';
|
||||
colon?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -69,96 +71,13 @@ const generateChildrenRows = (
|
||||
return childrenArray;
|
||||
};
|
||||
|
||||
/**
|
||||
* This code is for handling react15 does not support returning an array,
|
||||
* It can convert a children into th and td
|
||||
* @param child DescriptionsItem
|
||||
* @returns
|
||||
* <>
|
||||
* <th>{DescriptionsItem.label}</th>
|
||||
* <td>{DescriptionsItem.children}</td>
|
||||
* </>
|
||||
*/
|
||||
const renderCol = (child: React.ReactElement<DescriptionsItemProps>, bordered: boolean) => {
|
||||
const { prefixCls, label, className, children, span = 1 } = child.props;
|
||||
if (bordered) {
|
||||
return [
|
||||
<th
|
||||
className={classNames(`${prefixCls}-item-label`, className, {
|
||||
[`${prefixCls}-item-no-label`]: !label,
|
||||
})}
|
||||
key="label"
|
||||
>
|
||||
{label}
|
||||
</th>,
|
||||
<td
|
||||
className={classNames(`${prefixCls}-item-content`, className)}
|
||||
key="content"
|
||||
colSpan={span * 2 - 1}
|
||||
>
|
||||
{children}
|
||||
</td>,
|
||||
];
|
||||
}
|
||||
return (
|
||||
<td colSpan={span} className={classNames(`${prefixCls}-item`, className)}>
|
||||
<span
|
||||
className={classNames(`${prefixCls}-item-label`, {
|
||||
[`${prefixCls}-item-no-label`]: !label,
|
||||
})}
|
||||
key="label"
|
||||
>
|
||||
{label}
|
||||
</span>
|
||||
<span className={`${prefixCls}-item-content`} key="content">
|
||||
{children}
|
||||
</span>
|
||||
</td>
|
||||
);
|
||||
};
|
||||
|
||||
const renderLabelCol = (child: React.ReactElement<DescriptionsItemProps>, bordered: boolean) => {
|
||||
const { prefixCls, label, span = 1 } = child.props;
|
||||
if (bordered) {
|
||||
return (
|
||||
<td className={`${prefixCls}-item-label`} key="label" colSpan={span * 2 - 1}>
|
||||
{label}
|
||||
</td>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<td colSpan={span} className={`${prefixCls}-item`}>
|
||||
<span className={`${prefixCls}-item-label`} key="label">
|
||||
{label}
|
||||
</span>
|
||||
</td>
|
||||
);
|
||||
};
|
||||
|
||||
const renderContentCol = (child: React.ReactElement<DescriptionsItemProps>, bordered: boolean) => {
|
||||
const { prefixCls, children, span = 1 } = child.props;
|
||||
if (bordered) {
|
||||
return (
|
||||
<td className={`${prefixCls}-item-content`} key="content" colSpan={span * 2 - 1}>
|
||||
{children}
|
||||
</td>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<td colSpan={span} className={`${prefixCls}-item`}>
|
||||
<span className={`${prefixCls}-item-content`} key="content">
|
||||
{children}
|
||||
</span>
|
||||
</td>
|
||||
);
|
||||
};
|
||||
|
||||
const renderRow = (
|
||||
children: React.ReactElement<DescriptionsItemProps>[],
|
||||
index: number,
|
||||
{ prefixCls, column, isLast }: { prefixCls: string; column: number; isLast: boolean },
|
||||
bordered: boolean,
|
||||
layout: string,
|
||||
layout: 'horizontal' | 'vertical',
|
||||
colon: boolean,
|
||||
) => {
|
||||
// copy children,prevent changes to incoming parameters
|
||||
const childrenArray = [...children];
|
||||
@ -169,41 +88,51 @@ const renderRow = (
|
||||
span,
|
||||
});
|
||||
}
|
||||
childrenArray.push(lastChildren);
|
||||
|
||||
const renderCol = (
|
||||
childrenItem: React.ReactElement<DescriptionsItemProps>,
|
||||
type: 'label' | 'content',
|
||||
idx: number,
|
||||
) => (
|
||||
<Col
|
||||
child={childrenItem}
|
||||
bordered={bordered}
|
||||
colon={colon}
|
||||
type={type}
|
||||
key={`${type}-${idx}`}
|
||||
layout={layout}
|
||||
/>
|
||||
);
|
||||
|
||||
const cloneChildren: JSX.Element[] = [];
|
||||
const cloneContentChildren: JSX.Element[] = [];
|
||||
React.Children.forEach(
|
||||
childrenArray,
|
||||
(childrenItem: React.ReactElement<DescriptionsItemProps>, idx: number) => {
|
||||
cloneChildren.push(renderCol(childrenItem, 'label', idx));
|
||||
if (layout === 'vertical') {
|
||||
cloneContentChildren.push(renderCol(childrenItem, 'content', idx));
|
||||
} else if (bordered) {
|
||||
cloneChildren.push(renderCol(childrenItem, 'content', idx));
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
if (layout === 'vertical') {
|
||||
const cloneLabelChildren = React.Children.map(
|
||||
childrenArray,
|
||||
(childrenItem: React.ReactElement<DescriptionsItemProps>) => {
|
||||
return renderLabelCol(childrenItem, bordered);
|
||||
},
|
||||
);
|
||||
const cloneContentChildren = React.Children.map(
|
||||
childrenArray,
|
||||
(childrenItem: React.ReactElement<DescriptionsItemProps>) => {
|
||||
return renderContentCol(childrenItem, bordered);
|
||||
},
|
||||
);
|
||||
return [
|
||||
<tr className={`${prefixCls}-row`} key={`label-${index}`}>
|
||||
{cloneLabelChildren}
|
||||
{renderLabelCol(lastChildren, bordered)}
|
||||
{cloneChildren}
|
||||
</tr>,
|
||||
<tr className={`${prefixCls}-row`} key={`content-${index}`}>
|
||||
{cloneContentChildren}
|
||||
{renderContentCol(lastChildren, bordered)}
|
||||
</tr>,
|
||||
];
|
||||
}
|
||||
const cloneChildren = React.Children.map(
|
||||
childrenArray,
|
||||
(childrenItem: React.ReactElement<DescriptionsItemProps>) => {
|
||||
return renderCol(childrenItem, bordered);
|
||||
},
|
||||
);
|
||||
|
||||
return (
|
||||
<tr className={`${prefixCls}-row`} key={index}>
|
||||
{cloneChildren}
|
||||
{renderCol(lastChildren, bordered)}
|
||||
</tr>
|
||||
);
|
||||
};
|
||||
@ -281,6 +210,7 @@ class Descriptions extends React.Component<
|
||||
children,
|
||||
bordered = false,
|
||||
layout = 'horizontal',
|
||||
colon = true,
|
||||
style,
|
||||
} = this.props;
|
||||
const prefixCls = getPrefixCls('descriptions', customizePrefixCls);
|
||||
@ -324,6 +254,7 @@ class Descriptions extends React.Component<
|
||||
},
|
||||
bordered,
|
||||
layout,
|
||||
colon,
|
||||
),
|
||||
)}
|
||||
</tbody>
|
||||
|
@ -23,6 +23,7 @@ cols: 1
|
||||
| column | 一行的 `DescriptionItems` 数量,可以写成像素值或支持响应式的对象写法 `{ xs: 8, sm: 16, md: 24}` | number | 3 | 3.19.0 |
|
||||
| size | 设置列表的大小。可以设置为 `middle` 、`small`, 或不填(只有设置 `bordered={true}` 生效) | `default | middle | small` | false | 3.19.0 |
|
||||
| layout | 描述布局 | `horizontal | vertical` | `horizontal` | 3.19.8 |
|
||||
| colon | 配置 `Descriptions.Item` 的 `colon` 的默认值 | boolean | true | 3.21.0 |
|
||||
|
||||
### DescriptionItem
|
||||
|
||||
|
@ -47,6 +47,12 @@
|
||||
position: relative;
|
||||
top: -0.5px;
|
||||
margin: 0 8px 0 2px;
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
|
||||
&-item-colon {
|
||||
&::after {
|
||||
content: ':';
|
||||
}
|
||||
}
|
||||
|
@ -114,6 +114,7 @@
|
||||
|
||||
&-right {
|
||||
left: -@layout-zero-trigger-width;
|
||||
border-radius: @border-radius-base 0 0 @border-radius-base;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,7 @@ import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import moment from 'moment';
|
||||
import MockDate from 'mockdate';
|
||||
import { resetWarned } from '../../_util/warning';
|
||||
import {
|
||||
LocaleProvider,
|
||||
Pagination,
|
||||
@ -41,6 +42,7 @@ import knIN from '../kn_IN';
|
||||
import koKR from '../ko_KR';
|
||||
import kuIQ from '../ku_IQ';
|
||||
import mnMN from '../mn_MN';
|
||||
import msMY from '../ms_MY';
|
||||
import nbNO from '../nb_NO';
|
||||
import neNP from '../ne-NP';
|
||||
import nlBE from '../nl_BE';
|
||||
@ -87,6 +89,7 @@ const locales = [
|
||||
knIN,
|
||||
koKR,
|
||||
kuIQ,
|
||||
msMY,
|
||||
mnMN,
|
||||
nbNO,
|
||||
neNP,
|
||||
@ -229,4 +232,20 @@ describe('Locale Provider', () => {
|
||||
wrapper.setState({ locale: null });
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('warning if use LocaleProvider', () => {
|
||||
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
|
||||
resetWarned();
|
||||
|
||||
mount(
|
||||
<LocaleProvider locale={{}}>
|
||||
<div />
|
||||
</LocaleProvider>,
|
||||
);
|
||||
expect(errorSpy).toHaveBeenCalledWith(
|
||||
'Warning: [antd: LocaleProvider] `LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale',
|
||||
);
|
||||
|
||||
errorSpy.mockRestore();
|
||||
});
|
||||
});
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ar_EG';
|
||||
import DatePicker from '../date-picker/locale/ar_EG';
|
||||
import TimePicker from '../time-picker/locale/ar_EG';
|
||||
import Calendar from '../calendar/locale/ar_EG';
|
||||
import locale from '../locale/ar_EG';
|
||||
|
||||
export default {
|
||||
locale: 'ar',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'الفلاتر',
|
||||
filterConfirm: 'تأكيد',
|
||||
filterReset: 'إعادة ضبط',
|
||||
selectAll: 'اختيار الكل',
|
||||
selectInvert: 'إلغاء الاختيار',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'تأكيد',
|
||||
cancelText: 'إلغاء',
|
||||
justOkText: 'تأكيد',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'تأكيد',
|
||||
cancelText: 'إلغاء',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'ابحث هنا',
|
||||
itemUnit: 'عنصر',
|
||||
itemsUnit: 'عناصر',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'جاري الرفع...',
|
||||
removeFile: 'احذف الملف',
|
||||
uploadError: 'مشكلة فى الرفع',
|
||||
previewFile: 'استعرض الملف',
|
||||
},
|
||||
Empty: {
|
||||
description: 'لا توجد بيانات',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/bg_BG';
|
||||
import DatePicker from '../date-picker/locale/bg_BG';
|
||||
import TimePicker from '../time-picker/locale/bg_BG';
|
||||
import Calendar from '../calendar/locale/bg_BG';
|
||||
import locale from '../locale/bg_BG';
|
||||
|
||||
export default {
|
||||
locale: 'bg',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Филтриране',
|
||||
filterConfirm: 'Добре',
|
||||
filterReset: 'Нулриане',
|
||||
selectAll: 'Избор на текуща страница',
|
||||
selectInvert: 'Обръщане',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Добре',
|
||||
cancelText: 'Отказ',
|
||||
justOkText: 'Добре',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Добре',
|
||||
cancelText: 'Отказ',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Търсене',
|
||||
itemUnit: 'избор',
|
||||
itemsUnit: 'избори',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Качване...',
|
||||
removeFile: 'Премахване',
|
||||
uploadError: 'Грешка при качването',
|
||||
previewFile: 'Преглед',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Няма данни',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,34 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ca_ES';
|
||||
import DatePicker from '../date-picker/locale/ca_ES';
|
||||
import TimePicker from '../time-picker/locale/ca_ES';
|
||||
import Calendar from '../calendar/locale/ca_ES';
|
||||
import locale from '../locale/ca_ES';
|
||||
|
||||
export default {
|
||||
locale: 'ca',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrar Menu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Restablir',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel·lar',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel·lar',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Cercar aquí',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Sense dades',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,40 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/cs_CZ';
|
||||
import DatePicker from '../date-picker/locale/cs_CZ';
|
||||
import TimePicker from '../time-picker/locale/cs_CZ';
|
||||
import Calendar from '../calendar/locale/cs_CZ';
|
||||
import locale from '../locale/cs_CZ';
|
||||
|
||||
export default {
|
||||
locale: 'cs',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtr',
|
||||
filterConfirm: 'Potvrdit',
|
||||
filterReset: 'Obnovit',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Ok',
|
||||
cancelText: 'Storno',
|
||||
justOkText: 'Ok',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Ok',
|
||||
cancelText: 'Storno',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Vyhledávání',
|
||||
itemUnit: 'položka',
|
||||
itemsUnit: 'položek',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Nahrávání...',
|
||||
removeFile: 'Odstranit soubor',
|
||||
uploadError: 'Chyba při nahrávání',
|
||||
previewFile: 'Zobrazit soubor',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Žádná data',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/da_DK';
|
||||
import DatePicker from '../date-picker/locale/da_DK';
|
||||
import TimePicker from '../time-picker/locale/da_DK';
|
||||
import Calendar from '../calendar/locale/da_DK';
|
||||
import locale from '../locale/da_DK';
|
||||
|
||||
export default {
|
||||
locale: 'da',
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Pagination,
|
||||
Table: {
|
||||
filterTitle: 'Filtermenu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Nulstil',
|
||||
selectAll: 'Vælg alle',
|
||||
selectInvert: 'Inverter valg',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Afbryd',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Afbryd',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Søg her',
|
||||
itemUnit: 'element',
|
||||
itemsUnit: 'elementer',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploader...',
|
||||
removeFile: 'Fjern fil',
|
||||
uploadError: 'Fejl ved upload',
|
||||
previewFile: 'Forhåndsvisning',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ingen data',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/de_DE';
|
||||
import DatePicker from '../date-picker/locale/de_DE';
|
||||
import TimePicker from '../time-picker/locale/de_DE';
|
||||
import Calendar from '../calendar/locale/de_DE';
|
||||
import locale from '../locale/de_DE';
|
||||
|
||||
export default {
|
||||
locale: 'de',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter-Menü',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Zurücksetzen',
|
||||
selectAll: 'Selektiere Alle',
|
||||
selectInvert: 'Selektion Invertieren',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Abbrechen',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Abbrechen',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Suchen',
|
||||
itemUnit: 'Eintrag',
|
||||
itemsUnit: 'Einträge',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Hochladen...',
|
||||
removeFile: 'Datei entfernen',
|
||||
uploadError: 'Fehler beim Hochladen',
|
||||
previewFile: 'Dateivorschau',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Keine Daten',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,59 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/en_US';
|
||||
import DatePicker from '../date-picker/locale/en_US';
|
||||
import TimePicker from '../time-picker/locale/en_US';
|
||||
import Calendar from '../calendar/locale/en_US';
|
||||
import locale from '../locale/default';
|
||||
|
||||
export default {
|
||||
locale: 'en',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Please select',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filter menu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Select current page',
|
||||
selectInvert: 'Invert current page',
|
||||
sortTitle: 'Sort',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Search here',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploading...',
|
||||
removeFile: 'Remove file',
|
||||
uploadError: 'Upload error',
|
||||
previewFile: 'Preview file',
|
||||
},
|
||||
Empty: {
|
||||
description: 'No Data',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'icon',
|
||||
},
|
||||
Text: {
|
||||
edit: 'edit',
|
||||
copy: 'copy',
|
||||
copied: 'copy success',
|
||||
expand: 'expand',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'back',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/el_GR';
|
||||
import DatePicker from '../date-picker/locale/el_GR';
|
||||
import TimePicker from '../time-picker/locale/el_GR';
|
||||
import Calendar from '../calendar/locale/el_GR';
|
||||
import locale from '../locale/el_GR';
|
||||
|
||||
export default {
|
||||
locale: 'el',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Μενού φίλτρων',
|
||||
filterConfirm: 'ΟΚ',
|
||||
filterReset: 'Επαναφορά',
|
||||
selectAll: 'Επιλογή τρέχουσας σελίδας',
|
||||
selectInvert: 'Αντιστροφή τρέχουσας σελίδας',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'ΟΚ',
|
||||
cancelText: 'Άκυρο',
|
||||
justOkText: 'ΟΚ',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'ΟΚ',
|
||||
cancelText: 'Άκυρο',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Αναζήτηση',
|
||||
itemUnit: 'αντικείμενο',
|
||||
itemsUnit: 'αντικείμενα',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Μεταφόρτωση...',
|
||||
removeFile: 'Αφαίρεση αρχείου',
|
||||
uploadError: 'Σφάλμα μεταφόρτωσης',
|
||||
previewFile: 'Προεπισκόπηση αρχείου',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Δεν υπάρχουν δεδομένα',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/en_GB';
|
||||
import DatePicker from '../date-picker/locale/en_GB';
|
||||
import TimePicker from '../time-picker/locale/en_GB';
|
||||
import Calendar from '../calendar/locale/en_GB';
|
||||
import locale from '../locale/en_GB';
|
||||
|
||||
export default {
|
||||
locale: 'en-gb',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter menu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Select current page',
|
||||
selectInvert: 'Invert current page',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Search here',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploading...',
|
||||
removeFile: 'Remove file',
|
||||
uploadError: 'Upload error',
|
||||
previewFile: 'Preview file',
|
||||
},
|
||||
Empty: {
|
||||
description: 'No data',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,3 +1,3 @@
|
||||
import defaultLocale from './default';
|
||||
import locale from '../locale/en_US';
|
||||
|
||||
export default defaultLocale;
|
||||
export default locale;
|
||||
|
@ -1,58 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/es_ES';
|
||||
import DatePicker from '../date-picker/locale/es_ES';
|
||||
import TimePicker from '../time-picker/locale/es_ES';
|
||||
import Calendar from '../calendar/locale/es_ES';
|
||||
import locale from '../locale/es_ES';
|
||||
|
||||
export default {
|
||||
locale: 'es',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Seleccione',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filtrar menú',
|
||||
filterConfirm: 'Aceptar',
|
||||
filterReset: 'Reiniciar',
|
||||
selectAll: 'Seleccionar todo',
|
||||
selectInvert: 'Invertir selección',
|
||||
sortTitle: 'Ordenar',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Aceptar',
|
||||
cancelText: 'Cancelar',
|
||||
justOkText: 'Aceptar',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Aceptar',
|
||||
cancelText: 'Cancelar',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Buscar aquí',
|
||||
itemUnit: 'elemento',
|
||||
itemsUnit: 'elementos',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Subiendo...',
|
||||
removeFile: 'Eliminar archivo',
|
||||
uploadError: 'Error al subir el archivo',
|
||||
previewFile: 'Vista previa',
|
||||
},
|
||||
Empty: {
|
||||
description: 'No hay datos',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'ícono',
|
||||
},
|
||||
Text: {
|
||||
edit: 'editar',
|
||||
copy: 'copiar',
|
||||
copied: 'copiado',
|
||||
expand: 'expandir',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'volver',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/et_EE';
|
||||
import DatePicker from '../date-picker/locale/et_EE';
|
||||
import TimePicker from '../time-picker/locale/et_EE';
|
||||
import Calendar from '../calendar/locale/et_EE';
|
||||
import locale from '../locale/et_EE';
|
||||
|
||||
export default {
|
||||
locale: 'et',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtri menüü',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Nulli',
|
||||
selectAll: 'Vali kõik',
|
||||
selectInvert: 'Inverteeri valik',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Tühista',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Tühista',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Otsi siit',
|
||||
itemUnit: 'kogus',
|
||||
itemsUnit: 'kogus',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Üleslaadimine...',
|
||||
removeFile: 'Eemalda fail',
|
||||
uploadError: 'Üleslaadimise tõrge',
|
||||
previewFile: 'Faili eelvaade',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Andmed puuduvad',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fa_IR';
|
||||
import DatePicker from '../date-picker/locale/fa_IR';
|
||||
import TimePicker from '../time-picker/locale/fa_IR';
|
||||
import Calendar from '../calendar/locale/fa_IR';
|
||||
import locale from '../locale/fa_IR';
|
||||
|
||||
export default {
|
||||
locale: 'fa',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'منوی فیلتر',
|
||||
filterConfirm: 'تایید',
|
||||
filterReset: 'پاک کردن',
|
||||
selectAll: 'انتخاب صفحهی کنونی',
|
||||
selectInvert: 'معکوس کردن انتخابها در صفحه ی کنونی',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'تایید',
|
||||
cancelText: 'لغو',
|
||||
justOkText: 'تایید',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'تایید',
|
||||
cancelText: 'لغو',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'جستجو',
|
||||
itemUnit: '',
|
||||
itemsUnit: '',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'در حال آپلود...',
|
||||
removeFile: 'حذف فایل',
|
||||
uploadError: 'خطا در آپلود',
|
||||
previewFile: 'مشاهدهی فایل',
|
||||
},
|
||||
Empty: {
|
||||
description: 'دادهای موجود نیست',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,43 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fi_FI';
|
||||
import DatePicker from '../date-picker/locale/fi_FI';
|
||||
import TimePicker from '../time-picker/locale/fi_FI';
|
||||
import Calendar from '../calendar/locale/fi_FI';
|
||||
import locale from '../locale/fi_FI';
|
||||
|
||||
export default {
|
||||
locale: 'fi',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Suodatus valikko',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Tyhjennä',
|
||||
selectAll: 'Valitse kaikki',
|
||||
selectInvert: 'Valitse päinvastoin',
|
||||
sortTitle: 'Lajittele',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Peruuta',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Peruuta',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Etsi täältä',
|
||||
itemUnit: 'kohde',
|
||||
itemsUnit: 'kohdetta',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Lähetetään...',
|
||||
removeFile: 'Poista tiedosto',
|
||||
uploadError: 'Virhe lähetyksessä',
|
||||
previewFile: 'Esikatsele tiedostoa',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ei kohteita',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,34 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fr_BE';
|
||||
import DatePicker from '../date-picker/locale/fr_BE';
|
||||
import TimePicker from '../time-picker/locale/fr_BE';
|
||||
import Calendar from '../calendar/locale/fr_BE';
|
||||
import locale from '../locale/fr_BE';
|
||||
|
||||
export default {
|
||||
locale: 'fr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrer',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Réinitialiser',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Recherche',
|
||||
itemUnit: 'élément',
|
||||
itemsUnit: 'éléments',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Aucune donnée',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,34 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fr_FR';
|
||||
import DatePicker from '../date-picker/locale/fr_FR';
|
||||
import TimePicker from '../time-picker/locale/fr_FR';
|
||||
import Calendar from '../calendar/locale/fr_FR';
|
||||
import locale from '../locale/fr_FR';
|
||||
|
||||
export default {
|
||||
locale: 'fr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrer',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Réinitialiser',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Recherche',
|
||||
itemUnit: 'élément',
|
||||
itemsUnit: 'éléments',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Aucune donnée',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/he_IL';
|
||||
import DatePicker from '../date-picker/locale/he_IL';
|
||||
import TimePicker from '../time-picker/locale/he_IL';
|
||||
import Calendar from '../calendar/locale/he_IL';
|
||||
import locale from '../locale/he_IL';
|
||||
|
||||
export default {
|
||||
locale: 'he',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'תפריט סינון',
|
||||
filterConfirm: 'אישור',
|
||||
filterReset: 'איפוס',
|
||||
selectAll: 'בחר הכל',
|
||||
selectInvert: 'הפוך בחירה',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'אישור',
|
||||
cancelText: 'ביטול',
|
||||
justOkText: 'אישור',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'אישור',
|
||||
cancelText: 'ביטול',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'חפש כאן',
|
||||
itemUnit: 'פריט',
|
||||
itemsUnit: 'פריטים',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'מעלה...',
|
||||
removeFile: 'הסר קובץ',
|
||||
uploadError: 'שגיאת העלאה',
|
||||
previewFile: 'הצג קובץ',
|
||||
},
|
||||
Empty: {
|
||||
description: 'אין מידע',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,50 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hi_IN';
|
||||
import DatePicker from '../date-picker/locale/hi_IN';
|
||||
import TimePicker from '../time-picker/locale/hi_IN';
|
||||
import Calendar from '../calendar/locale/hi_IN';
|
||||
import locale from '../locale/hi_IN';
|
||||
|
||||
export default {
|
||||
locale: 'hi',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
// locales for all comoponents
|
||||
global: {
|
||||
placeholder: 'कृपया चुनें',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'सूची बंद करें',
|
||||
filterConfirm: 'अच्छी तरह से',
|
||||
filterReset: 'रीसेट',
|
||||
emptyText: 'कोई जानकारी नहीं',
|
||||
selectAll: 'वर्तमान पृष्ठ का चयन करें',
|
||||
selectInvert: 'वर्तमान पृष्ठ घुमाएं',
|
||||
sortTitle: 'द्वारा क्रमबद्ध करें',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'अच्छी तरह से',
|
||||
cancelText: 'रद्द करना',
|
||||
justOkText: 'अच्छी तरह से',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'अच्छी तरह से',
|
||||
cancelText: 'रद्द करना',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
notFoundContent: 'नहीं मिला',
|
||||
searchPlaceholder: 'यहां खोजें',
|
||||
itemUnit: 'तत्त्व',
|
||||
itemsUnit: 'विषय-वस्तु',
|
||||
},
|
||||
Select: {
|
||||
notFoundContent: 'नहीं मिला',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'अपलोडिंग...',
|
||||
removeFile: 'फ़ाइल निकालें',
|
||||
uploadError: 'अपलोड में त्रुटि',
|
||||
previewFile: 'फ़ाइल पूर्वावलोकन',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,56 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hr_HR';
|
||||
import DatePicker from '../date-picker/locale/hr_HR';
|
||||
import TimePicker from '../time-picker/locale/hr_HR';
|
||||
import Calendar from '../calendar/locale/hr_HR';
|
||||
import locale from '../locale/hr_HR';
|
||||
|
||||
export default {
|
||||
locale: 'hr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Molimo označite',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filter meni',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Označi trenutnu stranicu',
|
||||
selectInvert: 'Invertiraj trenutnu stranicu',
|
||||
sortTitle: 'Sortiraj',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Odustani',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Odustani',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Pretraži ovdje',
|
||||
itemUnit: 'stavka',
|
||||
itemsUnit: 'stavke',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Upload u tijeku...',
|
||||
removeFile: 'Makni datoteku',
|
||||
uploadError: 'Greška kod uploada',
|
||||
previewFile: 'Pogledaj datoteku',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nema podataka',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'ikona',
|
||||
},
|
||||
Text: {
|
||||
edit: 'uredi',
|
||||
copy: 'kopiraj',
|
||||
copied: 'kopiranje uspješno',
|
||||
expand: 'proširi',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,43 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hu_HU';
|
||||
import DatePicker from '../date-picker/locale/hu_HU';
|
||||
import TimePicker from '../time-picker/locale/hu_HU';
|
||||
import Calendar from '../calendar/locale/hu_HU';
|
||||
import locale from '../locale/hu_HU';
|
||||
|
||||
export default {
|
||||
locale: 'hu',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Szűrők',
|
||||
filterConfirm: 'Alkalmazás',
|
||||
filterReset: 'Visszaállítás',
|
||||
selectAll: 'Jelenlegi oldal kiválasztása',
|
||||
selectInvert: 'Jelenlegi oldal inverze',
|
||||
sortTitle: 'Rendezés',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Alkalmazás',
|
||||
cancelText: 'Visszavonás',
|
||||
justOkText: 'Alkalmazás',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Alkalmazás',
|
||||
cancelText: 'Visszavonás',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Keresés',
|
||||
itemUnit: 'elem',
|
||||
itemsUnit: 'elemek',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Feltöltés...',
|
||||
removeFile: 'Fájl eltávolítása',
|
||||
uploadError: 'Feltöltési hiba',
|
||||
previewFile: 'Fájl előnézet',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nincs adat',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,44 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/id_ID';
|
||||
import DatePicker from '../date-picker/locale/id_ID';
|
||||
import TimePicker from '../time-picker/locale/id_ID';
|
||||
import Calendar from '../calendar/locale/id_ID';
|
||||
import locale from '../locale/id_ID';
|
||||
|
||||
export default {
|
||||
locale: 'id',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Saring',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Hapus',
|
||||
selectAll: 'Pilih semua di halaman ini',
|
||||
selectInvert: 'Balikkan pilihan di halaman ini',
|
||||
sortTitle: 'Urutkan',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Batal',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Batal',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Cari',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'item',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Mengunggah...',
|
||||
removeFile: 'Hapus file',
|
||||
uploadError: 'Kesalahan pengunggahan',
|
||||
previewFile: 'File pratinjau',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Tidak ada data',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,11 +1,11 @@
|
||||
---
|
||||
category: Components
|
||||
type: Other
|
||||
type: Deprecated
|
||||
cols: 1
|
||||
title: LocaleProvider
|
||||
title: LocaleProvider (Deprecated)
|
||||
---
|
||||
|
||||
`LocaleProvider` provides a uniform localization support for built-in text of components.
|
||||
`LocaleProvider` component. Deprecated, please use [ConfigProvider](/components/config-provider) instead.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -3,6 +3,9 @@ import * as PropTypes from 'prop-types';
|
||||
import * as moment from 'moment';
|
||||
import interopDefault from '../_util/interopDefault';
|
||||
import { ModalLocale, changeConfirmLocale } from '../modal/locale';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
export const ANT_MARK = 'internalMark';
|
||||
|
||||
export interface Locale {
|
||||
locale: string;
|
||||
@ -21,6 +24,7 @@ export interface Locale {
|
||||
export interface LocaleProviderProps {
|
||||
locale: Locale;
|
||||
children?: React.ReactNode;
|
||||
_ANT_MARK__?: string;
|
||||
}
|
||||
|
||||
function setMomentLocale(locale: Locale) {
|
||||
@ -48,6 +52,12 @@ export default class LocaleProvider extends React.Component<LocaleProviderProps,
|
||||
super(props);
|
||||
setMomentLocale(props.locale);
|
||||
changeConfirmLocale(props.locale && props.locale.Modal);
|
||||
|
||||
warning(
|
||||
props._ANT_MARK__ === ANT_MARK,
|
||||
'LocaleProvider',
|
||||
'`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale',
|
||||
);
|
||||
}
|
||||
|
||||
getChildContext() {
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
category: Components
|
||||
subtitle: 国际化
|
||||
subtitle: 国际化(废弃)
|
||||
cols: 1
|
||||
type: 其他
|
||||
type: 废弃
|
||||
title: LocaleProvider
|
||||
---
|
||||
|
||||
为组件内建文案提供统一的国际化支持。
|
||||
国际化组件。已废弃,请使用 [ConfigProvider](/components/config-provider) 代替。
|
||||
|
||||
## 使用
|
||||
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/is_IS';
|
||||
import DatePicker from '../date-picker/locale/is_IS';
|
||||
import TimePicker from '../time-picker/locale/is_IS';
|
||||
import Calendar from '../calendar/locale/is_IS';
|
||||
import locale from '../locale/is_IS';
|
||||
|
||||
export default {
|
||||
locale: 'is',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Afmarkanir',
|
||||
filterConfirm: 'Staðfesta',
|
||||
filterReset: 'Núllstilla',
|
||||
selectAll: 'Velja allt',
|
||||
selectInvert: 'Viðsnúa vali',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Áfram',
|
||||
cancelText: 'Hætta við',
|
||||
justOkText: 'Í lagi',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Áfram',
|
||||
cancelText: 'Hætta við',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Leita hér',
|
||||
itemUnit: 'færsla',
|
||||
itemsUnit: 'færslur',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Hleð upp...',
|
||||
removeFile: 'Fjarlægja skrá',
|
||||
uploadError: 'Villa við að hlaða upp',
|
||||
previewFile: 'Forskoða skrá',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Engin gögn',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,55 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/it_IT';
|
||||
import DatePicker from '../date-picker/locale/it_IT';
|
||||
import TimePicker from '../time-picker/locale/it_IT';
|
||||
import Calendar from '../calendar/locale/it_IT';
|
||||
import locale from '../locale/it_IT';
|
||||
|
||||
export default {
|
||||
locale: 'it',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Selezionare',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Menù Filtro',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Seleziona pagina corrente',
|
||||
selectInvert: 'Inverti selezione nella pagina corrente',
|
||||
sortTitle: 'Ordina',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annulla',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annulla',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Cerca qui',
|
||||
itemUnit: 'elemento',
|
||||
itemsUnit: 'elementi',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Caricamento...',
|
||||
removeFile: 'Rimuovi il file',
|
||||
uploadError: 'Errore di caricamento',
|
||||
previewFile: 'Anteprima file',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nessun dato',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'icona',
|
||||
},
|
||||
Text: {
|
||||
edit: 'modifica',
|
||||
copy: 'copia',
|
||||
copied: 'copia effettuata',
|
||||
expand: 'espandi',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ja_JP';
|
||||
import DatePicker from '../date-picker/locale/ja_JP';
|
||||
import TimePicker from '../time-picker/locale/ja_JP';
|
||||
import Calendar from '../calendar/locale/ja_JP';
|
||||
import locale from '../locale/ja_JP';
|
||||
|
||||
export default {
|
||||
locale: 'ja',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'メニューをフィルター',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'リセット',
|
||||
selectAll: 'すべてを選択',
|
||||
selectInvert: '選択を反転',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'キャンセル',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'キャンセル',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'ここを検索',
|
||||
itemUnit: 'アイテム',
|
||||
itemsUnit: 'アイテム',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'アップロード中...',
|
||||
removeFile: 'ファイルを削除',
|
||||
uploadError: 'アップロードエラー',
|
||||
previewFile: 'ファイルをプレビュー',
|
||||
},
|
||||
Empty: {
|
||||
description: 'データがありません',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,50 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/kn_IN';
|
||||
import DatePicker from '../date-picker/locale/kn_IN';
|
||||
import TimePicker from '../time-picker/locale/kn_IN';
|
||||
import Calendar from '../calendar/locale/kn_IN';
|
||||
import locale from '../locale/kn_IN';
|
||||
|
||||
export default {
|
||||
locale: 'kn',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
// locales for all comoponents
|
||||
global: {
|
||||
placeholder: 'ದಯವಿಟ್ಟು ಆರಿಸಿ',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'ಪಟ್ಟಿ ಸೋಸಿ',
|
||||
filterConfirm: 'ಸರಿ',
|
||||
filterReset: 'ಮರುಹೊಂದಿಸಿ',
|
||||
emptyText: 'ಮಾಹಿತಿ ಇಲ್ಲ',
|
||||
selectAll: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ಆಯ್ಕೆಮಾಡಿ',
|
||||
selectInvert: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ತಿರುಗಿಸಿ',
|
||||
sortTitle: 'ವಿಂಗಡಿಸಿ',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'ಸರಿ',
|
||||
cancelText: 'ರದ್ದು',
|
||||
justOkText: 'ಸರಿ',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'ಸರಿ',
|
||||
cancelText: 'ರದ್ದು',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
|
||||
searchPlaceholder: 'ಇಲ್ಲಿ ಹುಡುಕಿ',
|
||||
itemUnit: 'ವಿಷಯ',
|
||||
itemsUnit: 'ವಿಷಯಗಳು',
|
||||
},
|
||||
Select: {
|
||||
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'ಏರಿಸಿ...',
|
||||
removeFile: 'ಫೈಲ್ ತೆಗೆದುಹಾಕಿ',
|
||||
uploadError: 'ಏರಿಸುವ ದೋಷ',
|
||||
previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ko_KR';
|
||||
import DatePicker from '../date-picker/locale/ko_KR';
|
||||
import TimePicker from '../time-picker/locale/ko_KR';
|
||||
import Calendar from '../calendar/locale/ko_KR';
|
||||
import locale from '../locale/ko_KR';
|
||||
|
||||
export default {
|
||||
locale: 'ko',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: '필터 메뉴',
|
||||
filterConfirm: '확인',
|
||||
filterReset: '초기화',
|
||||
selectAll: '모두 선택',
|
||||
selectInvert: '선택 반전',
|
||||
},
|
||||
Modal: {
|
||||
okText: '확인',
|
||||
cancelText: '취소',
|
||||
justOkText: '확인',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: '확인',
|
||||
cancelText: '취소',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: '여기에 검색하세요',
|
||||
itemUnit: '개',
|
||||
itemsUnit: '개',
|
||||
},
|
||||
Upload: {
|
||||
uploading: '업로드 중...',
|
||||
removeFile: '파일 삭제',
|
||||
uploadError: '업로드 실패',
|
||||
previewFile: '파일 미리보기',
|
||||
},
|
||||
Empty: {
|
||||
description: '데이터 없음',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
43
components/locale-provider/ku_IQ.tsx
Executable file → Normal file
43
components/locale-provider/ku_IQ.tsx
Executable file → Normal file
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ku_IQ';
|
||||
import DatePicker from '../date-picker/locale/ku_IQ';
|
||||
import TimePicker from '../time-picker/locale/ku_IQ';
|
||||
import Calendar from '../calendar/locale/ku_IQ';
|
||||
import locale from '../locale/ku_IQ';
|
||||
|
||||
export default {
|
||||
locale: 'ku-iq',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Menuê peldanka',
|
||||
filterConfirm: 'Temam',
|
||||
filterReset: 'Jê bibe',
|
||||
selectAll: 'Hemî hilbijêre',
|
||||
selectInvert: 'Hilbijartinan veguhere',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Temam',
|
||||
cancelText: 'Betal ke',
|
||||
justOkText: 'Temam',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Temam',
|
||||
cancelText: 'Betal ke',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Lêgerîn',
|
||||
itemUnit: 'tişt',
|
||||
itemsUnit: 'tişt',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Bardike...',
|
||||
removeFile: 'Pelê rabike',
|
||||
uploadError: 'Xeta barkirine',
|
||||
previewFile: 'Pelê pêşbibîne',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Agahî tune',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/lv_LV';
|
||||
import DatePicker from '../date-picker/locale/lv_LV';
|
||||
import TimePicker from '../time-picker/locale/lv_LV';
|
||||
import Calendar from '../calendar/locale/lv_LV';
|
||||
import locale from '../locale/lv_LV';
|
||||
|
||||
export default {
|
||||
locale: 'lv',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrēšanas izvēlne',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Atiestatīt',
|
||||
selectAll: 'Atlasiet pašreizējo lapu',
|
||||
selectInvert: 'Pārvērst pašreizējo lapu',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Atcelt',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Atcelt',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Meklēt šeit',
|
||||
itemUnit: 'vienumu',
|
||||
itemsUnit: 'vienumus',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Augšupielāde...',
|
||||
removeFile: 'Noņemt failu',
|
||||
uploadError: 'Augšupielādes kļūda',
|
||||
previewFile: 'Priekšskatiet failu',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nav datu',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/mn_MN';
|
||||
import DatePicker from '../date-picker/locale/mn_MN';
|
||||
import TimePicker from '../time-picker/locale/mn_MN';
|
||||
import Calendar from '../calendar/locale/mn_MN';
|
||||
import locale from '../locale/mn_MN';
|
||||
|
||||
export default {
|
||||
locale: 'mn-mn',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Хайх цэс',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Цэвэрлэх',
|
||||
selectAll: 'Бүгдийг сонгох',
|
||||
selectInvert: 'Бусдыг сонгох',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Цуцлах',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Цуцлах',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Хайх',
|
||||
itemUnit: 'Зүйл',
|
||||
itemsUnit: 'Зүйлүүд',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Хуулж байна...',
|
||||
removeFile: 'Файл устгах',
|
||||
uploadError: 'Хуулахад алдаа гарлаа',
|
||||
previewFile: 'Файлыг түргэн үзэх',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Мэдээлэл байхгүй байна',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
3
components/locale-provider/ms_MY.tsx
Normal file
3
components/locale-provider/ms_MY.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import locale from '../locale/ms_MY';
|
||||
|
||||
export default locale;
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/nb_NO';
|
||||
import DatePicker from '../date-picker/locale/nb_NO';
|
||||
import TimePicker from '../time-picker/locale/nb_NO';
|
||||
import Calendar from '../calendar/locale/nb_NO';
|
||||
import locale from '../locale/nb_NO';
|
||||
|
||||
export default {
|
||||
locale: 'nb',
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Pagination,
|
||||
Table: {
|
||||
filterTitle: 'Filtermeny',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Nullstill',
|
||||
selectAll: 'Velg alle',
|
||||
selectInvert: 'Inverter valg',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Avbryt',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Avbryt',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Søk her',
|
||||
itemUnit: 'element',
|
||||
itemsUnit: 'elementer',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Laster opp...',
|
||||
removeFile: 'Fjern fil',
|
||||
uploadError: 'Feil ved opplastning',
|
||||
previewFile: 'Forhåndsvisning',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ingen data',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,43 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/en_US';
|
||||
import DatePicker from '../date-picker/locale/en_US';
|
||||
import TimePicker from '../time-picker/locale/en_US';
|
||||
import Calendar from '../calendar/locale/en_US';
|
||||
import locale from '../locale/ne_NP';
|
||||
|
||||
export default {
|
||||
locale: 'ne-np',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'फिल्टर मेनु',
|
||||
filterConfirm: 'हो',
|
||||
filterReset: 'रीसेट',
|
||||
selectAll: 'सबै छान्नुुहोस्',
|
||||
selectInvert: 'छनौट उल्टाउनुहोस',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'हो',
|
||||
cancelText: 'होईन',
|
||||
justOkText: 'हो',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'हो',
|
||||
cancelText: 'होईन',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'यहाँ खोज्नुहोस्',
|
||||
itemUnit: 'वस्तु',
|
||||
itemsUnit: 'वस्तुहरू',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'अपलोड गर्दै...',
|
||||
removeFile: 'फाइल हटाउनुहोस्',
|
||||
uploadError: 'अप्लोडमा समस्या भयो',
|
||||
previewFile: 'फाइल पूर्वावलोकन गर्नुहोस्',
|
||||
},
|
||||
Empty: {
|
||||
description: 'डाटा छैन',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
3
components/locale-provider/ne_NP.tsx
Normal file
3
components/locale-provider/ne_NP.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import locale from '../locale/ne_NP';
|
||||
|
||||
export default locale;
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/nl_BE';
|
||||
import DatePicker from '../date-picker/locale/nl_BE';
|
||||
import TimePicker from '../time-picker/locale/nl_BE';
|
||||
import Calendar from '../calendar/locale/nl_BE';
|
||||
import locale from '../locale/nl_BE';
|
||||
|
||||
export default {
|
||||
locale: 'nl-be',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'FilterMenu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Selecteer huidige pagina',
|
||||
selectInvert: 'Selecteer huidige pagina',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuleer',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuleer',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Zoek hier',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploaden...',
|
||||
removeFile: 'Bestand verwijderen',
|
||||
uploadError: 'Upload fout',
|
||||
previewFile: 'Preview bestand',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Geen gegevens',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/nl_NL';
|
||||
import DatePicker from '../date-picker/locale/nl_NL';
|
||||
import TimePicker from '../time-picker/locale/nl_NL';
|
||||
import Calendar from '../calendar/locale/nl_NL';
|
||||
import locale from '../locale/nl_NL';
|
||||
|
||||
export default {
|
||||
locale: 'nl',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filteren',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Selecteer huidige pagina',
|
||||
selectInvert: 'Deselecteer huidige pagina',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuleren',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuleren',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Zoeken',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploaden...',
|
||||
removeFile: 'Verwijder bestand',
|
||||
uploadError: 'Fout tijdens uploaden',
|
||||
previewFile: 'Bekijk bestand',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Geen gegevens',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/pl_PL';
|
||||
import DatePicker from '../date-picker/locale/pl_PL';
|
||||
import TimePicker from '../time-picker/locale/pl_PL';
|
||||
import Calendar from '../calendar/locale/pl_PL';
|
||||
import locale from '../locale/pl_PL';
|
||||
|
||||
export default {
|
||||
locale: 'pl',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Menu filtra',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Wyczyść',
|
||||
selectAll: 'Zaznacz bieżącą stronę',
|
||||
selectInvert: 'Odwróć zaznaczenie',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Anuluj',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Anuluj',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Szukaj',
|
||||
itemUnit: 'obiekt',
|
||||
itemsUnit: 'obiekty',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Wysyłanie...',
|
||||
removeFile: 'Usuń plik',
|
||||
uploadError: 'Błąd wysyłania',
|
||||
previewFile: 'Podejrzyj plik',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Brak danych',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/pt_BR';
|
||||
import DatePicker from '../date-picker/locale/pt_BR';
|
||||
import TimePicker from '../time-picker/locale/pt_BR';
|
||||
import Calendar from '../calendar/locale/pt_BR';
|
||||
import locale from '../locale/pt_BR';
|
||||
|
||||
export default {
|
||||
locale: 'pt-br',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtro',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Resetar',
|
||||
selectAll: 'Selecionar página atual',
|
||||
selectInvert: 'Inverter seleção',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancelar',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancelar',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Procurar',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Enviando...',
|
||||
removeFile: 'Remover arquivo',
|
||||
uploadError: 'Erro no envio',
|
||||
previewFile: 'Visualizar arquivo',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Não há dados',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,43 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/pt_PT';
|
||||
import DatePicker from '../date-picker/locale/pt_PT';
|
||||
import TimePicker from '../time-picker/locale/pt_PT';
|
||||
import Calendar from '../calendar/locale/pt_PT';
|
||||
import locale from '../locale/pt_PT';
|
||||
|
||||
export default {
|
||||
locale: 'pt',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtro',
|
||||
filterConfirm: 'Aplicar',
|
||||
filterReset: 'Reiniciar',
|
||||
selectAll: 'Selecionar página atual',
|
||||
selectInvert: 'Inverter seleção',
|
||||
sortTitle: 'Ordenação',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancelar',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancelar',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Procurar...',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'itens',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'A carregar...',
|
||||
removeFile: 'Remover',
|
||||
uploadError: 'Erro ao carregar',
|
||||
previewFile: 'Pré-visualizar',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Sem resultados',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,52 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ru_RU';
|
||||
import DatePicker from '../date-picker/locale/ru_RU';
|
||||
import TimePicker from '../time-picker/locale/ru_RU';
|
||||
import Calendar from '../calendar/locale/ru_RU';
|
||||
import locale from '../locale/ru_RU';
|
||||
|
||||
export default {
|
||||
locale: 'ru',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Фильтр',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Сбросить',
|
||||
selectAll: 'Выбрать всё',
|
||||
selectInvert: 'Инвертировать выбор',
|
||||
sortTitle: 'Сортировка',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Отмена',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Отмена',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Поиск',
|
||||
itemUnit: 'элем.',
|
||||
itemsUnit: 'элем.',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Загрузка...',
|
||||
removeFile: 'Удалить файл',
|
||||
uploadError: 'При загрузке произошла ошибка',
|
||||
previewFile: 'Предпросмотр файла',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Нет данных',
|
||||
},
|
||||
Text: {
|
||||
edit: 'редактировать',
|
||||
copy: 'копировать',
|
||||
copied: 'скопировано',
|
||||
expand: 'раскрыть',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'назад',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/sk_SK';
|
||||
import DatePicker from '../date-picker/locale/sk_SK';
|
||||
import TimePicker from '../time-picker/locale/sk_SK';
|
||||
import Calendar from '../calendar/locale/sk_SK';
|
||||
import locale from '../locale/sk_SK';
|
||||
|
||||
export default {
|
||||
locale: 'sk',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Obnoviť',
|
||||
selectAll: 'Vybrať všetko',
|
||||
selectInvert: 'Vybrať opačné',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Zrušiť',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Zrušiť',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Vyhľadávanie',
|
||||
itemUnit: 'položka',
|
||||
itemsUnit: 'položiek',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Nahrávanie...',
|
||||
removeFile: 'Odstrániť súbor',
|
||||
uploadError: 'Chyba pri nahrávaní',
|
||||
previewFile: 'Zobraziť súbor',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Žiadne dáta',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/sl_SI';
|
||||
import DatePicker from '../date-picker/locale/sl_SI';
|
||||
import TimePicker from '../time-picker/locale/sl_SI';
|
||||
import Calendar from '../calendar/locale/sl_SI';
|
||||
import locale from '../locale/sl_SI';
|
||||
|
||||
export default {
|
||||
locale: 'sl',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter',
|
||||
filterConfirm: 'Filtriraj',
|
||||
filterReset: 'Pobriši filter',
|
||||
selectAll: 'Izberi vse na trenutni strani',
|
||||
selectInvert: 'Obrni izbor na trenutni strani',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'V redu',
|
||||
cancelText: 'Prekliči',
|
||||
justOkText: 'V redu',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'v redu',
|
||||
cancelText: 'Prekliči',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Išči tukaj',
|
||||
itemUnit: 'Objekt',
|
||||
itemsUnit: 'Objektov',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Nalaganje...',
|
||||
removeFile: 'Odstrani datoteko',
|
||||
uploadError: 'Napaka pri nalaganju',
|
||||
previewFile: 'Predogled datoteke',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ni podatkov',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/sr_RS';
|
||||
import DatePicker from '../date-picker/locale/sr_RS';
|
||||
import TimePicker from '../time-picker/locale/sr_RS';
|
||||
import Calendar from '../calendar/locale/sr_RS';
|
||||
import locale from '../locale/sr_RS';
|
||||
|
||||
export default {
|
||||
locale: 'sr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter',
|
||||
filterConfirm: 'Primeni filter',
|
||||
filterReset: 'Resetuj filter',
|
||||
selectAll: 'Obeleži sve na trenutnoj strani',
|
||||
selectInvert: 'Obrni selekciju na trenutnoj stranici',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'U redu',
|
||||
cancelText: 'Otkaži',
|
||||
justOkText: 'U redu',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'U redu',
|
||||
cancelText: 'Otkaži',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Pretražite ovde',
|
||||
itemUnit: 'stavka',
|
||||
itemsUnit: 'stavki',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Slanje...',
|
||||
removeFile: 'Ukloni fajl',
|
||||
uploadError: 'Greška prilikom slanja',
|
||||
previewFile: 'Pogledaj fajl',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nema podataka',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,34 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/sv_SE';
|
||||
import DatePicker from '../date-picker/locale/sv_SE';
|
||||
import TimePicker from '../time-picker/locale/sv_SE';
|
||||
import Calendar from '../calendar/locale/sv_SE';
|
||||
import locale from '../locale/sv_SE';
|
||||
|
||||
export default {
|
||||
locale: 'sv',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtermeny',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Rensa',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Avbryt',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Avbryt',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Sök',
|
||||
itemUnit: 'element',
|
||||
itemsUnit: 'element',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ingen information',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/th_TH';
|
||||
import DatePicker from '../date-picker/locale/th_TH';
|
||||
import TimePicker from '../time-picker/locale/th_TH';
|
||||
import Calendar from '../calendar/locale/th_TH';
|
||||
import locale from '../locale/th_TH';
|
||||
|
||||
export default {
|
||||
locale: 'th',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'ตัวกรอง',
|
||||
filterConfirm: 'ยืนยัน',
|
||||
filterReset: 'รีเซ็ต',
|
||||
selectAll: 'เลือกทั้งหมดในหน้านี้',
|
||||
selectInvert: 'เลือกสถานะตรงกันข้าม',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'ตกลง',
|
||||
cancelText: 'ยกเลิก',
|
||||
justOkText: 'ตกลง',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'ตกลง',
|
||||
cancelText: 'ยกเลิก',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'ค้นหา',
|
||||
itemUnit: 'ชิ้น',
|
||||
itemsUnit: 'ชิ้น',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'กำลังอัปโหลด...',
|
||||
removeFile: 'ลบไฟล์',
|
||||
uploadError: 'เกิดข้อผิดพลาดในการอัปโหลด',
|
||||
previewFile: 'ดูตัวอย่างไฟล์',
|
||||
},
|
||||
Empty: {
|
||||
description: 'ไม่มีข้อมูล',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,56 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/tr_TR';
|
||||
import DatePicker from '../date-picker/locale/tr_TR';
|
||||
import TimePicker from '../time-picker/locale/tr_TR';
|
||||
import Calendar from '../calendar/locale/tr_TR';
|
||||
import locale from '../locale/tr_TR';
|
||||
|
||||
export default {
|
||||
locale: 'tr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Lütfen seçiniz',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Menü Filtrele',
|
||||
filterConfirm: 'Tamam',
|
||||
filterReset: 'Sıfırla',
|
||||
selectAll: 'Hepsini Seç',
|
||||
selectInvert: 'Tersini Seç',
|
||||
sortTitle: 'Sırala',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Tamam',
|
||||
cancelText: 'İptal',
|
||||
justOkText: 'Tamam',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Tamam',
|
||||
cancelText: 'İptal',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Arama',
|
||||
itemUnit: 'Öğe',
|
||||
itemsUnit: 'Öğeler',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Yükleniyor...',
|
||||
removeFile: `Dosyayı kaldır`,
|
||||
uploadError: 'Yükleme Hatası',
|
||||
previewFile: `Dosyayı Önizle`,
|
||||
},
|
||||
Empty: {
|
||||
description: 'Veri Yok',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'icon',
|
||||
},
|
||||
Text: {
|
||||
edit: 'düzenle',
|
||||
copy: 'kopyala',
|
||||
copied: 'kopyalandı',
|
||||
expand: 'genişlet',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/uk_UA';
|
||||
import DatePicker from '../date-picker/locale/uk_UA';
|
||||
import TimePicker from '../time-picker/locale/uk_UA';
|
||||
import Calendar from '../calendar/locale/uk_UA';
|
||||
import locale from '../locale/uk_UA';
|
||||
|
||||
export default {
|
||||
locale: 'uk',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Фільтрувати',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Скинути',
|
||||
selectAll: 'Обрати всі',
|
||||
selectInvert: 'Інвертувати вибір',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Гаразд',
|
||||
cancelText: 'Скасувати',
|
||||
justOkText: 'Гаразд',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Гаразд',
|
||||
cancelText: 'Скасувати',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Введіть текст для пошуку',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Завантаження ...',
|
||||
removeFile: 'Видалити файл',
|
||||
uploadError: 'Помилка завантаження',
|
||||
previewFile: 'Попередній перегляд файлу',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Даних немає',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,42 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/vi_VN';
|
||||
import DatePicker from '../date-picker/locale/vi_VN';
|
||||
import TimePicker from '../time-picker/locale/vi_VN';
|
||||
import Calendar from '../calendar/locale/vi_VN';
|
||||
import locale from '../locale/vi_VN';
|
||||
|
||||
export default {
|
||||
locale: 'vi',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Bộ ',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Tạo Lại',
|
||||
selectAll: 'Chọn Tất Cả',
|
||||
selectInvert: 'Chọn Ngược Lại',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Huỷ',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Huỷ',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Tìm ở đây',
|
||||
itemUnit: 'mục',
|
||||
itemsUnit: 'mục',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Đang tải lên...',
|
||||
removeFile: 'Gỡ bỏ tập tin',
|
||||
uploadError: 'Lỗi tải lên',
|
||||
previewFile: 'Xem thử tập tin',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Trống',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,59 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/zh_CN';
|
||||
import DatePicker from '../date-picker/locale/zh_CN';
|
||||
import TimePicker from '../time-picker/locale/zh_CN';
|
||||
import Calendar from '../calendar/locale/zh_CN';
|
||||
import locale from '../locale/zh_CN';
|
||||
|
||||
export default {
|
||||
locale: 'zh-cn',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
// locales for all comoponents
|
||||
global: {
|
||||
placeholder: '请选择',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: '筛选',
|
||||
filterConfirm: '确定',
|
||||
filterReset: '重置',
|
||||
selectAll: '全选当页',
|
||||
selectInvert: '反选当页',
|
||||
sortTitle: '排序',
|
||||
},
|
||||
Modal: {
|
||||
okText: '确定',
|
||||
cancelText: '取消',
|
||||
justOkText: '知道了',
|
||||
},
|
||||
Popconfirm: {
|
||||
cancelText: '取消',
|
||||
okText: '确定',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: '请输入搜索内容',
|
||||
itemUnit: '项',
|
||||
itemsUnit: '项',
|
||||
},
|
||||
Upload: {
|
||||
uploading: '文件上传中',
|
||||
removeFile: '删除文件',
|
||||
uploadError: '上传错误',
|
||||
previewFile: '预览文件',
|
||||
},
|
||||
Empty: {
|
||||
description: '暂无数据',
|
||||
},
|
||||
Icon: {
|
||||
icon: '图标',
|
||||
},
|
||||
Text: {
|
||||
edit: '编辑',
|
||||
copy: '复制',
|
||||
copied: '复制成功',
|
||||
expand: '展开',
|
||||
},
|
||||
PageHeader: {
|
||||
back: '返回',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
@ -1,45 +1,3 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/zh_TW';
|
||||
import DatePicker from '../date-picker/locale/zh_TW';
|
||||
import TimePicker from '../time-picker/locale/zh_TW';
|
||||
import Calendar from '../calendar/locale/zh_TW';
|
||||
import locale from '../locale/zh_TW';
|
||||
|
||||
export default {
|
||||
locale: 'zh-tw',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: '篩選器',
|
||||
filterConfirm: '確 定',
|
||||
filterReset: '重 置',
|
||||
selectAll: '全部選取',
|
||||
selectInvert: '反向選取',
|
||||
},
|
||||
Modal: {
|
||||
okText: '確 定',
|
||||
cancelText: '取 消',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: '確 定',
|
||||
cancelText: '取 消',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: '搜尋資料',
|
||||
itemUnit: '項目',
|
||||
itemsUnit: '項目',
|
||||
},
|
||||
Upload: {
|
||||
uploading: '正在上傳...',
|
||||
removeFile: '刪除檔案',
|
||||
uploadError: '上傳失敗',
|
||||
previewFile: '檔案預覽',
|
||||
},
|
||||
Empty: {
|
||||
description: '無此資料',
|
||||
},
|
||||
PageHeader: {
|
||||
back: '返回',
|
||||
},
|
||||
};
|
||||
export default locale;
|
||||
|
42
components/locale/ar_EG.tsx
Normal file
42
components/locale/ar_EG.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ar_EG';
|
||||
import DatePicker from '../date-picker/locale/ar_EG';
|
||||
import TimePicker from '../time-picker/locale/ar_EG';
|
||||
import Calendar from '../calendar/locale/ar_EG';
|
||||
|
||||
export default {
|
||||
locale: 'ar',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'الفلاتر',
|
||||
filterConfirm: 'تأكيد',
|
||||
filterReset: 'إعادة ضبط',
|
||||
selectAll: 'اختيار الكل',
|
||||
selectInvert: 'إلغاء الاختيار',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'تأكيد',
|
||||
cancelText: 'إلغاء',
|
||||
justOkText: 'تأكيد',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'تأكيد',
|
||||
cancelText: 'إلغاء',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'ابحث هنا',
|
||||
itemUnit: 'عنصر',
|
||||
itemsUnit: 'عناصر',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'جاري الرفع...',
|
||||
removeFile: 'احذف الملف',
|
||||
uploadError: 'مشكلة فى الرفع',
|
||||
previewFile: 'استعرض الملف',
|
||||
},
|
||||
Empty: {
|
||||
description: 'لا توجد بيانات',
|
||||
},
|
||||
};
|
42
components/locale/bg_BG.tsx
Normal file
42
components/locale/bg_BG.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/bg_BG';
|
||||
import DatePicker from '../date-picker/locale/bg_BG';
|
||||
import TimePicker from '../time-picker/locale/bg_BG';
|
||||
import Calendar from '../calendar/locale/bg_BG';
|
||||
|
||||
export default {
|
||||
locale: 'bg',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Филтриране',
|
||||
filterConfirm: 'Добре',
|
||||
filterReset: 'Нулриане',
|
||||
selectAll: 'Избор на текуща страница',
|
||||
selectInvert: 'Обръщане',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Добре',
|
||||
cancelText: 'Отказ',
|
||||
justOkText: 'Добре',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Добре',
|
||||
cancelText: 'Отказ',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Търсене',
|
||||
itemUnit: 'избор',
|
||||
itemsUnit: 'избори',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Качване...',
|
||||
removeFile: 'Премахване',
|
||||
uploadError: 'Грешка при качването',
|
||||
previewFile: 'Преглед',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Няма данни',
|
||||
},
|
||||
};
|
34
components/locale/ca_ES.tsx
Normal file
34
components/locale/ca_ES.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ca_ES';
|
||||
import DatePicker from '../date-picker/locale/ca_ES';
|
||||
import TimePicker from '../time-picker/locale/ca_ES';
|
||||
import Calendar from '../calendar/locale/ca_ES';
|
||||
|
||||
export default {
|
||||
locale: 'ca',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrar Menu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Restablir',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel·lar',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel·lar',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Cercar aquí',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Sense dades',
|
||||
},
|
||||
};
|
40
components/locale/cs_CZ.tsx
Normal file
40
components/locale/cs_CZ.tsx
Normal file
@ -0,0 +1,40 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/cs_CZ';
|
||||
import DatePicker from '../date-picker/locale/cs_CZ';
|
||||
import TimePicker from '../time-picker/locale/cs_CZ';
|
||||
import Calendar from '../calendar/locale/cs_CZ';
|
||||
|
||||
export default {
|
||||
locale: 'cs',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtr',
|
||||
filterConfirm: 'Potvrdit',
|
||||
filterReset: 'Obnovit',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Ok',
|
||||
cancelText: 'Storno',
|
||||
justOkText: 'Ok',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Ok',
|
||||
cancelText: 'Storno',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Vyhledávání',
|
||||
itemUnit: 'položka',
|
||||
itemsUnit: 'položek',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Nahrávání...',
|
||||
removeFile: 'Odstranit soubor',
|
||||
uploadError: 'Chyba při nahrávání',
|
||||
previewFile: 'Zobrazit soubor',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Žádná data',
|
||||
},
|
||||
};
|
42
components/locale/da_DK.tsx
Normal file
42
components/locale/da_DK.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/da_DK';
|
||||
import DatePicker from '../date-picker/locale/da_DK';
|
||||
import TimePicker from '../time-picker/locale/da_DK';
|
||||
import Calendar from '../calendar/locale/da_DK';
|
||||
|
||||
export default {
|
||||
locale: 'da',
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Pagination,
|
||||
Table: {
|
||||
filterTitle: 'Filtermenu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Nulstil',
|
||||
selectAll: 'Vælg alle',
|
||||
selectInvert: 'Inverter valg',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Afbryd',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Afbryd',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Søg her',
|
||||
itemUnit: 'element',
|
||||
itemsUnit: 'elementer',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploader...',
|
||||
removeFile: 'Fjern fil',
|
||||
uploadError: 'Fejl ved upload',
|
||||
previewFile: 'Forhåndsvisning',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ingen data',
|
||||
},
|
||||
};
|
42
components/locale/de_DE.tsx
Normal file
42
components/locale/de_DE.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/de_DE';
|
||||
import DatePicker from '../date-picker/locale/de_DE';
|
||||
import TimePicker from '../time-picker/locale/de_DE';
|
||||
import Calendar from '../calendar/locale/de_DE';
|
||||
|
||||
export default {
|
||||
locale: 'de',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter-Menü',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Zurücksetzen',
|
||||
selectAll: 'Selektiere Alle',
|
||||
selectInvert: 'Selektion Invertieren',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Abbrechen',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Abbrechen',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Suchen',
|
||||
itemUnit: 'Eintrag',
|
||||
itemsUnit: 'Einträge',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Hochladen...',
|
||||
removeFile: 'Datei entfernen',
|
||||
uploadError: 'Fehler beim Hochladen',
|
||||
previewFile: 'Dateivorschau',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Keine Daten',
|
||||
},
|
||||
};
|
61
components/locale/default.tsx
Normal file
61
components/locale/default.tsx
Normal file
@ -0,0 +1,61 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/en_US';
|
||||
import DatePicker from '../date-picker/locale/en_US';
|
||||
import TimePicker from '../time-picker/locale/en_US';
|
||||
import Calendar from '../calendar/locale/en_US';
|
||||
|
||||
export default {
|
||||
locale: 'en',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Please select',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filter menu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Select current page',
|
||||
selectInvert: 'Invert current page',
|
||||
sortTitle: 'Sort',
|
||||
expand: 'Expand row',
|
||||
collapse: 'Collapse row',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Search here',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploading...',
|
||||
removeFile: 'Remove file',
|
||||
uploadError: 'Upload error',
|
||||
previewFile: 'Preview file',
|
||||
},
|
||||
Empty: {
|
||||
description: 'No Data',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'icon',
|
||||
},
|
||||
Text: {
|
||||
edit: 'edit',
|
||||
copy: 'copy',
|
||||
copied: 'copy success',
|
||||
expand: 'expand',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'back',
|
||||
},
|
||||
};
|
42
components/locale/el_GR.tsx
Normal file
42
components/locale/el_GR.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/el_GR';
|
||||
import DatePicker from '../date-picker/locale/el_GR';
|
||||
import TimePicker from '../time-picker/locale/el_GR';
|
||||
import Calendar from '../calendar/locale/el_GR';
|
||||
|
||||
export default {
|
||||
locale: 'el',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Μενού φίλτρων',
|
||||
filterConfirm: 'ΟΚ',
|
||||
filterReset: 'Επαναφορά',
|
||||
selectAll: 'Επιλογή τρέχουσας σελίδας',
|
||||
selectInvert: 'Αντιστροφή τρέχουσας σελίδας',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'ΟΚ',
|
||||
cancelText: 'Άκυρο',
|
||||
justOkText: 'ΟΚ',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'ΟΚ',
|
||||
cancelText: 'Άκυρο',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Αναζήτηση',
|
||||
itemUnit: 'αντικείμενο',
|
||||
itemsUnit: 'αντικείμενα',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Μεταφόρτωση...',
|
||||
removeFile: 'Αφαίρεση αρχείου',
|
||||
uploadError: 'Σφάλμα μεταφόρτωσης',
|
||||
previewFile: 'Προεπισκόπηση αρχείου',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Δεν υπάρχουν δεδομένα',
|
||||
},
|
||||
};
|
42
components/locale/en_GB.tsx
Normal file
42
components/locale/en_GB.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/en_GB';
|
||||
import DatePicker from '../date-picker/locale/en_GB';
|
||||
import TimePicker from '../time-picker/locale/en_GB';
|
||||
import Calendar from '../calendar/locale/en_GB';
|
||||
|
||||
export default {
|
||||
locale: 'en-gb',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter menu',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Select current page',
|
||||
selectInvert: 'Invert current page',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Cancel',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Search here',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Uploading...',
|
||||
removeFile: 'Remove file',
|
||||
uploadError: 'Upload error',
|
||||
previewFile: 'Preview file',
|
||||
},
|
||||
Empty: {
|
||||
description: 'No data',
|
||||
},
|
||||
};
|
3
components/locale/en_US.tsx
Normal file
3
components/locale/en_US.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import defaultLocale from './default';
|
||||
|
||||
export default defaultLocale;
|
58
components/locale/es_ES.tsx
Normal file
58
components/locale/es_ES.tsx
Normal file
@ -0,0 +1,58 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/es_ES';
|
||||
import DatePicker from '../date-picker/locale/es_ES';
|
||||
import TimePicker from '../time-picker/locale/es_ES';
|
||||
import Calendar from '../calendar/locale/es_ES';
|
||||
|
||||
export default {
|
||||
locale: 'es',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Seleccione',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filtrar menú',
|
||||
filterConfirm: 'Aceptar',
|
||||
filterReset: 'Reiniciar',
|
||||
selectAll: 'Seleccionar todo',
|
||||
selectInvert: 'Invertir selección',
|
||||
sortTitle: 'Ordenar',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Aceptar',
|
||||
cancelText: 'Cancelar',
|
||||
justOkText: 'Aceptar',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Aceptar',
|
||||
cancelText: 'Cancelar',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Buscar aquí',
|
||||
itemUnit: 'elemento',
|
||||
itemsUnit: 'elementos',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Subiendo...',
|
||||
removeFile: 'Eliminar archivo',
|
||||
uploadError: 'Error al subir el archivo',
|
||||
previewFile: 'Vista previa',
|
||||
},
|
||||
Empty: {
|
||||
description: 'No hay datos',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'ícono',
|
||||
},
|
||||
Text: {
|
||||
edit: 'editar',
|
||||
copy: 'copiar',
|
||||
copied: 'copiado',
|
||||
expand: 'expandir',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'volver',
|
||||
},
|
||||
};
|
42
components/locale/et_EE.tsx
Normal file
42
components/locale/et_EE.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/et_EE';
|
||||
import DatePicker from '../date-picker/locale/et_EE';
|
||||
import TimePicker from '../time-picker/locale/et_EE';
|
||||
import Calendar from '../calendar/locale/et_EE';
|
||||
|
||||
export default {
|
||||
locale: 'et',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtri menüü',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Nulli',
|
||||
selectAll: 'Vali kõik',
|
||||
selectInvert: 'Inverteeri valik',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Tühista',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Tühista',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Otsi siit',
|
||||
itemUnit: 'kogus',
|
||||
itemsUnit: 'kogus',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Üleslaadimine...',
|
||||
removeFile: 'Eemalda fail',
|
||||
uploadError: 'Üleslaadimise tõrge',
|
||||
previewFile: 'Faili eelvaade',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Andmed puuduvad',
|
||||
},
|
||||
};
|
42
components/locale/fa_IR.tsx
Normal file
42
components/locale/fa_IR.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fa_IR';
|
||||
import DatePicker from '../date-picker/locale/fa_IR';
|
||||
import TimePicker from '../time-picker/locale/fa_IR';
|
||||
import Calendar from '../calendar/locale/fa_IR';
|
||||
|
||||
export default {
|
||||
locale: 'fa',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'منوی فیلتر',
|
||||
filterConfirm: 'تایید',
|
||||
filterReset: 'پاک کردن',
|
||||
selectAll: 'انتخاب صفحهی کنونی',
|
||||
selectInvert: 'معکوس کردن انتخابها در صفحه ی کنونی',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'تایید',
|
||||
cancelText: 'لغو',
|
||||
justOkText: 'تایید',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'تایید',
|
||||
cancelText: 'لغو',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'جستجو',
|
||||
itemUnit: '',
|
||||
itemsUnit: '',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'در حال آپلود...',
|
||||
removeFile: 'حذف فایل',
|
||||
uploadError: 'خطا در آپلود',
|
||||
previewFile: 'مشاهدهی فایل',
|
||||
},
|
||||
Empty: {
|
||||
description: 'دادهای موجود نیست',
|
||||
},
|
||||
};
|
43
components/locale/fi_FI.tsx
Normal file
43
components/locale/fi_FI.tsx
Normal file
@ -0,0 +1,43 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fi_FI';
|
||||
import DatePicker from '../date-picker/locale/fi_FI';
|
||||
import TimePicker from '../time-picker/locale/fi_FI';
|
||||
import Calendar from '../calendar/locale/fi_FI';
|
||||
|
||||
export default {
|
||||
locale: 'fi',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Suodatus valikko',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Tyhjennä',
|
||||
selectAll: 'Valitse kaikki',
|
||||
selectInvert: 'Valitse päinvastoin',
|
||||
sortTitle: 'Lajittele',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Peruuta',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Peruuta',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Etsi täältä',
|
||||
itemUnit: 'kohde',
|
||||
itemsUnit: 'kohdetta',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Lähetetään...',
|
||||
removeFile: 'Poista tiedosto',
|
||||
uploadError: 'Virhe lähetyksessä',
|
||||
previewFile: 'Esikatsele tiedostoa',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Ei kohteita',
|
||||
},
|
||||
};
|
40
components/locale/fr_BE.tsx
Normal file
40
components/locale/fr_BE.tsx
Normal file
@ -0,0 +1,40 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fr_BE';
|
||||
import DatePicker from '../date-picker/locale/fr_BE';
|
||||
import TimePicker from '../time-picker/locale/fr_BE';
|
||||
import Calendar from '../calendar/locale/fr_BE';
|
||||
|
||||
export default {
|
||||
locale: 'fr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrer',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Réinitialiser',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Recherche',
|
||||
itemUnit: 'élément',
|
||||
itemsUnit: 'éléments',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Aucune donnée',
|
||||
},
|
||||
Text: {
|
||||
edit: 'éditer',
|
||||
copy: 'copier',
|
||||
copied: 'copie effectuée',
|
||||
expand: 'développer',
|
||||
},
|
||||
};
|
40
components/locale/fr_FR.tsx
Normal file
40
components/locale/fr_FR.tsx
Normal file
@ -0,0 +1,40 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fr_FR';
|
||||
import DatePicker from '../date-picker/locale/fr_FR';
|
||||
import TimePicker from '../time-picker/locale/fr_FR';
|
||||
import Calendar from '../calendar/locale/fr_FR';
|
||||
|
||||
export default {
|
||||
locale: 'fr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrer',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Réinitialiser',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Recherche',
|
||||
itemUnit: 'élément',
|
||||
itemsUnit: 'éléments',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Aucune donnée',
|
||||
},
|
||||
Text: {
|
||||
edit: 'éditer',
|
||||
copy: 'copier',
|
||||
copied: 'copie effectuée',
|
||||
expand: 'développer',
|
||||
},
|
||||
};
|
42
components/locale/he_IL.tsx
Normal file
42
components/locale/he_IL.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/he_IL';
|
||||
import DatePicker from '../date-picker/locale/he_IL';
|
||||
import TimePicker from '../time-picker/locale/he_IL';
|
||||
import Calendar from '../calendar/locale/he_IL';
|
||||
|
||||
export default {
|
||||
locale: 'he',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'תפריט סינון',
|
||||
filterConfirm: 'אישור',
|
||||
filterReset: 'איפוס',
|
||||
selectAll: 'בחר הכל',
|
||||
selectInvert: 'הפוך בחירה',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'אישור',
|
||||
cancelText: 'ביטול',
|
||||
justOkText: 'אישור',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'אישור',
|
||||
cancelText: 'ביטול',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'חפש כאן',
|
||||
itemUnit: 'פריט',
|
||||
itemsUnit: 'פריטים',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'מעלה...',
|
||||
removeFile: 'הסר קובץ',
|
||||
uploadError: 'שגיאת העלאה',
|
||||
previewFile: 'הצג קובץ',
|
||||
},
|
||||
Empty: {
|
||||
description: 'אין מידע',
|
||||
},
|
||||
};
|
50
components/locale/hi_IN.tsx
Normal file
50
components/locale/hi_IN.tsx
Normal file
@ -0,0 +1,50 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hi_IN';
|
||||
import DatePicker from '../date-picker/locale/hi_IN';
|
||||
import TimePicker from '../time-picker/locale/hi_IN';
|
||||
import Calendar from '../calendar/locale/hi_IN';
|
||||
|
||||
export default {
|
||||
locale: 'hi',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
// locales for all comoponents
|
||||
global: {
|
||||
placeholder: 'कृपया चुनें',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'सूची बंद करें',
|
||||
filterConfirm: 'अच्छी तरह से',
|
||||
filterReset: 'रीसेट',
|
||||
emptyText: 'कोई जानकारी नहीं',
|
||||
selectAll: 'वर्तमान पृष्ठ का चयन करें',
|
||||
selectInvert: 'वर्तमान पृष्ठ घुमाएं',
|
||||
sortTitle: 'द्वारा क्रमबद्ध करें',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'अच्छी तरह से',
|
||||
cancelText: 'रद्द करना',
|
||||
justOkText: 'अच्छी तरह से',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'अच्छी तरह से',
|
||||
cancelText: 'रद्द करना',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
notFoundContent: 'नहीं मिला',
|
||||
searchPlaceholder: 'यहां खोजें',
|
||||
itemUnit: 'तत्त्व',
|
||||
itemsUnit: 'विषय-वस्तु',
|
||||
},
|
||||
Select: {
|
||||
notFoundContent: 'नहीं मिला',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'अपलोडिंग...',
|
||||
removeFile: 'फ़ाइल निकालें',
|
||||
uploadError: 'अपलोड में त्रुटि',
|
||||
previewFile: 'फ़ाइल पूर्वावलोकन',
|
||||
},
|
||||
};
|
56
components/locale/hr_HR.tsx
Normal file
56
components/locale/hr_HR.tsx
Normal file
@ -0,0 +1,56 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hr_HR';
|
||||
import DatePicker from '../date-picker/locale/hr_HR';
|
||||
import TimePicker from '../time-picker/locale/hr_HR';
|
||||
import Calendar from '../calendar/locale/hr_HR';
|
||||
|
||||
export default {
|
||||
locale: 'hr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Molimo označite',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filter meni',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Označi trenutnu stranicu',
|
||||
selectInvert: 'Invertiraj trenutnu stranicu',
|
||||
sortTitle: 'Sortiraj',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Odustani',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Odustani',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Pretraži ovdje',
|
||||
itemUnit: 'stavka',
|
||||
itemsUnit: 'stavke',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Upload u tijeku...',
|
||||
removeFile: 'Makni datoteku',
|
||||
uploadError: 'Greška kod uploada',
|
||||
previewFile: 'Pogledaj datoteku',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nema podataka',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'ikona',
|
||||
},
|
||||
Text: {
|
||||
edit: 'uredi',
|
||||
copy: 'kopiraj',
|
||||
copied: 'kopiranje uspješno',
|
||||
expand: 'proširi',
|
||||
},
|
||||
};
|
43
components/locale/hu_HU.tsx
Normal file
43
components/locale/hu_HU.tsx
Normal file
@ -0,0 +1,43 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hu_HU';
|
||||
import DatePicker from '../date-picker/locale/hu_HU';
|
||||
import TimePicker from '../time-picker/locale/hu_HU';
|
||||
import Calendar from '../calendar/locale/hu_HU';
|
||||
|
||||
export default {
|
||||
locale: 'hu',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Szűrők',
|
||||
filterConfirm: 'Alkalmazás',
|
||||
filterReset: 'Visszaállítás',
|
||||
selectAll: 'Jelenlegi oldal kiválasztása',
|
||||
selectInvert: 'Jelenlegi oldal inverze',
|
||||
sortTitle: 'Rendezés',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Alkalmazás',
|
||||
cancelText: 'Visszavonás',
|
||||
justOkText: 'Alkalmazás',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Alkalmazás',
|
||||
cancelText: 'Visszavonás',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Keresés',
|
||||
itemUnit: 'elem',
|
||||
itemsUnit: 'elemek',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Feltöltés...',
|
||||
removeFile: 'Fájl eltávolítása',
|
||||
uploadError: 'Feltöltési hiba',
|
||||
previewFile: 'Fájl előnézet',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nincs adat',
|
||||
},
|
||||
};
|
44
components/locale/id_ID.tsx
Normal file
44
components/locale/id_ID.tsx
Normal file
@ -0,0 +1,44 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/id_ID';
|
||||
import DatePicker from '../date-picker/locale/id_ID';
|
||||
import TimePicker from '../time-picker/locale/id_ID';
|
||||
import Calendar from '../calendar/locale/id_ID';
|
||||
|
||||
export default {
|
||||
locale: 'id',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Saring',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Hapus',
|
||||
selectAll: 'Pilih semua di halaman ini',
|
||||
selectInvert: 'Balikkan pilihan di halaman ini',
|
||||
sortTitle: 'Urutkan',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Batal',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Batal',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Cari',
|
||||
itemUnit: 'item',
|
||||
itemsUnit: 'item',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Mengunggah...',
|
||||
removeFile: 'Hapus file',
|
||||
uploadError: 'Kesalahan pengunggahan',
|
||||
previewFile: 'File pratinjau',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Tidak ada data',
|
||||
},
|
||||
};
|
42
components/locale/is_IS.tsx
Normal file
42
components/locale/is_IS.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/is_IS';
|
||||
import DatePicker from '../date-picker/locale/is_IS';
|
||||
import TimePicker from '../time-picker/locale/is_IS';
|
||||
import Calendar from '../calendar/locale/is_IS';
|
||||
|
||||
export default {
|
||||
locale: 'is',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Afmarkanir',
|
||||
filterConfirm: 'Staðfesta',
|
||||
filterReset: 'Núllstilla',
|
||||
selectAll: 'Velja allt',
|
||||
selectInvert: 'Viðsnúa vali',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Áfram',
|
||||
cancelText: 'Hætta við',
|
||||
justOkText: 'Í lagi',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Áfram',
|
||||
cancelText: 'Hætta við',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Leita hér',
|
||||
itemUnit: 'færsla',
|
||||
itemsUnit: 'færslur',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Hleð upp...',
|
||||
removeFile: 'Fjarlægja skrá',
|
||||
uploadError: 'Villa við að hlaða upp',
|
||||
previewFile: 'Forskoða skrá',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Engin gögn',
|
||||
},
|
||||
};
|
55
components/locale/it_IT.tsx
Normal file
55
components/locale/it_IT.tsx
Normal file
@ -0,0 +1,55 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/it_IT';
|
||||
import DatePicker from '../date-picker/locale/it_IT';
|
||||
import TimePicker from '../time-picker/locale/it_IT';
|
||||
import Calendar from '../calendar/locale/it_IT';
|
||||
|
||||
export default {
|
||||
locale: 'it',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Selezionare',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Menù Filtro',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Seleziona pagina corrente',
|
||||
selectInvert: 'Inverti selezione nella pagina corrente',
|
||||
sortTitle: 'Ordina',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annulla',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annulla',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Cerca qui',
|
||||
itemUnit: 'elemento',
|
||||
itemsUnit: 'elementi',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Caricamento...',
|
||||
removeFile: 'Rimuovi il file',
|
||||
uploadError: 'Errore di caricamento',
|
||||
previewFile: 'Anteprima file',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nessun dato',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'icona',
|
||||
},
|
||||
Text: {
|
||||
edit: 'modifica',
|
||||
copy: 'copia',
|
||||
copied: 'copia effettuata',
|
||||
expand: 'espandi',
|
||||
},
|
||||
};
|
42
components/locale/ja_JP.tsx
Normal file
42
components/locale/ja_JP.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/ja_JP';
|
||||
import DatePicker from '../date-picker/locale/ja_JP';
|
||||
import TimePicker from '../time-picker/locale/ja_JP';
|
||||
import Calendar from '../calendar/locale/ja_JP';
|
||||
|
||||
export default {
|
||||
locale: 'ja',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'メニューをフィルター',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'リセット',
|
||||
selectAll: 'すべてを選択',
|
||||
selectInvert: '選択を反転',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'キャンセル',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'キャンセル',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'ここを検索',
|
||||
itemUnit: 'アイテム',
|
||||
itemsUnit: 'アイテム',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'アップロード中...',
|
||||
removeFile: 'ファイルを削除',
|
||||
uploadError: 'アップロードエラー',
|
||||
previewFile: 'ファイルをプレビュー',
|
||||
},
|
||||
Empty: {
|
||||
description: 'データがありません',
|
||||
},
|
||||
};
|
50
components/locale/kn_IN.tsx
Normal file
50
components/locale/kn_IN.tsx
Normal file
@ -0,0 +1,50 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/kn_IN';
|
||||
import DatePicker from '../date-picker/locale/kn_IN';
|
||||
import TimePicker from '../time-picker/locale/kn_IN';
|
||||
import Calendar from '../calendar/locale/kn_IN';
|
||||
|
||||
export default {
|
||||
locale: 'kn',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
// locales for all comoponents
|
||||
global: {
|
||||
placeholder: 'ದಯವಿಟ್ಟು ಆರಿಸಿ',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'ಪಟ್ಟಿ ಸೋಸಿ',
|
||||
filterConfirm: 'ಸರಿ',
|
||||
filterReset: 'ಮರುಹೊಂದಿಸಿ',
|
||||
emptyText: 'ಮಾಹಿತಿ ಇಲ್ಲ',
|
||||
selectAll: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ಆಯ್ಕೆಮಾಡಿ',
|
||||
selectInvert: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ತಿರುಗಿಸಿ',
|
||||
sortTitle: 'ವಿಂಗಡಿಸಿ',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'ಸರಿ',
|
||||
cancelText: 'ರದ್ದು',
|
||||
justOkText: 'ಸರಿ',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'ಸರಿ',
|
||||
cancelText: 'ರದ್ದು',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
|
||||
searchPlaceholder: 'ಇಲ್ಲಿ ಹುಡುಕಿ',
|
||||
itemUnit: 'ವಿಷಯ',
|
||||
itemsUnit: 'ವಿಷಯಗಳು',
|
||||
},
|
||||
Select: {
|
||||
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'ಏರಿಸಿ...',
|
||||
removeFile: 'ಫೈಲ್ ತೆಗೆದುಹಾಕಿ',
|
||||
uploadError: 'ಏರಿಸುವ ದೋಷ',
|
||||
previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ',
|
||||
},
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user