@alienfast/i18next-loader
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@alienfast/i18next-loader", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Webpack loader for client embedded i18next locales from json or yaml.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,4 +8,10 @@ # @alienfast/i18next-loader | ||
This webpack loader generates the `resources` structure necessary for **i18next**. The structure is webpacked wthith the | ||
client bundle, thus avoiding loading any language resources via extra HTTP requests. | ||
This webpack loader generates the `resources` structure necessary for [i18next](https://github.com/i18next/i18next). | ||
The structure is webpacked with the client bundle at build time, thus avoiding loading any language resources via extra HTTP requests. | ||
## Features | ||
- glob based file filtering | ||
- one to many overrides supporting reuse cases (white labeling) | ||
- yaml and json support | ||
@@ -96,3 +102,3 @@ Given a locales directory, by default, the loader will find and parse any `json|yaml|yml` file and attribute the | ||
#### Only json | ||
```json | ||
```javascript | ||
{include: ['**/*.json']} | ||
@@ -102,3 +108,3 @@ ``` | ||
#### Json but exclude one file | ||
```json | ||
```javascript | ||
{include: ['**/*.json', '!**/excludeThis.json']} | ||
@@ -111,3 +117,3 @@ ``` | ||
```json | ||
```javascript | ||
{overrides: ['../node_modules/lib1/locales']} | ||
@@ -114,0 +120,0 @@ ``` |
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
237617
143