1
- import { Commands as commandMapEnglish } from '@seleniumhq/side-model'
2
- import { flattenNestedObject } from '../util'
1
+ import { Commands as commandMap } from '@seleniumhq/side-model'
3
2
4
- const windowTabEnglish = {
3
+ const windowTab = {
5
4
file : '&File' ,
6
5
edit : '&Edit' ,
7
6
view : '&View' ,
8
7
help : '&Help' ,
9
8
title : 'Project Editor' ,
10
9
}
11
10
12
- const electronMenuTreeEnglish = {
11
+ const electronMenuTree = {
13
12
about : 'About Electron' ,
14
13
services : 'Services' ,
15
14
hideElectron : 'Hide Electron' ,
16
15
hideOthers : 'Hide Others' ,
17
16
showAll : 'Show All' ,
18
17
quit : 'Quit' ,
18
+ newString : 'how this?' ,
19
19
}
20
20
21
- const fileMenuTreeEnglish = {
21
+ const fileMenuTree = {
22
22
newProject : 'New Project' ,
23
23
loadProject : 'Load Project' ,
24
24
recentProjects : 'Recent Projects' ,
25
25
saveProject : 'Save Project' ,
26
26
saveProjectAs : 'Save Project As...' ,
27
27
}
28
28
29
- const editMenuTreeEnglish = {
29
+ const editMenuTree = {
30
30
undo : 'Undo (for input)' ,
31
31
redo : 'Redo (for input)' ,
32
32
cut : 'Cut (for input)' ,
33
33
copy : 'Copy (for input)' ,
34
34
paste : 'Paste (for input)' ,
35
35
}
36
36
37
- const viewMenuTreeEnglish = {
37
+ const viewMenuTree = {
38
38
showDevTools : 'Show DevTools' ,
39
39
resetPlaybackWindows : 'Reset Playback Windows' ,
40
40
refreshPlaybackWindow : 'Refresh Playback Window' ,
41
41
}
42
42
43
- const helpMenuTreeEnglish = {
43
+ const helpMenuTree = {
44
44
dumpSession : 'Dump Session To File' ,
45
45
}
46
46
47
- const mainMenuEnglish = { tests : 'Tests' , suites : 'Suites' , config : 'Config' }
47
+ const mainMenu = { tests : 'Tests' , suites : 'Suites' , config : 'Config' }
48
48
49
- const configTabEnglish = {
49
+ const configTab = {
50
50
project : 'Project' ,
51
51
system : 'System' ,
52
52
outPut : 'outPut' ,
53
53
}
54
54
55
- const outPutConfigEnglish = {
55
+ const outPutConfig = {
56
56
webLink : 'click to jump to the testing platform' ,
57
57
platformUrl : 'test platform address' ,
58
58
platformUrlHelper : 'The final use case is displayed on this front-end page' ,
@@ -79,7 +79,7 @@ const outPutConfigEnglish = {
79
79
failMessage : 'please contact the backend developer for assistance!' ,
80
80
}
81
81
82
- const systemConfigEnglish = {
82
+ const systemConfig = {
83
83
theme : 'Theme preference' ,
84
84
themeHelper : 'restart required to take effect' ,
85
85
commandInsert : 'New command insert preference' ,
@@ -92,7 +92,7 @@ const systemConfigEnglish = {
92
92
restartDriver : 'restart driver' ,
93
93
}
94
94
95
- const projectConfigEnglish = {
95
+ const projectConfig = {
96
96
name : 'name' ,
97
97
stepTimeout : 'Step Timeout (MILLISECONDS)' ,
98
98
stepTimeoutHelper : 'Steps will fail if they take longer than this setting' ,
@@ -101,7 +101,7 @@ const projectConfigEnglish = {
101
101
projectPlugins : 'Project Plugins' ,
102
102
}
103
103
104
- const suitesTabEnglish = {
104
+ const suitesTab = {
105
105
testInSuite : 'Tests in suite' ,
106
106
dropTests : 'Drop Tests Here' ,
107
107
AvailableTests : 'Available tests' ,
@@ -115,19 +115,19 @@ const suitesTabEnglish = {
115
115
create : 'Create' ,
116
116
deleteNotice : 'Are you sure you want to delete suite {name}?' ,
117
117
tooltip :
118
- 'double click to modify the name,right click to export or delete suites' ,
119
- notDeleteNotice : 'only one suites is not allowed to be deleted! ' ,
118
+ 'Double click to modify the name.\nRight click to export or delete suites' ,
119
+ notDeleteNotice : 'If only one suite is left, it is not allowed to be deleted' ,
120
120
noSuiteSelected : 'No Suite Selected' ,
121
121
playSuite : 'Play Suite' ,
122
122
deleteSuite : 'Delete suite(s)' ,
123
123
exportSuite : 'Export suite(s) to ' ,
124
124
}
125
125
126
- const testsTabEnglish = {
126
+ const testsTab = {
127
127
allTests : '[All tests]' ,
128
128
deleteNotice : 'Delete this test?' ,
129
129
tooltip :
130
- 'double click to modify the name,right click to export or delete test case' ,
130
+ 'Double click to modify the name,\nRight click to export or delete test case' ,
131
131
notDeleteNotice : 'only one test case is not allowed to be deleted!' ,
132
132
dialogTitle : 'Please specify the new test name' ,
133
133
testName : 'Test Name' ,
@@ -141,7 +141,7 @@ const testsTabEnglish = {
141
141
exportTest : 'Export test(s) to ' ,
142
142
}
143
143
144
- const playbackEnglish = {
144
+ const playback = {
145
145
content : 'This is where recording and playback will occur' ,
146
146
windowSize :
147
147
'Force panel window dimensions (will zoom out if larger than panel and crop if smaller)' ,
@@ -150,18 +150,18 @@ const playbackEnglish = {
150
150
url : 'URL' ,
151
151
}
152
152
153
- const splashEnglish = {
153
+ const splash = {
154
154
present : 'Welcome to the Selenium IDE client' ,
155
155
logPath : 'Your log file path:' ,
156
156
openNotice : 'You can load or create one project' ,
157
- loadProject : 'load project ' ,
158
- createProject : 'create project ' ,
159
- openRecent : 'open recent ' ,
157
+ loadProject : 'Load Project ' ,
158
+ createProject : 'Create Project ' ,
159
+ openRecent : 'Recent Projects ' ,
160
160
languageSelect : 'choose language' ,
161
161
}
162
162
163
163
// 用例编辑页面
164
- const testCoreEnglish = {
164
+ const testCore = {
165
165
play : 'Play' ,
166
166
stop : 'Stop' ,
167
167
record : 'Record' ,
@@ -196,28 +196,28 @@ const testCoreEnglish = {
196
196
playFromStart : 'Play From Start' ,
197
197
}
198
198
199
- export const backend = {
200
- windowTab : windowTabEnglish ,
201
- electronMenuTree : electronMenuTreeEnglish ,
202
- fileMenuTree : fileMenuTreeEnglish ,
203
- editMenuTree : editMenuTreeEnglish ,
204
- viewMenuTree : viewMenuTreeEnglish ,
205
- helpMenuTree : helpMenuTreeEnglish ,
206
- mainMenu : mainMenuEnglish ,
207
- testsTab : testsTabEnglish ,
208
- suitesTab : suitesTabEnglish ,
209
- configTab : configTabEnglish ,
210
- systemConfig : systemConfigEnglish ,
211
- projectConfig : projectConfigEnglish ,
212
- outPutConfig : outPutConfigEnglish ,
213
- splash : splashEnglish ,
214
- playback : playbackEnglish ,
215
- testCore : testCoreEnglish ,
216
- commandMap : commandMapEnglish ,
199
+ export const language = {
200
+ windowTab,
201
+ electronMenuTree,
202
+ fileMenuTree,
203
+ editMenuTree,
204
+ viewMenuTree,
205
+ helpMenuTree,
206
+ mainMenu,
207
+ testsTab,
208
+ suitesTab,
209
+ configTab,
210
+ systemConfig,
211
+ projectConfig,
212
+ outPutConfig,
213
+ splash,
214
+ playback,
215
+ testCore,
216
+ commandMap,
217
217
}
218
218
219
219
// Creating a type of this so other locales are prompted to be filled in by
220
220
// the developer
221
- export type LanguageMap = typeof backend
221
+ export type LanguageMap = typeof language
222
222
223
- export const frontend = flattenNestedObject ( backend )
223
+ export default language
0 commit comments