Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "c-3po", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# c-3po | ||
[![NPM](https://nodei.co/npm/c-3po.png?downloads=true)](https://nodei.co/npm/c-3po/) | ||
# javascript localization library based on es6 tagged templates | ||
# javascript i18n localization library based on es6 tagged templates | ||
# Installation | ||
```bash | ||
npm install --save c-3po | ||
npm install --save-dev babel-plugin-c-3po | ||
``` | ||
# Documentation - [https://c-3po.js.org](https://c-3po.js.org) | ||
# Usage example | ||
## Usage example | ||
```js | ||
@@ -23,3 +14,3 @@ import { t, ngettext, msgid } from 'c-3po' | ||
// plurals (works for default locale out of the box) | ||
// plurals (works for en locale out of the box) | ||
const n = 5; | ||
@@ -29,4 +20,21 @@ const msg = ngettext(msgid`${ n } task left`, `${ n } tasks left`, n) | ||
## Key features | ||
* Can resolve translations at [build](https://c-3po.js.org/localization-with-webpack-and-c-3po.html#step-3-extracting-translations) or runtime. | ||
* Uses es2015 (es6) template literals for formatting. | ||
* Compatible with GNU gettext utility format (.po, .pot files). | ||
* Intelligent translations extraction (xgettext alternative). | ||
* Builtin validation for translated strings format. | ||
## Installation | ||
```bash | ||
npm install --save c-3po | ||
npm install --save-dev babel-plugin-c-3po | ||
``` | ||
### Quick demo - https://jsfiddle.net/AlexMost/9wuafbL5/7/ | ||
### Docs - [https://c-3po.js.org](https://c-3po.js.org) | ||
## Tutorials | ||
* [Quick Start](https://c-3po.js.org/quick-start.html) | ||
* [Localization with webpack and c-3po](https://c-3po.js.org/localization-with-webpack-and-c-3po.html) | ||
* [Localization with webpack and c-3po](https://c-3po.js.org/localization-with-webpack-and-c-3po.html) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89859
20
447
39