Introduction
A conditional ability that make i18next more powerful.
Getting Started
# npm package
$ npm install i18next-select-post-processor
Usage
We could using Boolean, String, Number, and Null type to check values.
;; i18next ;
const translation = example: basic: `$s(female,true,She is a lady.);` nesting: `$s(cond1,true,She $s(cond2,true,is $s(cond3,true,a $s(cond4,true,lady.););););` concatenation: `$s(cond1,true,She );$s(cond2,true,is );$s(cond3,true,a );$s(cond4,true,lady.);` ;
i18next;// => She's a lady.i18next;// => She's a lady.i18next;// => She's a lady.
Online Demo
Change Default Options
;; SelectPostprocessor; i18next ;