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.
You might want to translate Cloudinary's upload widget to fit your user's local language.
In order to do that you could dynamically generate the text or have multiple text
objects (JSON as can be seen here) based on the localization. This would require implementing a javascript logic of finding the browser's localization, on the backend.
After you have the relevant text object you could send it to the widget's options as part of the text
option.
Here is a basic example of how it 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.