Socket
Socket
Sign inDemoInstall

c-3po

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c-3po - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

loader.js

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc