NativeLangNativeScript 国际化插件
NativeLang 是 NativeScript 的国际化插件。
创建文件:
├── app <----------------- run npm install from here │ ├── App_Resources │ │ └── ... │ ├── tns_modules │ │ └── ... │ ├── app.css │ ├── app.js │ ├── main-page.js │ ├── main-page.xml │ ├── main-view-model.js │ ├── node_modules │ │ └── nativelang <-- The install will place the module's code here │ │ └── ... │ └── package.json <---- The install will register “nativelang" as a dependency here └── platforms ├── android │ └── res │ ├── values <---------- English │ | └── strings.xml │ ├── values-es <------- Spanish │ | └── strings.xml │ └── values-fr <------- Fransih │ └── strings.xml └── ios
文件:
<!-- platforms/android/res/values/strings.xml --> <?xml version="1.0" encoding="UTF-8"?> <resources> <string name="app_name" formatted="false">Example 1</string> <string name="other" formatted="false">Other</string> ... More strings </resources> <!-- platforms/android/res/values-es/strings.xml --> <?xml version="1.0" encoding="UTF-8"?> <resources> <string name="app_name" formatted="false">Ejemplo 1</string> <string name="other" formatted="false">Otro</string> ... Y mas cadenas </resources>
使用:
app/app.js
GLOBAL.L = require( "./node_modules/nativelang/lib" )();
xml
<Label text={{ L('other')}} />
评论
Vue I18nVue.js 的国际化插件
VueI18n是Vue.js的国际化插件,它可以轻松地将一些本地化功能集成到你的Vue.js应用程序中。 具体特性如下: 简单:通过简单的API将你的应用国际化强大:除了简单的翻译外,还支持复数,数字
Vue I18nVue.js 的国际化插件
0
jQuery.i18n基于 jQuery 的国际化插件
jquery.i18n 是一个基于 jQuery 的轻量级的国际化(i18n)插件。支持根据设置默认
jQuery.i18n基于 jQuery 的国际化插件
0
jQuery.i18n基于 jQuery 的国际化插件
jquery.i18n是一个基于jQuery的轻量级的国际化(i18n)插件。支持根据设置默认语言支持切换语言支持使用json文件存储翻译内容可以根据用户自定义的不同语言版本的json文件,按需渲染网
jQuery.i18n基于 jQuery 的国际化插件
0
R18nRuby国际化工具
R18n是一个国际化和本地化的工具用来为Ruby应用程序实现多语言支持的功能。R18n使用YAML格式来存储翻译的内容。示例用法:Merb::Router.preparedomatch('(/:loc
R18nRuby国际化工具
0