Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor fixes to README.md file
  • Loading branch information
David Ellis committed Sep 19, 2011
1 parent ef99e6b commit c43ba0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -138,11 +138,11 @@ myLocalize.localDate(dateObjOrStr, maskStr, utcBool)
// utcBool: a boolean indicating whether the timezone should be local or UTC
```

## ``xlocalize`` CLI Utility
## _xlocalize_ CLI Utility

Starting at version 0.2.0, ``node-localize``, when installed via NPM, adds an ``xlocalize`` utility command to the _PATH_, which allows for automatic construction of ``translations.json`` files (and can be re-run in the future to update existing files without clobbering any current translations present). It's command switches are as follows:

``
```
xlocalize USAGE:
-l Set the default language for the translations.json file(s) (default: en)
Expand All @@ -151,9 +151,10 @@ xlocalize USAGE:
-e Set the file extensions to include for translation (default: html,js)
-t Set the languages to translate to (comma separated)
-h Show this help message.
``
```

For example, to create a ``translations.json`` file in the current directory only that will translate from English to Spanish, Portuguese, Italian, and French for HTML and JS files:

```sh
xlocalize -R -t es,pt,it,fr
```
Expand Down

0 comments on commit c43ba0a

Please sign in to comment.