PHP class for basic i18next functionality.
- Support for variables
- Support for basic plural forms
- Support for basic sprintf
// init i18next instance
i18next::init('en');
// get translation by key
echo i18next::getTranslation('common.dog');
Loads translation.json
from given path.
i18next::init('en', 'my/path/');
Returns translated string by key.
i18next::getTranslation('common.cat', array('count' => 2, 'lng' => 'fi'));