1.0.3 • Published 2 years ago
i18n-pipe v1.0.3
i18n pipe
This is a translation library for pipe separated translation strings such as "|en|Hi, my name is Matteo|it|Ciao, il mio nome è Matteo"
How to install
npm i i18n-pipeHow to import
import i18n from 'i18n-pipe';How to use
get current language
i18n.language(); // returns 'en'set current language
i18n.language('it'); // returns 'it'translate a string
i18n.t("|en|Hi, my name is Matteo|it|Ciao, il mio nome è Matteo");
// returns "Ciao, il mio nome è Matteo"1.0.2
2 years ago
1.0.1
2 years ago
1.0.3
2 years ago
1.0.0
2 years ago
1.0.0-alpha.3
2 years ago
1.0.0-alpha.2
2 years ago
1.0.0-alpha.1
2 years ago
0.0.3
7 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.1.0
8 years ago