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://www.codercto.com/soft/d/4633.html

机器与人:埃森哲论新人工智能

机器与人:埃森哲论新人工智能

【美】保罗•多尔蒂 詹姆斯•威尔逊 / 赵亚男 / 中信出版社 / 2018-10-1 / 49.00元

自人工智能问世以来,人们普遍持有人机对立的观点,且无时无刻不在害怕自己的工作会被人工智能取代。作者认为,是时候抛开这些无谓的担忧了,因为人类社会正走向一个与机器共融共生的时代。 未来的新型工作模式是什么?未来有哪些工作不会被人工智能取代?人工智能时代重要的生存技能是什么?本书围绕这三大核心问题做了透彻的分析。作者带我们见识了置于业务流程背景之下的人工智能,阐述了其在不同职能部门中起到的推动作......一起来看看 《机器与人:埃森哲论新人工智能》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

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

在线XML、JSON转换工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具