- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://i18next.com/
- 软件文档: http://i18next.com/pages/doc_features.html
软件介绍
i18next 在客户端实现站点的本地化,i18next 从服务端获取资源然后对标签为data-i18n的内容进行翻译。
示例:
// given loaded and merged dictionaries in i18next.js to:
{
"en_US": {
"ns.special": {
"app": {
"name": "i18n",
"insert": "you are __youAre__",
"child": "__count__ child",
"child_plural": "__count__ children"
}
},
"ns.common": {}
},
"en": {
"ns.special": {
"app": {
"area": "Area 51"
}
},
"ns.common": {}
},
"dev": {
"ns.common": {
"app": {
"company": {
"name": "my company"
}
},
"add": "add"
},
"ns.special": {
"nav": {
"1": "link1",
"2": "link2",
"home": "home"
}
}
}
}