-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathi18nconfig.js
56 lines (56 loc) · 1.63 KB
/
i18nconfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
pattern: '%lang.js',
lang: [
{ input: 'ar', output: 'ar_EG' },
{ input: 'bg', output: 'bg_BG' },
{ input: 'ca', output: 'ca_ES' },
{ input: 'cs', output: 'cs_CZ' },
{ input: 'de', output: 'de_DE' },
{ input: 'cs', output: 'el_GR' },
{ input: 'el', output: 'el_GR' },
{ input: 'en', output: ['en_GB', 'en_US'] },
{ input: 'es', output: 'es_ES' },
{ input: 'et', output: 'et_EE' },
{ input: 'fa', output: 'fa_IR' },
{ input: 'fi', output: 'fi_FI' },
{ input: 'fr', output: ['fr_BE', 'fr_FR'] },
{ input: 'it', output: 'it_IT' },
{ input: 'is', output: 'is_IS' },
{ input: 'ja', output: 'ja_JP' },
{ input: 'ko', output: 'ko_KR' },
{ input: 'no', output: 'nb_NO' },
{ input: 'nl', output: ['nl_BE', 'nl_NL'] },
{ input: 'pl', output: 'pl_PL' },
{ input: 'pt', output: 'pt_BR' },
{ input: 'sk', output: 'sk_SK' },
{ input: 'sr', output: 'sr_RS' },
{ input: 'sl', output: 'sl_SI' },
{ input: 'sv', output: 'sv_SE' },
{ input: 'th', output: 'th_TH' },
{ input: 'tr', output: 'tr_TR' },
{ input: 'ru', output: 'ru_RU' },
{ input: 'uk', output: 'uk_UA' },
{ input: 'vi', output: 'vi_VN' },
{
input: 'zh-cn',
output: 'zh_CN',
dict: { Reset: '重置', Remove: '删除' },
},
{
input: 'zh-tw',
output: 'zh_TW',
dict: { Reset: '重置', Remove: '删除' },
},
],
transformOutput(output, { langOutput }) {
const outputStr = JSON.stringify(output);
return `/* eslint-disable */
'use strict';
var antd = require('antd/lib/locale-provider/${langOutput}');
var locale = ${outputStr};
locale.antd = antd;
locale.language = '${langOutput}';
module.exports = locale;
`;
},
};