-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
languages.ts
60 lines (58 loc) · 1.07 KB
/
languages.ts
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
57
58
59
60
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from '../types.js';
import type { Option } from './types.js';
export function createLanguages (t: TFunction): Option[] {
return [
{
text: t('lng.detect', 'Default browser language (auto-detect)', { ns: 'apps-config' }),
value: 'default'
},
// default/native
{
text: 'English',
value: 'en'
},
// translations (sorted by language code)
{
text: 'عربى',
value: 'ar'
},
{
text: 'Español',
value: 'es'
},
{
text: 'Français',
value: 'fr'
},
{
text: 'Bahasa Indonesia',
value: 'id'
},
{
text: 'Italiano',
value: 'it'
},
{
text: '日本語',
value: 'ja'
},
{
text: '한국어',
value: 'ko'
},
{
text: 'Português',
value: 'pt'
},
{
text: 'русский',
value: 'ru'
},
{
text: '汉语',
value: 'zh'
}
];
}