vue-clip icon indicating copy to clipboard operation
vue-clip copied to clipboard

Plugin localization

Open manuman94 opened this issue 5 years ago • 1 comments

Hi!

Thank you for this awesome Vue addon.

I tried to translate Dropzone's default messages and I couldn't find a way to do it.

Dropzone has this variables that you can override by filling them in the desired language:

Dropzone.prototype.defaultOptions.dictDefaultMessage = "Haz click o arrastra los documentos aquí";
Dropzone.prototype.defaultOptions.dictFallbackMessage = "Tu navegador no soporta arrastrar y soltar, haz click para agregar ficheros";
Dropzone.prototype.defaultOptions.dictFallbackText = "Please use the fallback form below to upload your files like in the olden days.";
Dropzone.prototype.defaultOptions.dictFileTooBig = "El archivo es demasiado grande ({{filesize}}MiB). Tamaño máximo: {{maxFilesize}}MB.";
Dropzone.prototype.defaultOptions.dictInvalidFileType = "El tipo de archivo que intentas subir no está permitido.";
Dropzone.prototype.defaultOptions.dictResponseError = "El servidor respondió con el código {{statusCode}}.";
Dropzone.prototype.defaultOptions.dictCancelUpload = "Cancelar subida";
Dropzone.prototype.defaultOptions.dictCancelUploadConfirmation = "¿Estás seguro de que quieres cancelar esta subida?";
Dropzone.prototype.defaultOptions.dictRemoveFile = "Eliminar archivo";
Dropzone.prototype.defaultOptions.dictMaxFilesExceeded = "No puedes subir más ficheros";

How can this be achieved with Vue-clip?

Thank you, greetings.

manuman94 avatar Jun 19 '19 08:06 manuman94

Ok! I solved the problem using the "message" parameter in the configuration options.

My fault for not reading all the documentation.

Sorry, and thank you!

manuman94 avatar Jun 25 '19 10:06 manuman94