2019-11-18 23:32:57 +00:00
|
|
|
const I18n = require('i18n-js');
|
2019-11-15 22:28:55 +00:00
|
|
|
|
2019-11-18 23:32:57 +00:00
|
|
|
I18n.translations = I18n.translations || {};
|
2019-11-15 22:28:55 +00:00
|
|
|
<% I18n::JS::translations.each do |k,v| %>
|
2019-11-18 23:32:57 +00:00
|
|
|
I18n.translations['<%= k %>'] = I18n.extend((I18n.translations['<%= k %>'] || {}),<%= JSON.generate(v) %>);
|
|
|
|
<% end %>
|
|
|
|
module.exports = I18n;
|