从这篇文章中,我读到您可以将后处理功能添加到i18next
:
i18n.addPostProcessor("myProcessorsName", function(value, key, options)
{
return 'some post processed data based on translated value';
});
并在初始化期间添加它:
i18n.init({ postProcess: 'myProcessorsName' });
但我得到一个错误addPostProcessor
不是函数。
那么如何添加和使用后处理功能i18next
呢?