easy way to perform i18n to javascript project.
visit "javascript-i18n-core" project home on google code.
<head>
<script type="text/javascript" src="i18n.js"></script>
</head>
i18n.set({
lang: '' / string / ISO639-1, ISO3166-1 language code, e.g. en-us, zh-tw. Default auto detect from browser.
path: '' / string / language file's path; Default empty (same level as i18n.js)
});
//e.g. Traditional Chinese
i18n.datetime(); //result is current datetime of client
//e.g. Traditional Chinese
i18n.datetime('2011/01/01 08:15:23'); //result is 20-11-01-01 08:15:23 in client language
//e.g. Traditional Chinese
i18n._('Hello World'); //result is "哈囉! 世界";
//e.g. Traditional Chinese
i18n._('Nice to meet you, %1', 'John'); //result is "很高興認識你,John".
//e.g. Traditional Chinese
i18n._('My name is %1, I\'m %2 years old', 'John', '15'); //result is "我的名字是 John, 我今年 15 歲".