Project

General

Profile

How to use translation in Javascript

Added by Lucas Schatz 11 months ago

Hello, I have a small plugin https://github.com/arvanus/redmine_drag_and_drop and want to use intl in a JS asset
Is it possible to somehow use default internationalization/locales yml files into JS files?
Using somehow some .erb file or something like this to generate a JS helper
(I'm not a ruby nor JS developer, so any help will be welcome)

Thanks!