Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tinganho/l10ns
Browse files Browse the repository at this point in the history
* 'master' of github.com:tinganho/l10ns:
  Fixed readme typos
  • Loading branch information
tinganho committed Aug 19, 2015
2 parents 43f8754 + 49c9888 commit 0c4e0be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ L10ns - Effective translation workflow
* Problem translating number/currency formats.
* Problem translating date formats.

L10ns deals with all the translation problem mentioned above. It manage syncing translation keys between your source code and your localization storage. You can compile translations and open a translation interface by a CLI method. It supports ICU's message format and reads data directly from CLDR for translating multiple complex translations.
L10ns deals with the entire translation problem mentioned above. It manage syncing translation keys between your source code and your localization storage. You can compile translations and open a translation interface by a CLI method. It supports ICU's message format and reads data directly from CLDR for translating multiple complex translations.

## Installation

`npm install l10ns -g`

## Getting started

Create a new project folder test and initialize a new translation project. The initialization guide will guide you through creating a project.
Create a new project folder test and initialize a new translation project. The initialization guide will lead you through creating a project.
```
$ mkdir test
$ cd test
Expand All @@ -42,26 +42,26 @@ var l = requireLocalizations('en-US');
var firstname = l('SIGN_UP__FIRSTNAME');
var lastname = l('SIGN_UP__LASTNAME');
```
Now, lets update translation keys from source. It will traverse your source code and look for all `l()` calls:
Now, let's update translation keys from source. It will traverse your source code and look for all `l()` calls:
```
$ l10ns update
```
Lets check which translation keys have been added:
Let's check which translation keys have been added:
```
$ l10ns log
@1 SIGN_UP__FIRSTNAME | NO TRANSLATION
@2 SIGN_UP__LASTNAME | NO TRANSLATION
```
Edit the last translation using log reference:
```
$ l10ns set @1 "Firstname" # using default langague
$ l10ns set @1 -l zh-CN "名" # using chinese
$ l10ns set @1 "Firstname" # using default language
$ l10ns set @1 -l zh-CN "名" # using Chinese
```
Translation are now saved to a localization file. To compile to your source programming language:
```
$ l10ns compile
```
Lets set up a web interface for translator to use:
Let's set up a web interface for translator to use:
```
$ l10ns interface
```
Expand Down

0 comments on commit 0c4e0be

Please sign in to comment.