# webpack-i18n-fallbacks

> Merge i18n json files with fallbacks

Latest version **0.5.1** (published 2022-05-23) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install webpack-i18n-fallbacks
pnpm add webpack-i18n-fallbacks
yarn add webpack-i18n-fallbacks
bun add webpack-i18n-fallbacks
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2022-05-23 |
| First published | 2017-07-18 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 47.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ferran Basora |
| Maintainers | masylum, fcsonline |
| Keywords | i18n, fallback |

## Links

- npm: https://www.npmjs.com/package/webpack-i18n-fallbacks
- Repository: https://github.com/factorialco/webpack-i18n-fallbacks
- Homepage: https://github.com/factorialco/webpack-i18n-fallbacks#readme
- Issues: https://github.com/factorialco/webpack-i18n-fallbacks/issues
- npm.io page: https://npm.io/package/webpack-i18n-fallbacks

## Dependencies (14)

- [eslint](https://npm.io/package/eslint.md) >= 6
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [rollup](https://npm.io/package/rollup.md) 2.63.0
- [webpack](https://npm.io/package/webpack.md) ^5.0.0
- [prettier](https://npm.io/package/prettier.md) 2.5.1
- [typescript](https://npm.io/package/typescript.md) >= 2.7
- [@types/node](https://npm.io/package/@types/node.md) ^17.0.12
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.178
- [rollup-plugin-dts](https://npm.io/package/rollup-plugin-dts.md) 4.1.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) 8.3.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) 5.9.1
- [rollup-plugin-typescript2](https://npm.io/package/rollup-plugin-typescript2.md) 0.31.1
- [rollup-plugin-node-resolve](https://npm.io/package/rollup-plugin-node-resolve.md) 5.2.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) 5.9.1

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 0.5.1 (latest) — 2022-05-23
- 0.5.0 — 2022-05-23
- 0.4.1 — 2022-01-26
- 0.4.0 — 2022-01-26
- 0.3.0 — 2019-10-22
- 0.2.3 — 2019-04-23
- 0.2.1 — 2018-12-20
- 0.2.0 — 2018-12-19
- 0.1.4 — 2018-12-18
- 0.1.3 — 2018-12-18
- 0.1.2 — 2018-10-25
- 0.1.1 — 2018-03-15
- 0.1.0 — 2017-07-18

## README

# webpack-i18n-fallbacks

Webpack plugin to be able to manage all translation files and their fallbacks in build time

`new I18nPlugin(master_language, options)`

*master_language*: master language
*options*: hash with options

## Options

*path*: path pointing to all translation files
*supportedLocales*: list of all supported locales
*fallbacks*: a hash with all the defined fallbacks


### Example

```
new I18nPlugin('es', {
 path: 'src/translations',
 supportedLocales: ['es', 'ca', 'en', 'nl'],
 fallbacks: {
   ca: 'es',
   en: 'es',
   nl: 'en'
 }
})
```

---
_Source: https://npm.io/package/webpack-i18n-fallbacks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
