First, thanks for the great work you've done here..
I'd like to be able to override the current language, to show a translation of the phrase I want to use.
it could be something like:
languages = ['en', 'fr'];
// assuming the default language is 'en'
console.log( req.i18n.('global.language') ); //prints: English
console.log( req.i18n.o('fr', 'global.language') ); //prints: Français
First, thanks for the great work you've done here..
I'd like to be able to override the current language, to show a translation of the phrase I want to use.
it could be something like:
languages = ['en', 'fr']; // assuming the default language is 'en' console.log( req.i18n.('global.language') ); //prints: English console.log( req.i18n.o('fr', 'global.language') ); //prints: Français
Can this be done? and how soon? Thanks.