-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathindex.js
More file actions
333 lines (332 loc) · 11.8 KB
/
index.js
File metadata and controls
333 lines (332 loc) · 11.8 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
const en = {
auth: {
login: 'Login',
loggingIn: 'Logging in...',
loginWithNetlifyIdentity: 'Login with Netlify Identity',
loginWithAzure: 'Login with Azure',
loginWithBitbucket: 'Login with Bitbucket',
loginWithGitHub: 'Login with GitHub',
loginWithGitLab: 'Login with GitLab',
loginWithGitea: 'Login with Gitea',
errors: {
email: 'Make sure to enter your email.',
password: 'Please enter your password.',
identitySettings:
'Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway.',
},
},
app: {
header: {
content: 'Contents',
workflow: 'Workflow',
media: 'Media',
quickAdd: 'Quick add',
},
app: {
errorHeader: 'Error loading the CMS configuration',
configErrors: 'Config Errors',
checkConfigYml: 'Check your config.yml file.',
loadingConfig: 'Loading configuration...',
waitingBackend: 'Waiting for backend...',
},
notFoundPage: {
header: 'Not Found',
},
},
collection: {
sidebar: {
collections: 'Collections',
allCollections: 'All Collections',
searchAll: 'Search all',
searchIn: 'Search in',
},
collectionTop: {
sortBy: 'Sort by',
viewAs: 'View as',
viewAsList: 'List view option',
viewAsGrid: 'Grid view option',
newButton: 'New %{collectionLabel}',
ascending: 'Ascending',
descending: 'Descending',
searchResults: 'Search Results for "%{searchTerm}"',
searchResultsInCollection: 'Search Results for "%{searchTerm}" in %{collection}',
filterBy: 'Filter by',
groupBy: 'Group by',
},
entries: {
loadingEntries: 'Loading Entries...',
cachingEntries: 'Caching Entries...',
longerLoading: 'This might take several minutes',
noEntries: 'No Entries',
},
groups: {
other: 'Other',
negateLabel: 'Not %{label}',
},
defaultFields: {
author: {
label: 'Author',
},
updatedOn: {
label: 'Updated On',
},
},
},
editor: {
editorControl: {
field: {
optional: 'optional',
widgetLabel: '%{widgetLabel} field',
},
},
editorControlPane: {
widget: {
required: '%{fieldLabel} is required.',
regexPattern: "%{fieldLabel} didn't match the pattern: %{pattern}.",
processing: '%{fieldLabel} is processing.',
range: '%{fieldLabel} must be between %{minValue} and %{maxValue}.',
min: '%{fieldLabel} must be at least %{minValue}.',
max: '%{fieldLabel} must be %{maxValue} or less.',
rangeCount: '%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).',
rangeCountExact: '%{fieldLabel} must have exactly %{count} item(s).',
rangeMin: '%{fieldLabel} must be at least %{minCount} item(s).',
rangeMax: '%{fieldLabel} must be %{maxCount} or less item(s).',
invalidPath: `'%{path}' is not a valid path`,
pathExists: `Path '%{path}' already exists`,
},
i18n: {
writingInLocale: 'Writing in %{locale}',
copyFromLocale: 'Fill in from another locale',
copyFromLocaleConfirm:
'Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten.',
},
},
editor: {
onLeavePage: 'Are you sure you want to leave this page?',
onUpdatingWithUnsavedChanges: 'You have unsaved changes, please save before updating status.',
onPublishingNotReady: 'Please update status to "Ready" before publishing.',
onPublishingWithUnsavedChanges: 'You have unsaved changes, please save before publishing.',
onPublishing: 'Are you sure you want to publish this entry?',
onUnpublishing: 'Are you sure you want to unpublish this entry?',
onDeleteWithUnsavedChanges:
'Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?',
onDeletePublishedEntry: 'Are you sure you want to delete this published entry?',
onDeleteUnpublishedChangesWithUnsavedChanges:
'This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?',
onDeleteUnpublishedChanges:
'All unpublished changes to this entry will be deleted. Do you still want to delete?',
loadingEntry: 'Loading entry...',
confirmLoadBackup: 'A local backup was recovered for this entry, would you like to use it?',
},
editorInterface: {
toggleI18n: 'Toggle i18n',
togglePreview: 'Toggle preview',
toggleScrollSync: 'Sync scrolling',
},
editorToolbar: {
publishing: 'Publishing...',
publish: 'Publish',
published: 'Published',
unpublish: 'Unpublish',
duplicate: 'Duplicate',
unpublishing: 'Unpublishing...',
publishAndCreateNew: 'Publish and create new',
publishAndDuplicate: 'Publish and duplicate',
deleteUnpublishedChanges: 'Delete unpublished changes',
deleteUnpublishedEntry: 'Delete unpublished entry',
deletePublishedEntry: 'Delete published entry',
deleteEntry: 'Delete entry',
saving: 'Saving...',
save: 'Save',
statusInfoTooltipDraft:
'Entry status is set to draft. To finalize and submit it for review, set the status to ‘In review’',
statusInfoTooltipInReview:
'Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.',
deleting: 'Deleting...',
updating: 'Updating...',
status: 'Status: %{status}',
backCollection: ' Writing in %{collectionLabel} collection',
unsavedChanges: 'Unsaved Changes',
changesSaved: 'Changes saved',
draft: 'Draft',
inReview: 'In review',
ready: 'Ready',
publishNow: 'Publish now',
deployPreviewPendingButtonLabel: 'Check for Preview',
deployPreviewButtonLabel: 'View Preview',
deployButtonLabel: 'View Live',
},
editorWidgets: {
markdown: {
bold: 'Bold',
italic: 'Italic',
strikethrough: 'Strikethrough',
code: 'Code',
link: 'Link',
linkPrompt: 'Enter the URL of the link',
headings: 'Headings',
quote: 'Quote',
bulletedList: 'Bulleted List',
numberedList: 'Numbered List',
addComponent: 'Add Component',
richText: 'Rich Text',
markdown: 'Markdown',
toggleMode: {
rich: 'Toggle to rich text mode',
markdown: 'Toggle to markdown mode',
},
},
image: {
choose: 'Choose an image',
chooseMultiple: 'Choose images',
chooseUrl: 'Insert from URL',
replaceUrl: 'Replace with URL',
promptUrl: 'Enter the URL of the image',
chooseDifferent: 'Choose different image',
addMore: 'Add more images',
remove: 'Remove image',
removeAll: 'Remove all images',
},
file: {
choose: 'Choose a file',
chooseUrl: 'Insert from URL',
chooseMultiple: 'Choose files',
replaceUrl: 'Replace with URL',
promptUrl: 'Enter the URL of the file',
chooseDifferent: 'Choose different file',
addMore: 'Add more files',
remove: 'Remove file',
removeAll: 'Remove all files',
},
unknownControl: {
noControl: "No control for widget '%{widget}'.",
},
unknownPreview: {
noPreview: "No preview for widget '%{widget}'.",
},
headingOptions: {
headingOne: 'Heading 1',
headingTwo: 'Heading 2',
headingThree: 'Heading 3',
headingFour: 'Heading 4',
headingFive: 'Heading 5',
headingSix: 'Heading 6',
},
datetime: {
now: 'Now',
clear: 'Clear',
setToNow: 'Set %{fieldLabel} to now',
},
list: {
add: 'Add %{item}',
addType: 'Add %{item}',
},
object: {
expand: 'Expand',
collapse: 'Collapse',
},
},
},
mediaLibrary: {
mediaLibraryCard: {
draft: 'Draft',
copy: 'Copy',
copyUrl: 'Copy URL',
copyPath: 'Copy Path',
copyName: 'Copy Name',
copied: 'Copied',
},
mediaLibrary: {
onDelete: 'Are you sure you want to delete selected media?',
fileTooLarge: 'File too large.\nConfigured to not allow files greater than %{size} kB.',
},
mediaLibraryModal: {
loading: 'Loading...',
close: 'Close',
noResults: 'No results.',
noAssetsFound: 'No assets found.',
noImagesFound: 'No images found.',
private: 'Private ',
images: 'Images',
mediaAssets: 'Media assets',
search: 'Search...',
uploading: 'Uploading...',
upload: 'Upload',
download: 'Download',
deleting: 'Deleting...',
deleteSelected: 'Delete selected',
chooseSelected: 'Choose selected',
},
},
ui: {
default: {
goBackToSite: 'Go back to site',
},
errorBoundary: {
title: 'Error',
details: "There's been an error - please ",
reportIt: 'open an issue on GitHub.',
detailsHeading: 'Details',
privacyWarning:
'Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.',
recoveredEntry: {
heading: 'Recovered document',
warning: 'Please copy/paste this somewhere before navigating away!',
copyButtonLabel: 'Copy to clipboard',
},
},
settingsDropdown: {
logOut: 'Log Out',
account: 'Account options dropdown',
},
toast: {
onFailToLoadEntries: 'Failed to load entry: %{details}',
onFailToLoadDeployPreview: 'Failed to load preview: %{details}',
onFailToPersist: 'Failed to persist entry: %{details}',
onFailToDelete: 'Failed to delete entry: %{details}',
onFailToUpdateStatus: 'Failed to update status: %{details}',
missingRequiredField: "Oops, you've missed a required field. Please complete before saving.",
entrySaved: 'Entry saved',
entryPublished: 'Entry published',
entryUnpublished: 'Entry unpublished',
onFailToPublishEntry: 'Failed to publish: %{details}',
onFailToUnpublishEntry: 'Failed to unpublish entry: %{details}',
entryUpdated: 'Entry status updated',
onDeleteUnpublishedChanges: 'Unpublished changes deleted',
onFailToAuth: '%{details}',
onLoggedOut: 'You have been logged out, please back up any data and login again',
onBackendDown:
'The backend service is experiencing an outage. See %{details} for more information',
},
},
workflow: {
workflow: {
loading: 'Loading Editorial Workflow Entries',
workflowHeading: 'Editorial Workflow',
newPost: 'New Post',
description:
'%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ',
dateFormat: 'MMMM D',
},
workflowCard: {
lastChange: '%{date} by %{author}',
lastChangeNoAuthor: '%{date}',
lastChangeNoDate: 'by %{author}',
deleteChanges: 'Delete changes',
deleteNewEntry: 'Delete new entry',
publishChanges: 'Publish changes',
publishNewEntry: 'Publish new entry',
},
workflowList: {
onDeleteEntry: 'Are you sure you want to delete this entry?',
onPublishingNotReadyEntry:
'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',
onPublishEntry: 'Are you sure you want to publish this entry?',
draftHeader: 'Drafts',
inReviewHeader: 'In Review',
readyHeader: 'Ready',
currentEntries: '%{smart_count} entry |||| %{smart_count} entries',
},
},
};
export default en;