Custom Language translations

The app comes with translations for multiple languages which can be configured in the Settings tab as described here:

https://docs.cloudlift.app/article/34-how-can-i-change-the-widget-language

In the case you want to change a specific translation to better fit your store, you can overwrite the default translations by providing a global javascript object in your theme code before the script is loaded:

<script>
window.clTranslate = {
  "upload.config.file.loading": "Loading",
  "upload.config.file.load.error": "Error during load",
  "upload.config.file.uploading": "Uploading",
  "upload.config.file.upload.complete": "Upload complete",
  "upload.config.file.upload.canceled": "Upload cancelled",
  "upload.config.file.upload.error": "Error during upload",
  "upload.config.file.upload.error.revert": "Error during revert",
  "upload.config.file.upload.error.remove": "Error during remove",
  "upload.config.file.upload.cancel": "tap to cancel",
  "upload.config.file.upload.retry": "tap to retry",
  "upload.config.file.upload.undo": "tap to undo",
  "upload.config.file.button.remove": "Remove",
  "upload.config.file.button.abort": "Abort",
  "upload.config.file.button.retry": "Retry",
  "upload.config.file.button.cancel": "Cancel",
  "upload.config.file.button.undo": "Undo",
  "upload.config.file.button.upload": "Upload",
  "upload.config.file.size.waiting": "Waiting for size",
  "upload.config.file.size.notavailable": "Size not available",
  "upload.config.file.size.tobig": "File is too large",
  "upload.config.file.size.max": "Maximum file size is {filesize}",
  "upload.config.file.type.notallowed": "File type not allowed",
  "upload.config.file.type.expected": "Expects {lastType}",
  "upload.config.image.type.notsupported": "Image type not supported",
  "upload.config.image.size.tosmall": "Image is too small",
  "upload.config.image.size.tobig": "Image is too big",
  "upload.config.image.size.expected.min": "Minimum size is {minWidth} × {minHeight}",
  "upload.config.image.size.expected.max": "Maximum size is {maxWidth} × {maxHeight}",
  "upload.config.image.resolution.min": "Image resolution is too low",
  "upload.config.image.resolution.max": "Image resolution too high",
  "upload.config.image.resolution.expected.min": "Minimum resolution is {minResolution}",
  "upload.config.image.resolution.expected.max": "Maximum resolution is {maxResolution}",
  "upload.config.image.editor.button.reset": "Reset",
  "upload.config.image.editor.button.cancel": "Cancel",
  "upload.config.image.editor.button.confirm": "Upload",
  "upload.config.image.editor.status.waiting": "Waiting for image&hellip;",
  "upload.config.image.editor.status.loading": "Loading image&hellip;",
  "upload.config.image.editor.status.error": "Error loading image&hellip;",
  "upload.config.image.editor.status.processing": "Processing image&hellip;",
  "upload.config.error.required": "Please upload a file",
  "upload.config.error.fileCountMin": "Please upload at least {min} file(s)",
  "upload.config.error.fileCountMax": "Please upload at most {max} file(s)",
  "upload.config.error.ready": "Please wait for the upload to complete",
  "upload.config.error.inputs": "Please fill in all required input fields",
  "upload.config.image.editor.color.brightness": "Brightness",
  "upload.config.image.editor.color.contrast": "Contrast",
  "upload.config.image.editor.color.exposure": "Exposure",
  "upload.config.image.editor.color.saturation": "Saturation",
  "upload.config.image.editor.resize.width": "Width",
  "upload.config.image.editor.resize.height": "Height",
  "upload.config.image.editor.resize.apply": "Apply",
  "upload.config.image.editor.crop.zoom": "Zoom",
  "upload.config.image.editor.crop.rotate.left": "Rotate left",
  "upload.config.image.editor.crop.rotate.right": "Rotate right",
  "upload.config.image.editor.crop.flip.horizontal": "Flip horizontal",
  "upload.config.image.editor.crop.flip.vertical": "Flip vertical",
  "upload.config.image.editor.crop.aspect.ratio": "Aspect ratio",
  "upload.config.image.editor.util.crop": "Crop",
  "upload.config.image.editor.util.filter": "Filter",
  "upload.config.image.editor.util.color": "Colors",
  "upload.config.image.editor.util.resize": "Resize",
  "upload.config.image.editor.util.markup": "Markup",
  "upload.config.image.editor.util.markup.circle": "Circle",
  "upload.config.image.editor.util.markup.text": "Text",
  "upload.config.image.editor.util.markup.arrow": "Arrow",
  "upload.config.image.editor.util.markup.square": "Square",
  "upload.config.image.editor.util.markup.remove": "Remove",
  "upload.config.image.editor.util.markup.select": "Select",
  "upload.config.image.editor.util.markup.draw": "Draw",
  "upload.config.image.editor.util.markup.size": "Size"
};
</script>

To only update specific translations you can only add the specific keys:

<script>
window.clTranslate = {
  "upload.config.file.uploading": "Video upload in progress",
  "upload.config.error.required": "Please upload a video"
};
</script>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.