Importing and setting the English locale.
import { locale } from 'filepond/locales/en-gb.js';
defineFilePond({
locale,
});
Labels in the en-gb.js file.
export const core = {
abort: “Abort”,
remove: “Remove”,
reset: “Reset”,
undo: “Undo”,
cancel: “Cancel”,
import: “Import”,
store: “Store”,
revert: “Revert”,
busy: “Busy”,
loading: “Loading”,
close: “Close”,
unitB: {
1: “byte”,
else: “bytes”,
},
unitKB: “KB”,
unitMB: “MB”,
unitGB: “GB”,
unitTB: “TB”,
unitPB: “PB”,
unitKiB: “KiB”,
unitMiB: “MiB”,
unitGiB: “GiB”,
unitTiB: “TiB”,
unitPiB: “PiB”,
unitPixels: {
1: “pixel”,
else: “pixels”,
},
unitFiles: {
1: “file”,
else: “files”,
},
error: “Error”,
warning: “Warning”,
success: “Success”,
info: “Info”,
system: “System”,
device: “Device”,
camera: “Camera”,
link: “Link”,
descriptionBrowse: “[Select {{maxFilesUnit}}]”,
descriptionBrowseDrop: “Drop {{maxFilesUnit}} here, or [browse]”,
descriptionBrowseDropSelect:
“Drop {{maxFilesUnit}} here, [browse], or select from:”,
descriptionBrowseSelect: “[Browse], or select {{maxFilesUnit}} from:”,
descriptionSelect: “Select {{maxFilesUnit}} from:”,
fileMainTypeImage: “image”,
fileMainTypeVideo: “video”,
fileMainTypeAudio: “audio”,
fileMainTypeApplication: “file”,
assistAbort: “Tap to cancel”,
assistUndo: “Tap to undo”,
loadError: “Failed to load file.”,
loadDataTransferProgress: “Loading files”,
loadDataTransferInfo: “Processed {{processedFiles}} of {{totalFiles}} files”,
validationInvalid: “Invalid file.”,
validationFileNameMissing: “File name missing.”,
validationInvalidEntries: “The file list contains invalid items.”,
validationInvalidState: “The file list is in an invalid state.”,
validationInvalidBusy: “The file list is busy.”,
validationInvalidEmpty: {
template: “Please select {{files}}.”,
variables: {
files: {
context: “multiple”,
map: {
false: “a file”,
true: “one or more files”,
},
},
},
},
ariaRequired: “required”,
ariaNoEntries: “No {{maxFilesUnit}} selected”,
ariaSingleEntry: “Selected {{name}}”,
ariaMultipleEntries: “{{count}} files selected”,
ariaItemRoleDescription: “Sortable”,
ariaDragDescription:
“Press space to pick up and drop an item. Use the up and down arrow keys to move it to a new position.”,
ariaDragStateDrop: “Dropped {{name}} at position {{position}}”,
ariaDragStateGrab: “Picked up {{name}} at position {{position}}”,
ariaDragStateSort: “Moved {{name}} to position {{position}} of {{total}}”,
};
export const media = { mediaEdit: “Edit”, mediaPlay: “Play”, mediaPause: “Pause”, mediaSilent: “No audio”, mediaUnmute: “Unmute”, mediaMute: “Mute”, mediaFullscreen: “Fullscreen”, mediaLoadError: “Failed to load {{fileMainType}}.”, mediaPlayError: “Failed to play video.”, };
export const store = { storeError: “Failed to store file.”, storeRestoreError: “Failed to load file.”, storeRestoreProgress: “Loading {{progress}}%”, storeStorageQueued: “Awaiting upload”, storeStorageProgress: “Uploading {{progress}}%”, storeStorageComplete: “Upload complete”, storeAwaitingCompletion: “Not all files have been stored.”, };
export const transform = { transformEditBusy: “Editing file data”, transformError: “Failed to edit file data, please try again.”, };
export const validation = { validationFileSizeUnderflow: “This file is too small. Minimum size is {{minSize}} {{minSizeUnit}}.”, validationFileSizeOverflow: “This file is too large. Maximum size is {{maxSize}} {{maxSizeUnit}}.”, validationFileMimeTypeMismatch: { template: “This file type is not allowed. {{accepted}}.”, variables: { accepted: { context: “count”, map: { 1: “File must be of type {{accept}}”, else: “Accepted file types are: {{accept}}”, }, }, }, }, validationFileExtensionMismatch: { template: “This file extension is not allowed. {{accepted}}.”, variables: { accepted: { context: “count”, map: { 1: “File must have the {{accept}} extension”, else: “Accepted extensions are: {{accept}}”, }, }, }, }, validationFileNameMissing: “File name missing.”, validationFileNameMismatch: “This file name is invalid.”, validationMediaSizeUnavailable: “Failed to read media size.”, validationMediaWidthRangeMismatch: “The {{fileMainType}} width is invalid. Width must be between {{minWidth}} and {{maxWidth}} {{maxWidthUnit}}.”, validationMediaWidthUnderflow: “The {{fileMainType}} is too small. Minimum width is {{minWidth}} {{minWidthUnit}}.”, validationMediaWidthOverflow: “The {{fileMainType}} is too large. Maximum width is {{maxWidth}} {{maxWidthUnit}}.”, validationMediaHeightRangeMismatch: “The {{fileMainType}} height is invalid. Height must be between {{minHeight}} and {{maxHeight}} {{maxHeightUnit}}.”, validationMediaHeightUnderflow: “The {{fileMainType}} is too small. Minimum height is {{minHeight}} {{minHeightUnit}}.”, validationMediaHeightOverflow: “The {{fileMainType}} is too large. Maximum height is {{maxHeight}} {{maxHeightUnit}}.”, validationMediaResolutionRangeMismatch: “The {{fileMainType}} resolution is invalid. Resolution must be between {{minResolution}}MP and {{maxResolution}}MP.”, validationMediaResolutionUnderflow: “The {{fileMainType}} resolution is invalid. Minimum resolution is {{minResolution}}MP.”, validationMediaResolutionOverflow: “The {{fileMainType}} resolution is invalid. Maximum resolution is {{maxResolution}}MP.”, validationListSizeUnderflow: “Total file size is too small. Minimum total size is {{minSize}} {{minSizeUnit}}.”, validationListSizeOverflow: “Total file size is too large. Maximum total size is {{maxSize}} {{maxSizeUnit}}.”, validationListEntryCountUnderflow: “Too few files in the list. Minimum amount is {{minFiles}} {{minFilesUnit}}.”, validationListEntryCountOverflow: “Too many files in the list. Maximum amount is {{maxFiles}} {{maxFilesUnit}}.”, };
export const validationFileExtension = { validationFileExtensionMismatch: { template: “This file extension is not allowed. {{accepted}}.”, variables: { accepted: { context: “count”, map: { 1: “File must have the {{accept}} extension”, else: “Accepted extensions are: {{accept}}”, }, }, }, }, };
export const validationFileMimeType = { validationFileMimeTypeMismatch: { template: “This file type is not allowed. {{accepted}}.”, variables: { accepted: { context: “count”, map: { 1: “File must be of type {{accept}}”, else: “Accepted file types are: {{accept}}”, }, }, }, }, };
export const validationFileName = { validationFileNameMissing: “File name missing.”, validationFileNameMismatch: “This file name is invalid.”, };
export const validationFileSize = { validationFileSizeUnderflow: “This file is too small. Minimum size is {{minSize}} {{minSizeUnit}}.”, validationFileSizeOverflow: “This file is too large. Maximum size is {{maxSize}} {{maxSizeUnit}}.”, };
export const validationListCount = { validationListEntryCountUnderflow: “Too few files in the list. Minimum amount is {{minFiles}} {{minFilesUnit}}.”, validationListEntryCountOverflow: “Too many files in the list. Maximum amount is {{maxFiles}} {{maxFilesUnit}}.”, };
export const validationListSize = { validationListSizeUnderflow: “Total file size is too small. Minimum total size is {{minSize}} {{minSizeUnit}}.”, validationListSizeOverflow: “Total file size is too large. Maximum total size is {{maxSize}} {{maxSizeUnit}}.”, };
export const validationMediaResolution = { validationMediaSizeUnavailable: “Failed to read media size.”, validationMediaWidthRangeMismatch: “The {{fileMainType}} width is invalid. Width must be between {{minWidth}} and {{maxWidth}} {{maxWidthUnit}}.”, validationMediaWidthUnderflow: “The {{fileMainType}} is too small. Minimum width is {{minWidth}} {{minWidthUnit}}.”, validationMediaWidthOverflow: “The {{fileMainType}} is too large. Maximum width is {{maxWidth}} {{maxWidthUnit}}.”, validationMediaHeightRangeMismatch: “The {{fileMainType}} height is invalid. Height must be between {{minHeight}} and {{maxHeight}} {{maxHeightUnit}}.”, validationMediaHeightUnderflow: “The {{fileMainType}} is too small. Minimum height is {{minHeight}} {{minHeightUnit}}.”, validationMediaHeightOverflow: “The {{fileMainType}} is too large. Maximum height is {{maxHeight}} {{maxHeightUnit}}.”, validationMediaResolutionRangeMismatch: “The {{fileMainType}} resolution is invalid. Resolution must be between {{minResolution}}MP and {{maxResolution}}MP.”, validationMediaResolutionUnderflow: “The {{fileMainType}} resolution is invalid. Minimum resolution is {{minResolution}}MP.”, validationMediaResolutionOverflow: “The {{fileMainType}} resolution is invalid. Maximum resolution is {{maxResolution}}MP.”, };
export const locale = { …core, …media, …store, …transform, …validation, …validationFileExtension, …validationFileMimeType, …validationFileName, …validationFileSize, …validationListCount, …validationListSize, …validationMediaResolution, };