Added test case and updated documentation

This commit is contained in:
Ashot Mnatsakanyan 2019-09-01 20:21:51 +04:00 committed by 偏右
parent 1de7f707d7
commit 68a02a75e3
4 changed files with 5401 additions and 61 deletions

View File

@ -36,6 +36,7 @@ import heIL from '../he_IL';
import hiIN from '../hi_IN';
import hrHR from '../hr_HR';
import huHU from '../hu_HU';
import hyAM from '../hy_AM';
import isIS from '../is_IS';
import itIT from '../it_IT';
import jaJP from '../ja_JP';
@ -87,6 +88,7 @@ const locales = [
hiIN,
hrHR,
huHU,
hyAM,
isIS,
itIT,
jaJP,
@ -162,7 +164,11 @@ const App = () => (
);
describe('Locale Provider', () => {
mountTest(() => <LocaleProvider><div /></LocaleProvider>);
mountTest(() => (
<LocaleProvider>
<div />
</LocaleProvider>
));
beforeAll(() => {
MockDate.set(moment('2017-09-18T03:30:07.795'));

View File

@ -29,6 +29,7 @@ Supported languages:
| Language | Filename |
| --------------------- | -------- |
| Arabic | ar_EG |
| Armenian | hy_AM |
| Bulgarian | bg_BG |
| Catalan | ca_ES |
| Czech | cs_CZ |

View File

@ -28,6 +28,7 @@ return (
| 语言 | 文件名 |
| ---------------- | ------ |
| 阿拉伯语 | ar_EG |
| 亞美尼亞 | hy_AM |
| 保加利亚语 | bg_BG |
| 加泰罗尼亚语 | ca_ES |
| 捷克语 | cs_CZ |