UNPKG

prisme-flow

Version:

prisme platform flow engine

32 lines (28 loc) 786 B
/** * Created by prisme.io on 09/06/2017. */ RED.i18n = (function() { return { init: function(done) { i18n.init({ resGetPath: 'locales/__ns__', dynamicLoad: false, load:'current', ns: { namespaces: ["editor","node-red","jsonata","infotips"], defaultNs: "editor" }, fallbackLng: ['en-US'], useCookie: false },function() { done(); }); RED["_"] = function() { return i18n.t.apply(null,arguments); } }, loadCatalog: function(namespace,done) { i18n.loadNamespace(namespace,done); } } })();