Skip to content

Commit 3e82402

Browse files
committed
Update locale README
1 parent c801f5e commit 3e82402

File tree

1 file changed

+31
-33
lines changed

1 file changed

+31
-33
lines changed

README.md

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -270,42 +270,40 @@ const options = {
270270

271271
### 🏳️ Localization
272272

273-
Default is [EN_US](https://github.com/bytescale/bytescale-upload-widget-react/blob/main/lib/src/modules/locales/EN_US.ts):
273+
Default is [EN_US](https://github.com/bytescale/bytescale-upload-widget/blob/main/lib/src/modules/locales/EN_US.ts):
274274

275275
```javascript
276276
const myCustomLocale = {
277-
"error!": "Error!",
278-
"done": "Done",
279-
"addAnotherFile": "Add another file...",
280-
"addAnotherImage": "Add another image...",
281-
"cancel": "cancel",
282-
"cancelInPreviewWindow": "Cancel",
283-
"cancelled!": "cancelled",
284-
"continue": "Continue",
285-
"customValidationFailed": "Failed to validate file.",
286-
"crop": "Crop",
287-
"finish": "Finished",
288-
"finishIcon": true,
289-
"image": "Image",
290-
"maxFilesReached": "Maximum number of files:",
291-
"maxImagesReached": "Maximum number of images:",
292-
"maxSize": "File size limit:",
293-
"next": "Next",
294-
"of": "of",
295-
"orDragDropFile": "...or drag and drop a file.",
296-
"orDragDropFiles": "...or drag and drop files.",
297-
"orDragDropImage": "...or drag and drop an image.",
298-
"orDragDropImages": "...or drag and drop images.",
299-
"pleaseWait": "Please wait...",
300-
"removed!": "removed",
301-
"remove": "remove",
302-
"skip": "Skip",
303-
"unsupportedFileType": "File type not supported.",
304-
"uploadFile": "Upload a File",
305-
"uploadFiles": "Upload Files",
306-
"uploadImage": "Upload an Image",
307-
"uploadImages": "Upload Images",
308-
"validatingFile": "Validating file..."
277+
addAnotherFileBtn: "Add another file...",
278+
addAnotherImageBtn: "Add another image...",
279+
cancelBtn: "cancel",
280+
cancelBtnClicked: "cancelled",
281+
cancelPreviewBtn: "Cancel",
282+
continueBtn: "Continue",
283+
cropBtn: "Crop",
284+
customValidationFailed: "Failed to validate file.",
285+
doneBtn: "Done",
286+
fileSizeLimitPrefix: "File size limit:",
287+
finishBtn: "Finished",
288+
finishBtnIcon: true,
289+
imageCropNumberPrefix: "Image",
290+
maxFilesReachedPrefix: "Maximum number of files:",
291+
maxImagesReachedPrefix: "Maximum number of images:",
292+
orDragDropFile: "...or drag and drop a file.",
293+
orDragDropFileMulti: "...or drag and drop files.",
294+
orDragDropImage: "...or drag and drop an image.",
295+
orDragDropImageMulti: "...or drag and drop images.",
296+
processingFile: "Processing file...",
297+
removeBtn: "remove",
298+
removeBtnClicked: "removed",
299+
submitBtnError: "Error!",
300+
submitBtnLoading: "Please wait...",
301+
unsupportedFileType: "File type not supported.",
302+
uploadFileBtn: "Upload a File",
303+
uploadFileMultiBtn: "Upload Files",
304+
uploadImageBtn: "Upload an Image",
305+
uploadImageMultiBtn: "Upload Images",
306+
xOfY: "of"
309307
}
310308
```
311309

0 commit comments

Comments
 (0)