frenchkiss
Advanced tools
Comparing version 0.0.5 to 0.0.6
/** | ||
* @license frenchkiss 0.0.5 | ||
* @license frenchkiss 0.0.6 | ||
* Copyright (c) 2018-2019 Koala Interactive, Inc. | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license frenchkiss 0.0.5 | ||
* @license frenchkiss 0.0.6 | ||
* Copyright (c) 2018-2019 Koala Interactive, Inc. | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license frenchkiss 0.0.5 | ||
* @license frenchkiss 0.0.6 | ||
* Copyright (c) 2018-2019 Koala Interactive, Inc. | ||
@@ -4,0 +4,0 @@ * License: MIT |
{ | ||
"name": "frenchkiss", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "The blazing fast lightweight translation module for javascript", | ||
@@ -5,0 +5,0 @@ "author": "Vincent Thibault <vthibault.mobile@gmail.com>", |
# FrenchKiss.js | ||
[![Build Status](https://travis-ci.com/koala-interactive/frenchkiss.js.svg)](https://travis-ci.com/koala-interactive/frenchkiss.js) | ||
[![Build Status](https://travis-ci.com/koala-interactive/frenchkiss.js.svg?branch=master)](https://travis-ci.com/koala-interactive/frenchkiss.js) | ||
[![File size](https://img.shields.io/badge/GZIP%20size-1021%20B-brightgreen.svg)](./dist/umd/frenchkiss.js) | ||
![](https://img.shields.io/david/koala-interactive/frenchkiss.js.svg) | ||
![](https://img.shields.io/badge/dependencies-0-brightgreen.svg) | ||
![](https://img.shields.io/snyk/vulnerabilities/github/koala-interactive/frenchkiss.js.svg) | ||
@@ -43,9 +43,3 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) | ||
| | Raw String | Interpolate | Plural | Plural + Interpolate | | ||
| :------------- | --------------------: | --------------------: | --------------------: | --------------------: | | ||
| vuejs-i18n | 79,205 ops/sec | 73,128 ops/sec | 73,128 ops/sec | 49,862 ops/sec | | ||
| google closure | 379,684 ops/sec | 35,172 ops/sec | 35,172 ops/sec | 21,972 ops/sec | | ||
| i18n-js | 86,734 ops/sec | 48,019 ops/sec | 48,194 ops/sec | 16,140 ops/sec | | ||
| Polyglot | 3,769 ops/sec | 3,563 ops/sec | 3,220 ops/sec | 3,196 ops/sec | | ||
| **frenchkiss** | **4,023,760 ops/sec** | **2,286,641 ops/sec** | **3,042,214 ops/sec** | **1,383,317 ops/sec** | | ||
![i18n benchmark](./benchmark/benchmark.jpg) | ||
@@ -270,8 +264,4 @@ --- | ||
It's also possible to work with plural category. Multiple languages have multiple pluralization rules. You'll have to write a function returning the type to check. | ||
The functions are not included by default in the package (not needed in most cases). But you can extract them from other populars repositories: | ||
The functions are not included by default in the package (not needed in most cases). But you can get some of them from [PLURAL.md](./PLURAL.md) file. | ||
- [Angular](https://github.com/angular/angular/blob/master/packages/common/src/i18n/localization.ts#L94) | ||
- [Polyglot](https://github.com/airbnb/polyglot.js/blob/master/index.js#L49) | ||
- others. | ||
```js | ||
@@ -278,0 +268,0 @@ import { locale, set, t, plural } from 'frenchkiss'; |
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
18160
309