The Ruby I18n gem, which is shipped with Ruby on Rails, provides an easy-to-use framework for translating applications to a single custom language.
This can be useful for translating Cloudinary's upload widget text for your widget's users.
In order to achieve this, you could dynamically generate the text or have multiple text
objects (JSON as seen here) based on the localization. This would require implementing JavaScript logic to find the browser's localization, on the backend.
After you have the relevant text object, you can include it in the widget's customization options as part of the text
parameter.
Here is an example of how this might look:
https://jsfiddle.net/idobarnoam/ghrsnx3a/
Comments
3 comments
I found in the widget documentation (https://cloudinary.com/documentation/upload_widget#upload_widget_options ) a list of key value : https://cloudinary.com/documentation/upload_widget_text.txt
But some text are missing like "are smaller than the minimum allowed"
Where can i find the key for this ?
Regards
David
The sample doesn't include the Widget option 'language'.
Hi Gillem,
We currently don't have an example with the language option. That being said, you can easily modify the sample to add it as an option.
Please sign in to leave a comment.