trentrichardson / jQuery-Impromptu

An extention to help provide a more pleasant way to spontaneously prompt a user for input.
http://trentrichardson.com/Impromptu/
MIT License
327 stars 144 forks source link

multi language text or images instead of buttons in impromptu #77

Open areeebah opened 8 years ago

areeebah commented 8 years ago

I need to use buttons for a multi language site, any way to translate the text of buttons of impromptu into arabic and other languages? or can i use images with english and arabic text for impromptu form ?

trentrichardson commented 8 years ago

You can define buttons with either

{ Ok: true, Cancel: false }

Or by passing an array of objects:

[
    { title: 'your translation 1', value: true },
    { title: 'your translation 2', value: false }
]

The second should allow you to apply translations easier.