@payloadcms/translations 4.0.0-internal.5b1e7cd → 4.0.0-internal.5d2e3d1
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.
- package/LICENSE.md +1 -1
- package/dist/clientKeys.d.ts +1 -1
- package/dist/clientKeys.d.ts.map +1 -1
- package/dist/clientKeys.js +226 -21
- package/dist/clientKeys.js.map +1 -1
- package/dist/dateFNS/ar.js +1 -0
- package/dist/dateFNS/az.js +1 -0
- package/dist/dateFNS/bg.js +1 -0
- package/dist/dateFNS/bn.js +1 -0
- package/dist/dateFNS/ca.js +1 -0
- package/dist/dateFNS/chunk-YT6ULX4E.js +1 -0
- package/dist/dateFNS/cs.js +1 -0
- package/dist/dateFNS/da.js +1 -0
- package/dist/dateFNS/de.js +1 -0
- package/dist/dateFNS/es.js +1 -0
- package/dist/dateFNS/et.js +1 -0
- package/dist/dateFNS/fa-IR.js +1 -0
- package/dist/dateFNS/fr.js +1 -0
- package/dist/dateFNS/he.js +1 -0
- package/dist/dateFNS/hr.js +1 -0
- package/dist/dateFNS/hu.js +1 -0
- package/dist/dateFNS/id.js +1 -0
- package/dist/dateFNS/is.js +1 -0
- package/dist/dateFNS/it.js +1 -0
- package/dist/dateFNS/ja.js +1 -0
- package/dist/dateFNS/ko.js +1 -0
- package/dist/dateFNS/lt.js +1 -0
- package/dist/dateFNS/lv.js +1 -0
- package/dist/dateFNS/nb.js +1 -0
- package/dist/dateFNS/nl.js +1 -0
- package/dist/dateFNS/pl.js +1 -0
- package/dist/dateFNS/pt.js +1 -0
- package/dist/dateFNS/ro.js +1 -0
- package/dist/dateFNS/ru.js +1 -0
- package/dist/dateFNS/sk.js +1 -0
- package/dist/dateFNS/sl.js +1 -0
- package/dist/dateFNS/sr-Latn.js +1 -0
- package/dist/dateFNS/sr.js +1 -0
- package/dist/dateFNS/sv.js +1 -0
- package/dist/dateFNS/ta.js +1 -0
- package/dist/dateFNS/th.js +1 -0
- package/dist/dateFNS/tr.js +1 -0
- package/dist/dateFNS/uk.js +1 -0
- package/dist/dateFNS/vi.js +1 -0
- package/dist/dateFNS/zh-CN.js +1 -0
- package/dist/dateFNS/zh-TW.js +1 -0
- package/dist/importDateFNSLocale.js +41 -41
- package/dist/languages/ar.d.ts.map +1 -1
- package/dist/languages/ar.js +243 -26
- package/dist/languages/ar.js.map +1 -1
- package/dist/languages/az.d.ts.map +1 -1
- package/dist/languages/az.js +242 -25
- package/dist/languages/az.js.map +1 -1
- package/dist/languages/bg.d.ts.map +1 -1
- package/dist/languages/bg.js +243 -26
- package/dist/languages/bg.js.map +1 -1
- package/dist/languages/bnBd.d.ts.map +1 -1
- package/dist/languages/bnBd.js +243 -26
- package/dist/languages/bnBd.js.map +1 -1
- package/dist/languages/bnIn.d.ts.map +1 -1
- package/dist/languages/bnIn.js +243 -26
- package/dist/languages/bnIn.js.map +1 -1
- package/dist/languages/ca.d.ts.map +1 -1
- package/dist/languages/ca.js +243 -26
- package/dist/languages/ca.js.map +1 -1
- package/dist/languages/cs.d.ts.map +1 -1
- package/dist/languages/cs.js +243 -26
- package/dist/languages/cs.js.map +1 -1
- package/dist/languages/da.d.ts.map +1 -1
- package/dist/languages/da.js +243 -26
- package/dist/languages/da.js.map +1 -1
- package/dist/languages/de.d.ts.map +1 -1
- package/dist/languages/de.js +243 -26
- package/dist/languages/de.js.map +1 -1
- package/dist/languages/en.d.ts +240 -23
- package/dist/languages/en.d.ts.map +1 -1
- package/dist/languages/en.js +243 -26
- package/dist/languages/en.js.map +1 -1
- package/dist/languages/es.d.ts.map +1 -1
- package/dist/languages/es.js +243 -26
- package/dist/languages/es.js.map +1 -1
- package/dist/languages/et.d.ts.map +1 -1
- package/dist/languages/et.js +243 -26
- package/dist/languages/et.js.map +1 -1
- package/dist/languages/fa.d.ts.map +1 -1
- package/dist/languages/fa.js +243 -26
- package/dist/languages/fa.js.map +1 -1
- package/dist/languages/fr.d.ts.map +1 -1
- package/dist/languages/fr.js +243 -26
- package/dist/languages/fr.js.map +1 -1
- package/dist/languages/he.d.ts.map +1 -1
- package/dist/languages/he.js +243 -26
- package/dist/languages/he.js.map +1 -1
- package/dist/languages/hr.d.ts.map +1 -1
- package/dist/languages/hr.js +243 -26
- package/dist/languages/hr.js.map +1 -1
- package/dist/languages/hu.d.ts.map +1 -1
- package/dist/languages/hu.js +243 -26
- package/dist/languages/hu.js.map +1 -1
- package/dist/languages/hy.d.ts.map +1 -1
- package/dist/languages/hy.js +243 -26
- package/dist/languages/hy.js.map +1 -1
- package/dist/languages/id.d.ts.map +1 -1
- package/dist/languages/id.js +243 -26
- package/dist/languages/id.js.map +1 -1
- package/dist/languages/is.d.ts.map +1 -1
- package/dist/languages/is.js +243 -26
- package/dist/languages/is.js.map +1 -1
- package/dist/languages/it.d.ts.map +1 -1
- package/dist/languages/it.js +243 -26
- package/dist/languages/it.js.map +1 -1
- package/dist/languages/ja.d.ts.map +1 -1
- package/dist/languages/ja.js +255 -38
- package/dist/languages/ja.js.map +1 -1
- package/dist/languages/ko.d.ts.map +1 -1
- package/dist/languages/ko.js +243 -26
- package/dist/languages/ko.js.map +1 -1
- package/dist/languages/lt.d.ts.map +1 -1
- package/dist/languages/lt.js +243 -26
- package/dist/languages/lt.js.map +1 -1
- package/dist/languages/lv.d.ts.map +1 -1
- package/dist/languages/lv.js +243 -26
- package/dist/languages/lv.js.map +1 -1
- package/dist/languages/my.d.ts.map +1 -1
- package/dist/languages/my.js +368 -151
- package/dist/languages/my.js.map +1 -1
- package/dist/languages/nb.d.ts.map +1 -1
- package/dist/languages/nb.js +243 -26
- package/dist/languages/nb.js.map +1 -1
- package/dist/languages/nl.d.ts.map +1 -1
- package/dist/languages/nl.js +243 -26
- package/dist/languages/nl.js.map +1 -1
- package/dist/languages/pl.d.ts.map +1 -1
- package/dist/languages/pl.js +243 -26
- package/dist/languages/pl.js.map +1 -1
- package/dist/languages/pt.d.ts.map +1 -1
- package/dist/languages/pt.js +243 -26
- package/dist/languages/pt.js.map +1 -1
- package/dist/languages/ro.d.ts.map +1 -1
- package/dist/languages/ro.js +243 -26
- package/dist/languages/ro.js.map +1 -1
- package/dist/languages/rs.d.ts.map +1 -1
- package/dist/languages/rs.js +243 -26
- package/dist/languages/rs.js.map +1 -1
- package/dist/languages/rsLatin.d.ts.map +1 -1
- package/dist/languages/rsLatin.js +243 -26
- package/dist/languages/rsLatin.js.map +1 -1
- package/dist/languages/ru.d.ts.map +1 -1
- package/dist/languages/ru.js +243 -26
- package/dist/languages/ru.js.map +1 -1
- package/dist/languages/sk.d.ts.map +1 -1
- package/dist/languages/sk.js +243 -26
- package/dist/languages/sk.js.map +1 -1
- package/dist/languages/sl.d.ts.map +1 -1
- package/dist/languages/sl.js +243 -26
- package/dist/languages/sl.js.map +1 -1
- package/dist/languages/sv.d.ts.map +1 -1
- package/dist/languages/sv.js +243 -26
- package/dist/languages/sv.js.map +1 -1
- package/dist/languages/ta.d.ts.map +1 -1
- package/dist/languages/ta.js +243 -26
- package/dist/languages/ta.js.map +1 -1
- package/dist/languages/th.d.ts.map +1 -1
- package/dist/languages/th.js +243 -26
- package/dist/languages/th.js.map +1 -1
- package/dist/languages/tr.d.ts.map +1 -1
- package/dist/languages/tr.js +243 -26
- package/dist/languages/tr.js.map +1 -1
- package/dist/languages/uk.d.ts.map +1 -1
- package/dist/languages/uk.js +243 -26
- package/dist/languages/uk.js.map +1 -1
- package/dist/languages/vi.d.ts.map +1 -1
- package/dist/languages/vi.js +243 -26
- package/dist/languages/vi.js.map +1 -1
- package/dist/languages/zh.d.ts.map +1 -1
- package/dist/languages/zh.js +243 -26
- package/dist/languages/zh.js.map +1 -1
- package/dist/languages/zhTw.d.ts.map +1 -1
- package/dist/languages/zhTw.js +260 -43
- package/dist/languages/zhTw.js.map +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utilities/getTranslation.d.ts +3 -3
- package/dist/utilities/getTranslation.d.ts.map +1 -1
- package/dist/utilities/getTranslation.js +2 -4
- package/dist/utilities/getTranslation.js.map +1 -1
- package/dist/utilities/getTranslationsByContext.d.ts +242 -25
- package/dist/utilities/getTranslationsByContext.d.ts.map +1 -1
- package/dist/utilities/getTranslationsByContext.js +41 -33
- package/dist/utilities/getTranslationsByContext.js.map +1 -1
- package/dist/utilities/init.d.ts +4 -613
- package/dist/utilities/init.d.ts.map +1 -1
- package/dist/utilities/languages.d.ts +2 -2
- package/dist/utilities/languages.d.ts.map +1 -1
- package/package.json +20 -22
- package/dist/utilities/deepMergeSimple.spec.js +0 -81
- package/dist/utilities/deepMergeSimple.spec.js.map +0 -1
- package/dist/utilities/languages.spec.js +0 -42
- package/dist/utilities/languages.spec.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Language } from '../types.js';
|
|
2
|
-
export declare const getTranslationsByContext: (selectedLanguage: Language, context:
|
|
2
|
+
export declare const getTranslationsByContext: (selectedLanguage: Language, context: 'api' | 'client') => Record<string, unknown> | {
|
|
3
3
|
authentication: {
|
|
4
4
|
account: string;
|
|
5
5
|
accountOfCurrentUser: string;
|
|
@@ -15,10 +15,12 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
15
15
|
confirmGeneration: string;
|
|
16
16
|
confirmPassword: string;
|
|
17
17
|
createFirstUser: string;
|
|
18
|
+
createUser: string;
|
|
18
19
|
emailNotValid: string;
|
|
19
20
|
emailOrUsername: string;
|
|
20
21
|
emailSent: string;
|
|
21
22
|
emailVerified: string;
|
|
23
|
+
emailVerifiedRedirecting: string;
|
|
22
24
|
enableAPIKey: string;
|
|
23
25
|
failedToUnlock: string;
|
|
24
26
|
forceUnlock: string;
|
|
@@ -48,8 +50,10 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
48
50
|
newAccountCreated: string;
|
|
49
51
|
newAPIKeyGenerated: string;
|
|
50
52
|
newPassword: string;
|
|
53
|
+
notRedirected: string;
|
|
51
54
|
passed: string;
|
|
52
55
|
passwordResetSuccessfully: string;
|
|
56
|
+
resend: string;
|
|
53
57
|
resetPassword: string;
|
|
54
58
|
resetPasswordExpiration: string;
|
|
55
59
|
resetPasswordToken: string;
|
|
@@ -60,6 +64,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
60
64
|
tokenRefreshSuccessful: string;
|
|
61
65
|
unableToVerify: string;
|
|
62
66
|
username: string;
|
|
67
|
+
verificationFailedRequestNew: string;
|
|
63
68
|
verified: string;
|
|
64
69
|
verifiedSuccessfully: string;
|
|
65
70
|
verify: string;
|
|
@@ -69,6 +74,96 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
69
74
|
youAreReceivingResetPassword: string;
|
|
70
75
|
youDidNotRequestPassword: string;
|
|
71
76
|
};
|
|
77
|
+
branching: {
|
|
78
|
+
andMoreChanges: string;
|
|
79
|
+
branch: string;
|
|
80
|
+
branchClosed: string;
|
|
81
|
+
branchDescription: string;
|
|
82
|
+
branchedFrom: string;
|
|
83
|
+
branches: string;
|
|
84
|
+
branchHistory: string;
|
|
85
|
+
branchMerging: string;
|
|
86
|
+
branchName: string;
|
|
87
|
+
branchSettings: string;
|
|
88
|
+
cancelSchedule: string;
|
|
89
|
+
changedDocuments: string;
|
|
90
|
+
changesTo: string;
|
|
91
|
+
closeBranchAfterMerge: string;
|
|
92
|
+
closeBranchHelpOff: string;
|
|
93
|
+
closeBranchHelpOn: string;
|
|
94
|
+
confirmDiscardAll: string;
|
|
95
|
+
confirmDiscardSelected: string;
|
|
96
|
+
createAndSwitch: string;
|
|
97
|
+
createNewBranch: string;
|
|
98
|
+
currentChanges: string;
|
|
99
|
+
defaultBranch: string;
|
|
100
|
+
discardAll: string;
|
|
101
|
+
discardChanges: string;
|
|
102
|
+
discardedCount: string;
|
|
103
|
+
discarding: string;
|
|
104
|
+
discardSelected: string;
|
|
105
|
+
historyPageOf: string;
|
|
106
|
+
manage: string;
|
|
107
|
+
manageBranches: string;
|
|
108
|
+
merge: string;
|
|
109
|
+
mergeAllChanges: string;
|
|
110
|
+
mergeAllCount: string;
|
|
111
|
+
mergeBlocked: string;
|
|
112
|
+
mergeBranchInto: string;
|
|
113
|
+
mergeChanges: string;
|
|
114
|
+
mergeComplete: string;
|
|
115
|
+
merged: string;
|
|
116
|
+
mergedByCount: string;
|
|
117
|
+
mergedCount: string;
|
|
118
|
+
mergedOfTotal: string;
|
|
119
|
+
mergedOn: string;
|
|
120
|
+
mergeHistory: string;
|
|
121
|
+
mergeInterrupted: string;
|
|
122
|
+
mergeNow: string;
|
|
123
|
+
mergeOnlySelected: string;
|
|
124
|
+
mergePartial: string;
|
|
125
|
+
mergeScheduledFor: string;
|
|
126
|
+
mergeSelectedOfTotal: string;
|
|
127
|
+
mergeStarting: string;
|
|
128
|
+
merging: string;
|
|
129
|
+
mergingProgress: string;
|
|
130
|
+
noChangesYet: string;
|
|
131
|
+
operation_create: string;
|
|
132
|
+
operation_delete: string;
|
|
133
|
+
operation_update: string;
|
|
134
|
+
reviewingChangedDocuments: string;
|
|
135
|
+
scheduleAnotherMerge: string;
|
|
136
|
+
scheduleCancelled: string;
|
|
137
|
+
scheduleCount: string;
|
|
138
|
+
scheduledMerges: string;
|
|
139
|
+
scheduledToMerge: string;
|
|
140
|
+
scheduledToMergeOn: string;
|
|
141
|
+
scheduleHasNothingLeft: string;
|
|
142
|
+
scheduleMerge: string;
|
|
143
|
+
scheduleMergeHelp: string;
|
|
144
|
+
scheduleWillApplyAll: string;
|
|
145
|
+
scheduleWillApplySelected: string;
|
|
146
|
+
scheduling: string;
|
|
147
|
+
searchBranches: string;
|
|
148
|
+
selectBranch: string;
|
|
149
|
+
untouchedDocumentsNote: string;
|
|
150
|
+
};
|
|
151
|
+
commandPalette: {
|
|
152
|
+
actions: string;
|
|
153
|
+
createNew: string;
|
|
154
|
+
favorites: string;
|
|
155
|
+
hintActions: string;
|
|
156
|
+
hintClose: string;
|
|
157
|
+
hintCreate: string;
|
|
158
|
+
hintNavigate: string;
|
|
159
|
+
hintSelect: string;
|
|
160
|
+
noResults: string;
|
|
161
|
+
pinToFavorites: string;
|
|
162
|
+
placeholder: string;
|
|
163
|
+
recentlyVisited: string;
|
|
164
|
+
removeFromFavorites: string;
|
|
165
|
+
title: string;
|
|
166
|
+
};
|
|
72
167
|
dashboard: {
|
|
73
168
|
addButton: string;
|
|
74
169
|
addWidget: string;
|
|
@@ -80,7 +175,38 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
80
175
|
editingDashboard: string;
|
|
81
176
|
noItems: string;
|
|
82
177
|
resetLayout: string;
|
|
178
|
+
resizeWidget: string;
|
|
83
179
|
searchWidgets: string;
|
|
180
|
+
widgetAddPin: string;
|
|
181
|
+
widgetCollectionRequired: string;
|
|
182
|
+
widgetConfigurationError: string;
|
|
183
|
+
widgetDropFilesToUpload: string;
|
|
184
|
+
widgetInvalidCollection: string;
|
|
185
|
+
widgetInvalidFilterField: string;
|
|
186
|
+
widgetInvalidSortField: string;
|
|
187
|
+
widgetLimitLabel: string;
|
|
188
|
+
widgetNonSortableSortField: string;
|
|
189
|
+
widgetPageCount: string;
|
|
190
|
+
widgetPagination: string;
|
|
191
|
+
widgetPinned: string;
|
|
192
|
+
widgetPinnedEmpty: string;
|
|
193
|
+
widgetPinnedEmptyDescription: string;
|
|
194
|
+
widgetPinnedSaveError: string;
|
|
195
|
+
widgetQueryError: string;
|
|
196
|
+
widgetRecentlyViewedEmpty: string;
|
|
197
|
+
widgetRecentlyViewedEmptyDescription: string;
|
|
198
|
+
widgetRecentlyViewedFilterDescription: string;
|
|
199
|
+
widgetRecentlyViewedTitle: string;
|
|
200
|
+
widgetRecentsAndPinned: string;
|
|
201
|
+
widgetRemovePin: string;
|
|
202
|
+
widgetSelectCollectionFirst: string;
|
|
203
|
+
widgetSelectSortField: string;
|
|
204
|
+
widgetSortDirectionLabel: string;
|
|
205
|
+
widgetSortFieldLabel: string;
|
|
206
|
+
widgetTitleFallback: string;
|
|
207
|
+
widgetTitleLabel: string;
|
|
208
|
+
widgetUploadDropzoneDescription: string;
|
|
209
|
+
widgetUploadFiles: string;
|
|
84
210
|
};
|
|
85
211
|
error: {
|
|
86
212
|
accountAlreadyActivated: string;
|
|
@@ -92,6 +218,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
92
218
|
emailOrPasswordIncorrect: string;
|
|
93
219
|
failedToResetLayout: string;
|
|
94
220
|
failedToSaveLayout: string;
|
|
221
|
+
fileFetchFailed: string;
|
|
95
222
|
followingFieldsInvalid_one: string;
|
|
96
223
|
followingFieldsInvalid_other: string;
|
|
97
224
|
incorrectCollection: string;
|
|
@@ -108,6 +235,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
108
235
|
missingIDOfDocument: string;
|
|
109
236
|
missingIDOfVersion: string;
|
|
110
237
|
missingRequiredData: string;
|
|
238
|
+
noFileFoundInClipboard: string;
|
|
111
239
|
noFilesUploaded: string;
|
|
112
240
|
noMatchedField: string;
|
|
113
241
|
notAllowedToAccessPage: string;
|
|
@@ -122,6 +250,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
122
250
|
tokenNotProvided: string;
|
|
123
251
|
unableToCopy: string;
|
|
124
252
|
unableToDeleteCount: string;
|
|
253
|
+
unableToReadClipboard: string;
|
|
125
254
|
unableToReindexCollection: string;
|
|
126
255
|
unableToUpdateCount: string;
|
|
127
256
|
unauthorized: string;
|
|
@@ -130,6 +259,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
130
259
|
unPublishingDocument: string;
|
|
131
260
|
unspecific: string;
|
|
132
261
|
unverifiedEmail: string;
|
|
262
|
+
urlNotAllowed: string;
|
|
133
263
|
userEmailAlreadyRegistered: string;
|
|
134
264
|
userLocked: string;
|
|
135
265
|
usernameAlreadyRegistered: string;
|
|
@@ -145,6 +275,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
145
275
|
addRelationship: string;
|
|
146
276
|
addUpload: string;
|
|
147
277
|
block: string;
|
|
278
|
+
blockName: string;
|
|
148
279
|
blocks: string;
|
|
149
280
|
blockType: string;
|
|
150
281
|
chooseBetweenCustomTextOrDocument: string;
|
|
@@ -157,6 +288,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
157
288
|
editLink: string;
|
|
158
289
|
editRelationship: string;
|
|
159
290
|
enterURL: string;
|
|
291
|
+
hidePassword: string;
|
|
160
292
|
internalLink: string;
|
|
161
293
|
itemsAndMore: string;
|
|
162
294
|
labelRelationship: string;
|
|
@@ -177,35 +309,13 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
177
309
|
selectExistingLabel: string;
|
|
178
310
|
selectFieldsToEdit: string;
|
|
179
311
|
showAll: string;
|
|
312
|
+
showPassword: string;
|
|
180
313
|
swapRelationship: string;
|
|
181
314
|
swapUpload: string;
|
|
182
315
|
textToDisplay: string;
|
|
183
316
|
toggleBlock: string;
|
|
184
317
|
uploadNewLabel: string;
|
|
185
318
|
};
|
|
186
|
-
folder: {
|
|
187
|
-
browseByFolder: string;
|
|
188
|
-
byFolder: string;
|
|
189
|
-
deleteFolder: string;
|
|
190
|
-
folderName: string;
|
|
191
|
-
folders: string;
|
|
192
|
-
folderTypeDescription: string;
|
|
193
|
-
itemHasBeenMoved: string;
|
|
194
|
-
itemHasBeenMovedToRoot: string;
|
|
195
|
-
itemsMovedToFolder: string;
|
|
196
|
-
itemsMovedToRoot: string;
|
|
197
|
-
moveFolder: string;
|
|
198
|
-
moveItemsToFolderConfirmation: string;
|
|
199
|
-
moveItemsToRootConfirmation: string;
|
|
200
|
-
moveItemToFolderConfirmation: string;
|
|
201
|
-
moveItemToRootConfirmation: string;
|
|
202
|
-
movingFromFolder: string;
|
|
203
|
-
newFolder: string;
|
|
204
|
-
noFolder: string;
|
|
205
|
-
renameFolder: string;
|
|
206
|
-
searchByNameInFolder: string;
|
|
207
|
-
selectFolderForItem: string;
|
|
208
|
-
};
|
|
209
319
|
general: {
|
|
210
320
|
name: string;
|
|
211
321
|
aboutToDelete: string;
|
|
@@ -220,25 +330,36 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
220
330
|
aboutToRestoreCount: string;
|
|
221
331
|
aboutToTrash: string;
|
|
222
332
|
aboutToTrashCount: string;
|
|
333
|
+
accepts: string;
|
|
334
|
+
access: string;
|
|
223
335
|
addBelow: string;
|
|
224
336
|
addFilter: string;
|
|
225
337
|
adminTheme: string;
|
|
226
338
|
all: string;
|
|
227
339
|
allCollections: string;
|
|
228
340
|
allLocales: string;
|
|
341
|
+
allowedTypes: string;
|
|
229
342
|
and: string;
|
|
230
343
|
anotherUser: string;
|
|
231
344
|
anotherUserTakenOver: string;
|
|
345
|
+
apiResponse: string;
|
|
232
346
|
applyChanges: string;
|
|
233
347
|
ascending: string;
|
|
348
|
+
auto: string;
|
|
234
349
|
automatic: string;
|
|
235
350
|
backToDashboard: string;
|
|
351
|
+
breadcrumb: string;
|
|
352
|
+
by: string;
|
|
236
353
|
cancel: string;
|
|
237
354
|
changesNotSaved: string;
|
|
355
|
+
checked: string;
|
|
238
356
|
clear: string;
|
|
239
357
|
clearAll: string;
|
|
358
|
+
clearSearch: string;
|
|
240
359
|
close: string;
|
|
360
|
+
closed: string;
|
|
241
361
|
collapse: string;
|
|
362
|
+
collection: string;
|
|
242
363
|
collections: string;
|
|
243
364
|
columns: string;
|
|
244
365
|
columnToSort: string;
|
|
@@ -261,6 +382,7 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
261
382
|
create: string;
|
|
262
383
|
created: string;
|
|
263
384
|
createdAt: string;
|
|
385
|
+
createdBy: string;
|
|
264
386
|
createNew: string;
|
|
265
387
|
createNewLabel: string;
|
|
266
388
|
creating: string;
|
|
@@ -269,8 +391,10 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
269
391
|
custom: string;
|
|
270
392
|
dark: string;
|
|
271
393
|
dashboard: string;
|
|
394
|
+
decrement: string;
|
|
272
395
|
delete: string;
|
|
273
396
|
deleted: string;
|
|
397
|
+
deletedAgo: string;
|
|
274
398
|
deletedAt: string;
|
|
275
399
|
deletedCountSuccessfully: string;
|
|
276
400
|
deletedSuccessfully: string;
|
|
@@ -286,10 +410,18 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
286
410
|
documentModified: string;
|
|
287
411
|
documentOutOfDate: string;
|
|
288
412
|
documents: string;
|
|
413
|
+
dragCancelled: string;
|
|
414
|
+
dragDropped: string;
|
|
415
|
+
dragInstructions: string;
|
|
416
|
+
dragMoved: string;
|
|
417
|
+
dragPickedUp: string;
|
|
418
|
+
dragToMove: string;
|
|
419
|
+
dragToReorder: string;
|
|
289
420
|
duplicate: string;
|
|
290
421
|
duplicateWithoutSaving: string;
|
|
291
422
|
edit: string;
|
|
292
423
|
editAll: string;
|
|
424
|
+
editColumns: string;
|
|
293
425
|
editedSince: string;
|
|
294
426
|
editing: string;
|
|
295
427
|
editingLabel_many: string;
|
|
@@ -301,20 +433,28 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
301
433
|
emailAddress: string;
|
|
302
434
|
emptyTrash: string;
|
|
303
435
|
emptyTrashLabel: string;
|
|
436
|
+
enhancedContrastMode: string;
|
|
437
|
+
enterANumber: string;
|
|
304
438
|
enterAValue: string;
|
|
305
439
|
error: string;
|
|
306
440
|
errors: string;
|
|
307
441
|
exitLivePreview: string;
|
|
442
|
+
expand: string;
|
|
308
443
|
export: string;
|
|
309
444
|
fallbackToDefaultLocale: string;
|
|
310
445
|
false: string;
|
|
446
|
+
field: string;
|
|
311
447
|
filter: string;
|
|
312
448
|
filters: string;
|
|
313
449
|
filterWhere: string;
|
|
314
450
|
globals: string;
|
|
315
451
|
goBack: string;
|
|
452
|
+
goToPage: string;
|
|
453
|
+
gridLayout: string;
|
|
316
454
|
groupByLabel: string;
|
|
455
|
+
hideSidebar: string;
|
|
317
456
|
import: string;
|
|
457
|
+
increment: string;
|
|
318
458
|
isEditing: string;
|
|
319
459
|
item: string;
|
|
320
460
|
items: string;
|
|
@@ -326,9 +466,11 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
326
466
|
light: string;
|
|
327
467
|
livePreview: string;
|
|
328
468
|
loading: string;
|
|
469
|
+
loadMore: string;
|
|
329
470
|
locale: string;
|
|
330
471
|
locales: string;
|
|
331
472
|
lock: string;
|
|
473
|
+
manageLabel: string;
|
|
332
474
|
menu: string;
|
|
333
475
|
moreOptions: string;
|
|
334
476
|
move: string;
|
|
@@ -341,10 +483,12 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
341
483
|
newLabel: string;
|
|
342
484
|
newPassword: string;
|
|
343
485
|
next: string;
|
|
486
|
+
nextPage: string;
|
|
344
487
|
no: string;
|
|
345
488
|
noDateSelected: string;
|
|
346
489
|
noFiltersSet: string;
|
|
347
490
|
noLabel: string;
|
|
491
|
+
noMatchesFound: string;
|
|
348
492
|
none: string;
|
|
349
493
|
noOptions: string;
|
|
350
494
|
noResults: string;
|
|
@@ -353,6 +497,8 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
353
497
|
notFound: string;
|
|
354
498
|
nothingFound: string;
|
|
355
499
|
noTrashResults: string;
|
|
500
|
+
notSelectedDocument: string;
|
|
501
|
+
notShownInTable: string;
|
|
356
502
|
noUpcomingEventsScheduled: string;
|
|
357
503
|
noValue: string;
|
|
358
504
|
of: string;
|
|
@@ -361,21 +507,30 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
361
507
|
openInNewWindow: string;
|
|
362
508
|
or: string;
|
|
363
509
|
order: string;
|
|
510
|
+
original: string;
|
|
364
511
|
overwriteExistingData: string;
|
|
365
512
|
pageNotFound: string;
|
|
513
|
+
pageNumberRange: string;
|
|
366
514
|
password: string;
|
|
515
|
+
pasteBelow: string;
|
|
367
516
|
pasteField: string;
|
|
368
517
|
pasteRow: string;
|
|
369
518
|
payloadSettings: string;
|
|
370
519
|
permanentlyDelete: string;
|
|
371
520
|
permanentlyDeletedCountSuccessfully: string;
|
|
372
521
|
perPage: string;
|
|
522
|
+
perPageLabel: string;
|
|
523
|
+
presets: string;
|
|
373
524
|
previous: string;
|
|
525
|
+
previousPage: string;
|
|
374
526
|
reindex: string;
|
|
375
527
|
reindexingAll: string;
|
|
376
528
|
reloadDocument: string;
|
|
377
529
|
remove: string;
|
|
530
|
+
removeFilter: string;
|
|
378
531
|
rename: string;
|
|
532
|
+
replaceRow: string;
|
|
533
|
+
requiredFields: string;
|
|
379
534
|
reset: string;
|
|
380
535
|
resetPreferences: string;
|
|
381
536
|
resetPreferencesDescription: string;
|
|
@@ -384,23 +539,35 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
384
539
|
restoreAsPublished: string;
|
|
385
540
|
restoredCountSuccessfully: string;
|
|
386
541
|
restoring: string;
|
|
542
|
+
retry: string;
|
|
387
543
|
row: string;
|
|
388
544
|
rows: string;
|
|
389
545
|
save: string;
|
|
390
546
|
saveChanges: string;
|
|
391
547
|
saving: string;
|
|
392
548
|
schedulePublishFor: string;
|
|
549
|
+
searchAutomatically: string;
|
|
393
550
|
searchBy: string;
|
|
551
|
+
searchCleared: string;
|
|
552
|
+
searchColumns: string;
|
|
553
|
+
searchGroups: string;
|
|
554
|
+
searchResults: string;
|
|
394
555
|
select: string;
|
|
395
556
|
selectAll: string;
|
|
396
557
|
selectAllRows: string;
|
|
397
558
|
selectedCount: string;
|
|
559
|
+
selectedDocument: string;
|
|
398
560
|
selectLabel: string;
|
|
399
561
|
selectValue: string;
|
|
562
|
+
settings: string;
|
|
400
563
|
showAllLabel: string;
|
|
564
|
+
shownInTable: string;
|
|
565
|
+
showSidebar: string;
|
|
566
|
+
skipToContent: string;
|
|
401
567
|
sorryNotFound: string;
|
|
402
568
|
sort: string;
|
|
403
569
|
sortByLabelDirection: string;
|
|
570
|
+
sortByOrderToReorder: string;
|
|
404
571
|
stayOnThisPage: string;
|
|
405
572
|
submissionSuccessful: string;
|
|
406
573
|
submit: string;
|
|
@@ -409,23 +576,29 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
409
576
|
successfullyCreated: string;
|
|
410
577
|
successfullyDuplicated: string;
|
|
411
578
|
successfullyReindexed: string;
|
|
579
|
+
tableLayout: string;
|
|
412
580
|
takeOver: string;
|
|
581
|
+
theme: string;
|
|
413
582
|
thisLanguage: string;
|
|
414
583
|
time: string;
|
|
415
584
|
timezone: string;
|
|
416
585
|
titleDeleted: string;
|
|
417
586
|
titleRestored: string;
|
|
418
587
|
titleTrashed: string;
|
|
588
|
+
toggle: string;
|
|
419
589
|
trash: string;
|
|
420
590
|
trashedCountSuccessfully: string;
|
|
421
591
|
true: string;
|
|
422
592
|
unauthorized: string;
|
|
593
|
+
unchecked: string;
|
|
423
594
|
unlock: string;
|
|
424
595
|
unsavedChanges: string;
|
|
425
596
|
unsavedChangesDuplicate: string;
|
|
426
597
|
untitled: string;
|
|
427
598
|
upcomingEvents: string;
|
|
599
|
+
updatedAgo: string;
|
|
428
600
|
updatedAt: string;
|
|
601
|
+
updatedBy: string;
|
|
429
602
|
updatedCountSuccessfully: string;
|
|
430
603
|
updatedLabelSuccessfully: string;
|
|
431
604
|
updatedSuccessfully: string;
|
|
@@ -440,8 +613,35 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
440
613
|
viewing: string;
|
|
441
614
|
viewReadOnly: string;
|
|
442
615
|
welcome: string;
|
|
616
|
+
where: string;
|
|
443
617
|
yes: string;
|
|
444
618
|
};
|
|
619
|
+
hierarchy: {
|
|
620
|
+
folderLocation: string;
|
|
621
|
+
goTo: string;
|
|
622
|
+
itemsMovedTo: string;
|
|
623
|
+
itemsMovedToRoot: string;
|
|
624
|
+
moveTo: string;
|
|
625
|
+
moveToRoot: string;
|
|
626
|
+
noParent: string;
|
|
627
|
+
noResults: string;
|
|
628
|
+
removeFrom: string;
|
|
629
|
+
searchLabel: string;
|
|
630
|
+
searchResults: string;
|
|
631
|
+
};
|
|
632
|
+
llmInstructions: {
|
|
633
|
+
additionalInstructions: string;
|
|
634
|
+
collectionDescription: string;
|
|
635
|
+
collectionSystemDescription: string;
|
|
636
|
+
editInstructions: string;
|
|
637
|
+
global: string;
|
|
638
|
+
globalDescription: string;
|
|
639
|
+
globalSystemDescription: string;
|
|
640
|
+
instructions: string;
|
|
641
|
+
systemInstructions: string;
|
|
642
|
+
targetCannotBeChanged: string;
|
|
643
|
+
title: string;
|
|
644
|
+
};
|
|
445
645
|
localization: {
|
|
446
646
|
cannotCopySameLocale: string;
|
|
447
647
|
copyFrom: string;
|
|
@@ -474,8 +674,18 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
474
674
|
addFile: string;
|
|
475
675
|
addFiles: string;
|
|
476
676
|
bulkUpload: string;
|
|
677
|
+
copyLinkToFile: string;
|
|
678
|
+
copyURL: string;
|
|
477
679
|
crop: string;
|
|
680
|
+
cropBottom: string;
|
|
681
|
+
cropBottomLeft: string;
|
|
682
|
+
cropBottomRight: string;
|
|
683
|
+
cropLeft: string;
|
|
684
|
+
cropRight: string;
|
|
478
685
|
cropToolDescription: string;
|
|
686
|
+
cropTop: string;
|
|
687
|
+
cropTopLeft: string;
|
|
688
|
+
cropTopRight: string;
|
|
479
689
|
download: string;
|
|
480
690
|
dragAndDrop: string;
|
|
481
691
|
dragAndDropHere: string;
|
|
@@ -486,12 +696,17 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
486
696
|
fileToUpload: string;
|
|
487
697
|
focalPoint: string;
|
|
488
698
|
focalPointDescription: string;
|
|
699
|
+
fromURL: string;
|
|
489
700
|
height: string;
|
|
490
701
|
lessInfo: string;
|
|
702
|
+
linkToFile: string;
|
|
491
703
|
moreInfo: string;
|
|
492
704
|
noFile: string;
|
|
705
|
+
pasteFromClipboard: string;
|
|
493
706
|
pasteURL: string;
|
|
494
707
|
previewSizes: string;
|
|
708
|
+
renameFile: string;
|
|
709
|
+
replaceFile: string;
|
|
495
710
|
selectCollectionToBrowse: string;
|
|
496
711
|
selectFile: string;
|
|
497
712
|
setCropArea: string;
|
|
@@ -530,6 +745,8 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
530
745
|
type: string;
|
|
531
746
|
aboutToPublishSelection: string;
|
|
532
747
|
aboutToRestore: string;
|
|
748
|
+
aboutToRestoreAsDraft: string;
|
|
749
|
+
aboutToRestoreAsDraftAllLocales: string;
|
|
533
750
|
aboutToRestoreGlobal: string;
|
|
534
751
|
aboutToRevertToPublished: string;
|
|
535
752
|
aboutToUnpublish: string;
|
|
@@ -608,5 +825,5 @@ export declare const getTranslationsByContext: (selectedLanguage: Language, cont
|
|
|
608
825
|
viewingVersions: string;
|
|
609
826
|
viewingVersionsGlobal: string;
|
|
610
827
|
};
|
|
611
|
-
}
|
|
828
|
+
};
|
|
612
829
|
//# sourceMappingURL=getTranslationsByContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTranslationsByContext.d.ts","sourceRoot":"","sources":["../../src/utilities/getTranslationsByContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"getTranslationsByContext.d.ts","sourceRoot":"","sources":["../../src/utilities/getTranslationsByContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AA6E3C,eAAO,MAAM,wBAAwB,qBAAsB,QAAQ,WAAW,KAAK,GAAG,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM7F,CAAA"}
|
|
@@ -1,41 +1,49 @@
|
|
|
1
1
|
import { clientTranslationKeys } from '../clientKeys.js';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The client translation keys, grouped by namespace. For example, the keys `general:cancel`,
|
|
4
|
+
* `general:item` and `authentication:account` are stored as:
|
|
5
|
+
*
|
|
6
|
+
* `Map { 'general' => Set { 'cancel', 'item' }, 'authentication' => Set { 'account' } }`
|
|
7
|
+
*/ const clientKeysByNamespace = new Map();
|
|
8
|
+
for (const clientKey of clientTranslationKeys){
|
|
9
|
+
const separatorIndex = clientKey.indexOf(':');
|
|
10
|
+
const namespace = clientKey.slice(0, separatorIndex);
|
|
11
|
+
const key = clientKey.slice(separatorIndex + 1);
|
|
12
|
+
const keys = clientKeysByNamespace.get(namespace) ?? new Set();
|
|
13
|
+
clientKeysByNamespace.set(namespace, keys.add(key));
|
|
14
|
+
}
|
|
15
|
+
/** Plural forms of a key, for example `item_one` and `item_other` for `item` */ const pluralSuffix = /_(?:zero|one|two|few|many|other)$/;
|
|
16
|
+
/**
|
|
17
|
+
* Keeps only the translations the admin needs in the browser: the keys listed in
|
|
18
|
+
* `clientTranslationKeys`, plus their plural forms. Namespaces that end up empty are left out.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // With the client keys `general:cancel` and `general:item`:
|
|
22
|
+
* filterClientKeys({
|
|
23
|
+
* general: { cancel: 'Cancel', item: 'Item', item_other: 'Items', save: 'Save' },
|
|
24
|
+
* error: { notFound: 'Not found' },
|
|
25
|
+
* })
|
|
26
|
+
* // => { general: { cancel: 'Cancel', item: 'Item', item_other: 'Items' } }
|
|
27
|
+
*/ function filterClientKeys(translations) {
|
|
3
28
|
const result = {};
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
result[namespaceKey] = value;
|
|
29
|
+
for (const [namespace, value] of Object.entries(translations)){
|
|
30
|
+
if (namespace === '$schema') {
|
|
31
|
+
result[namespace] = value;
|
|
8
32
|
continue;
|
|
9
33
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (parentGroupKey === groupKey) {
|
|
19
|
-
if (namespaceKey === selector) {
|
|
20
|
-
result[selector] = value;
|
|
21
|
-
} else {
|
|
22
|
-
const pluralKeys = [
|
|
23
|
-
'zero',
|
|
24
|
-
'one',
|
|
25
|
-
'two',
|
|
26
|
-
'few',
|
|
27
|
-
'many',
|
|
28
|
-
'other'
|
|
29
|
-
];
|
|
30
|
-
pluralKeys.forEach((pluralKey)=>{
|
|
31
|
-
if (namespaceKey === `${selector}_${pluralKey}`) {
|
|
32
|
-
result[`${selector}_${pluralKey}`] = value;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
34
|
+
const clientKeys = clientKeysByNamespace.get(namespace);
|
|
35
|
+
if (!clientKeys || typeof value !== 'object' || value === null) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
const clientTranslations = {};
|
|
39
|
+
for (const [key, translation] of Object.entries(value)){
|
|
40
|
+
if (clientKeys.has(key) || clientKeys.has(key.replace(pluralSuffix, ''))) {
|
|
41
|
+
clientTranslations[key] = translation;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
44
|
+
if (Object.keys(clientTranslations).length > 0) {
|
|
45
|
+
result[namespace] = clientTranslations;
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
return result;
|
|
41
49
|
}
|
|
@@ -52,7 +60,7 @@ function sortObject(obj) {
|
|
|
52
60
|
}
|
|
53
61
|
export const getTranslationsByContext = (selectedLanguage, context)=>{
|
|
54
62
|
if (context === 'client') {
|
|
55
|
-
return sortObject(
|
|
63
|
+
return sortObject(filterClientKeys(selectedLanguage.translations));
|
|
56
64
|
} else {
|
|
57
65
|
return selectedLanguage.translations;
|
|
58
66
|
}
|