0.1.0 • Published 8 years ago

basic-i18n v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

#Basic-i18n Very simple and basic way to use i18n, this node module simplify the process of localization for web and node apps

##Install npm instal basic-i18n --save

##Usage In your code add the following

var lang = "fr";
var langFile= "./../../local.json";
var basici18n = require('basic-i18n')(lang, langFile);
console.log(basici18n.__('_welcome'));

Your language file should look like this

{
"en": {
	"_welcome": "Welcome",
	"_name": "What is your name?"
},"fr": {
	"_welcome": "Bienvenue",
	"_name": "Comment vous appelez-vous?"
	}
}

##License MIT