Download 009-localization-engineer/workspace/t2/i18next/src/postProcessor.js from Continual-Learning-Exam/CLE-Lite-Workspaces: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/datasets/Continual-Learning-Exam/CLE-Lite-Workspaces/resolve/main/009-localization-engineer/workspace/t2/i18next/src/postProcessor.js
- Command line
-
hf download hf://datasets/Continual-Learning-Exam/CLE-Lite-Workspaces/009-localization-engineer/workspace/t2/i18next/src/postProcessor.js
-
curl -L -o postProcessor.js https://huggingface.co/datasets/Continual-Learning-Exam/CLE-Lite-Workspaces/resolve/main/009-localization-engineer/workspace/t2/i18next/src/postProcessor.js
338 Bytes
| export default { | |
| processors: {}, | |
| addPostProcessor(module) { | |
| this.processors[module.name] = module; | |
| }, | |
| handle(processors, value, key, options, translator) { | |
| processors.forEach((processor) => { | |
| value = this.processors[processor]?.process(value, key, options, translator) ?? value; | |
| }); | |
| return value; | |
| }, | |
| }; | |