Skip to main content
Module

x/i18next/postProcessor.js

i18next: learn once - translate everywhere
Go to Latest
File
export default { processors: {},
addPostProcessor(module) { this.processors[module.name] = module; },
handle(processors, value, key, options, translator) { processors.forEach((processor) => { if (this.processors[processor]) value = this.processors[processor].process(value, key, options, translator); });
return value; },};