2019-11-18 17:32:57 -06:00
|
|
|
const I18n = require('i18n-js');
|
2019-11-15 16:28:55 -06:00
|
|
|
|
2019-11-18 17:32:57 -06:00
|
|
|
I18n.translations = I18n.translations || {};
|
2020-06-17 17:27:50 -05:00
|
|
|
<% I18n::JS::translations.select{|k,v| Houdini.intl.available_locales.map{|i| i.to_s}.include?(k.to_s)}.each do |k,v| %>
|
2019-11-18 17:32:57 -06:00
|
|
|
I18n.translations['<%= k %>'] = I18n.extend((I18n.translations['<%= k %>'] || {}),<%= JSON.generate(v) %>);
|
|
|
|
<% end %>
|
|
|
|
module.exports = I18n;
|