mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
Added test case and updated documentation
This commit is contained in:
parent
1de7f707d7
commit
68a02a75e3
File diff suppressed because it is too large
Load Diff
@ -36,6 +36,7 @@ import heIL from '../he_IL';
|
|||||||
import hiIN from '../hi_IN';
|
import hiIN from '../hi_IN';
|
||||||
import hrHR from '../hr_HR';
|
import hrHR from '../hr_HR';
|
||||||
import huHU from '../hu_HU';
|
import huHU from '../hu_HU';
|
||||||
|
import hyAM from '../hy_AM';
|
||||||
import isIS from '../is_IS';
|
import isIS from '../is_IS';
|
||||||
import itIT from '../it_IT';
|
import itIT from '../it_IT';
|
||||||
import jaJP from '../ja_JP';
|
import jaJP from '../ja_JP';
|
||||||
@ -87,6 +88,7 @@ const locales = [
|
|||||||
hiIN,
|
hiIN,
|
||||||
hrHR,
|
hrHR,
|
||||||
huHU,
|
huHU,
|
||||||
|
hyAM,
|
||||||
isIS,
|
isIS,
|
||||||
itIT,
|
itIT,
|
||||||
jaJP,
|
jaJP,
|
||||||
@ -162,7 +164,11 @@ const App = () => (
|
|||||||
);
|
);
|
||||||
|
|
||||||
describe('Locale Provider', () => {
|
describe('Locale Provider', () => {
|
||||||
mountTest(() => <LocaleProvider><div /></LocaleProvider>);
|
mountTest(() => (
|
||||||
|
<LocaleProvider>
|
||||||
|
<div />
|
||||||
|
</LocaleProvider>
|
||||||
|
));
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
MockDate.set(moment('2017-09-18T03:30:07.795'));
|
MockDate.set(moment('2017-09-18T03:30:07.795'));
|
||||||
|
@ -29,6 +29,7 @@ Supported languages:
|
|||||||
| Language | Filename |
|
| Language | Filename |
|
||||||
| --------------------- | -------- |
|
| --------------------- | -------- |
|
||||||
| Arabic | ar_EG |
|
| Arabic | ar_EG |
|
||||||
|
| Armenian | hy_AM |
|
||||||
| Bulgarian | bg_BG |
|
| Bulgarian | bg_BG |
|
||||||
| Catalan | ca_ES |
|
| Catalan | ca_ES |
|
||||||
| Czech | cs_CZ |
|
| Czech | cs_CZ |
|
||||||
|
@ -28,6 +28,7 @@ return (
|
|||||||
| 语言 | 文件名 |
|
| 语言 | 文件名 |
|
||||||
| ---------------- | ------ |
|
| ---------------- | ------ |
|
||||||
| 阿拉伯语 | ar_EG |
|
| 阿拉伯语 | ar_EG |
|
||||||
|
| 亞美尼亞 | hy_AM |
|
||||||
| 保加利亚语 | bg_BG |
|
| 保加利亚语 | bg_BG |
|
||||||
| 加泰罗尼亚语 | ca_ES |
|
| 加泰罗尼亚语 | ca_ES |
|
||||||
| 捷克语 | cs_CZ |
|
| 捷克语 | cs_CZ |
|
||||||
|
Loading…
Reference in New Issue
Block a user