Custom Language translations

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 = {
 "product.options.validity.global": "Please complete all inputs",
 "product.options.validity.valueMissing": "Please enter a value",
 "product.options.validity.tooLong": "Please enter less than {max} characters",
 "product.options.validity.tooShort": "Please enter at least {min} characters",
 "product.options.validity.patternMismatch": "Please enter text to match: {pattern}",
 "product.options.validity.upload.max": "Maximum allowed file size is {max} MB",
 "product.options.validity.upload.required": "Please upload a file",
 "product.options.invalid": "Please complete all required options",
 "product.options.file.link": "\uD83D\uDD17"
};
</script>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.