@electerm/electerm-react 2.5.16 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,6 +9,32 @@ import { isEmpty } from 'lodash-es'
|
|
|
9
9
|
|
|
10
10
|
const e = window.translate
|
|
11
11
|
|
|
12
|
+
const commonLangOptions = [
|
|
13
|
+
'zh_CN.GBK',
|
|
14
|
+
'C',
|
|
15
|
+
'POSIX',
|
|
16
|
+
'C.UTF-8',
|
|
17
|
+
'en_US.UTF-8',
|
|
18
|
+
'en_US',
|
|
19
|
+
'en_GB.UTF-8',
|
|
20
|
+
'fr_FR.UTF-8',
|
|
21
|
+
'de_DE.UTF-8',
|
|
22
|
+
'es_ES.UTF-8',
|
|
23
|
+
'it_IT.UTF-8',
|
|
24
|
+
'pt_BR.UTF-8',
|
|
25
|
+
'pt_PT.UTF-8',
|
|
26
|
+
'zh_CN.UTF-8',
|
|
27
|
+
'zh_CN.GB2312',
|
|
28
|
+
'zh_TW.UTF-8',
|
|
29
|
+
'zh_HK.UTF-8',
|
|
30
|
+
'zh_SG.UTF-8',
|
|
31
|
+
'ja_JP.UTF-8',
|
|
32
|
+
'ja_JP.eucJP',
|
|
33
|
+
'ko_KR.UTF-8',
|
|
34
|
+
'ru_RU.UTF-8',
|
|
35
|
+
'ar_SA.UTF-8'
|
|
36
|
+
].map(l => ({ label: l, value: l }))
|
|
37
|
+
|
|
12
38
|
// Common individual fields
|
|
13
39
|
export const commonFields = {
|
|
14
40
|
// Basic connection fields
|
|
@@ -118,10 +144,11 @@ export const commonFields = {
|
|
|
118
144
|
|
|
119
145
|
// Terminal UI settings
|
|
120
146
|
envLang: {
|
|
121
|
-
type: '
|
|
147
|
+
type: 'autocomplete',
|
|
122
148
|
name: 'envLang',
|
|
123
149
|
label: 'ENV:LANG',
|
|
124
150
|
rules: [{ max: 130, message: '130 chars max' }],
|
|
151
|
+
options: commonLangOptions,
|
|
125
152
|
props: { placeholder: 'en_US.UTF-8' }
|
|
126
153
|
},
|
|
127
154
|
|
|
@@ -217,7 +244,6 @@ export const commonFields = {
|
|
|
217
244
|
|
|
218
245
|
// Common field groups for settings tabs
|
|
219
246
|
export const terminalSettings = [
|
|
220
|
-
commonFields.envLang,
|
|
221
247
|
commonFields.terminalType,
|
|
222
248
|
commonFields.proxy,
|
|
223
249
|
commonFields.displayRaw,
|
|
@@ -281,6 +307,7 @@ export const sshAuthFields = [
|
|
|
281
307
|
commonFields.startDirectoryLocal,
|
|
282
308
|
commonFields.startDirectory,
|
|
283
309
|
commonFields.interactiveValues,
|
|
310
|
+
commonFields.envLang,
|
|
284
311
|
commonFields.encode,
|
|
285
312
|
commonFields.type
|
|
286
313
|
]
|