I installed Colorbox in my ROR application. But I need localisation. In the script i have:
file images.js.coffee
$(document).ready ->
$(".group1").colorbox({rel:'group1',
transition:"none", maxWidth:"85%", maxHeight:"85%",
current: "{current} <%= t('views.image.of') %> {total}"})
where {current} is current image and {total} are total images.
How to paste data from yml-file (app/config/locales/**.yml)?
I use gem
https://github.com/fnando/i18n-js
It’s works!