NativeScript 国际化插件 NativeLang

码农软件 · 软件分类 · NativeScript 插件 · 2019-04-29 11:12:44

软件介绍

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')}} />

本文地址:https://codercto.com/soft/d/4633.html

用户体验面面观

用户体验面面观

[美] 库涅夫斯基(Mike Kuniavsky) / 汤海 / 清华大学出版社 / 2010-5 / 69.00

这是一本专注于用户研究和用户体验的经典读物,同时也是一本容易上手的实战手册,从实践者的角度,着重讨论和阐述了用户研究的重要性、主要的用户研究方法和工具,同时借助于实例介绍了相关的应用。全书共3部分18章,深度剖析了何为优秀的用户设计,用户体验包括哪些研究方法和工具,如何 得出和分析用户体验调查结果等。一起来看看 《用户体验面面观》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

MD5 加密
MD5 加密

MD5 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具