initial commit
This commit is contained in:
14
node_modules/i18next/dist/es/postProcessor.js
generated
vendored
Normal file
14
node_modules/i18next/dist/es/postProcessor.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export default {
|
||||
processors: {},
|
||||
addPostProcessor: function addPostProcessor(module) {
|
||||
this.processors[module.name] = module;
|
||||
},
|
||||
handle: function handle(processors, value, key, options, translator) {
|
||||
var _this = this;
|
||||
|
||||
processors.forEach(function (processor) {
|
||||
if (_this.processors[processor]) value = _this.processors[processor].process(value, key, options, translator);
|
||||
});
|
||||
return value;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user