ngx-translate-multi-http-loader 19.0.2 → 19.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2023 Raphaël Balet
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # @ngx-translate/multi-http-loader
2
+
3
+ A loader for [ngx-translate](https://github.com/ngx-translate/core) that loads translations using http.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/ngx-translate-multi-http-loader.svg)](https://www.npmjs.com/package/ngx-translate-multi-http-loader) ![NPM](https://img.shields.io/npm/l/ngx-translate-multi-http-loader) ![npm bundle size](https://img.shields.io/bundlephobia/min/ngx-translate-multi-http-loader)
6
+ ![npm](https://img.shields.io/npm/dm/ngx-translate-multi-http-loader)
7
+
8
+ Angular 14 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample-2clau3?file=src/app/app.module.ts
9
+
10
+ Angular 6 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample
11
+
12
+ Get the complete changelog here: https://github.com/rbalet/ngx-translate-multi-http-loader/releases
13
+
14
+ * [Installation](#installation)
15
+ * [Usage](#usage)
16
+ * [Error & BugFix](#possible-error--bugfix)
17
+
18
+ ## breaking change: v9.0.0
19
+ * This library is now using `httpBackend` instead of the `httpClient`, to avoid being delayed by interceptor, which was creating errors while loading.
20
+ * From the v9, the library will only be using a list of `string[]` so `prefix` & `suffix` aren't needed anymore and `.json` gonna be the default suffix.
21
+
22
+ ## Installation
23
+
24
+ We assume that you already installed [ngx-translate](https://github.com/ngx-translate/core).
25
+
26
+ Now you need to install the npm module for `MultiTranslateHttpLoader`:
27
+
28
+ ```sh
29
+ npm install ngx-translate-multi-http-loader
30
+ ```
31
+
32
+ Choose the version corresponding to your Angular version:
33
+
34
+ | Angular | @ngx-translate/core | ngx-translate-multi-http-loader |
35
+ | ------- | ------------------- | ------------------------------- |
36
+ | >= 16 | 15.x+ | >= 15.x+ |
37
+ | 15 | 14.x+ | 9.x+ |
38
+ | 14 | 14.x+ | 8.x+ |
39
+ | 13 | 14.x+ | 7.x+ |
40
+ | 6 | 10.x+ | 1.x+ |
41
+
42
+ ## Usage
43
+ _The `MultiTranslateHttpLoader` uses HttpBackend to load translations, therefore :_
44
+ 1. Create and export a new `HttpLoaderFactory` function
45
+ 2. Import the `HttpClientModule` from `@angular/common/http`
46
+ 3. Setup the `TranslateModule` to use the `MultiTranslateHttpLoader`
47
+
48
+ ```typescript
49
+ import {NgModule} from '@angular/core';
50
+ import {BrowserModule} from '@angular/platform-browser';
51
+ import {HttpClientModule, HttpBackend} from '@angular/common/http';
52
+ import {TranslateModule, TranslateLoader} from '@ngx-translate/core';
53
+ import {MultiTranslateHttpLoader} from 'ngx-translate-multi-http-loader';
54
+ import {AppComponent} from './app';
55
+
56
+ // AoT requires an exported function for factories
57
+ export function HttpLoaderFactory(_httpBackend: HttpBackend) {
58
+ return new MultiTranslateHttpLoader(_httpBackend, ['/assets/i18n/core/', '/assets/i18n/vendors/']); // /i18n/core/ on angular >= v18 with the new public logic
59
+ }
60
+
61
+ @NgModule({
62
+ imports: [
63
+ BrowserModule,
64
+ HttpClientModule,
65
+ TranslateModule.forRoot({
66
+ loader: {
67
+ provide: TranslateLoader,
68
+ useFactory: HttpLoaderFactory,
69
+ deps: [HttpBackend]
70
+ }
71
+ })
72
+ ],
73
+ bootstrap: [AppComponent]
74
+ })
75
+ export class AppModule { }
76
+ ```
77
+
78
+ The `MultiTranslateHttpLoader` takes a list of `(string | TranslationResource)[]`.
79
+
80
+ ### String[]
81
+ For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`,
82
+ will load your translations files for the lang "en" from : `/assets/i18n/core/en.json` and `/assets/i18n/vendors/en.json`
83
+
84
+ ### Custom suffix
85
+ **For now this loader only support the `json` format.**
86
+
87
+ Instead of an array of `string[]`,
88
+ you may pass a list of parameters:
89
+ - `prefix: string = '/assets/i18n/'`
90
+ - `suffix: string = '.json'`
91
+ - `optional: boolean = true`
92
+
93
+ ```typescript
94
+ export function HttpLoaderFactory(_httpBackend: HttpBackend) {
95
+ return new MultiTranslateHttpLoader(_httpBackend, [
96
+ {prefix: './assets/i18n/core/', suffix: '.json'},
97
+ {prefix: './assets/i18n/vendors/'}, // , "suffix: '.json'" being the default value
98
+ {prefix: './assets/i18n/non-existent/', optional: true}, // Wont create any log
99
+ ]);
100
+ }
101
+ ```
102
+
103
+ The loader will merge all translation files from the server
104
+
105
+
106
+ ## Possible error & Bugfix
107
+
108
+ ### values.at is not a function
109
+ 1. Install `core-js`
110
+ 2. In `polyfills.ts`, add `import 'core-js/modules/es.array.at'`
111
+
112
+
113
+ ## Authors and acknowledgment
114
+ * maintainer [Raphaël Balet](https://github.com/rbalet)
115
+ * Former maintainer [Dennis Keil](https://github.com/denniske)
116
+ *
117
+ [![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://www.buymeacoffee.com/widness)
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-translate-multi-http-loader.mjs","sources":["../../../projects/multi-http-loader/src/lib/multi-http-loader.ts","../../../projects/multi-http-loader/src/ngx-translate-multi-http-loader.ts"],"sourcesContent":["import { HttpBackend, HttpClient } from '@angular/common/http'\nimport { mergeDeep, TranslateLoader } from '@ngx-translate/core'\nimport { forkJoin, Observable, of } from 'rxjs'\nimport { catchError, map } from 'rxjs/operators'\n\nexport interface TranslationResource {\n prefix: string\n suffix?: string\n optional?: boolean\n}\n\nexport class MultiTranslateHttpLoader implements TranslateLoader {\n constructor(\n private _handler: HttpBackend,\n private _resourcesPrefix: (string | TranslationResource)[],\n ) {}\n\n public getTranslation(lang: string): Observable<any> {\n const requests: Observable<Object | {}>[] = this._resourcesPrefix.map((resource) => {\n let path: string\n\n if (typeof resource === 'string') path = `${resource}${lang}.json`\n else path = `${resource.prefix}${lang}${resource.suffix ?? '.json'}`\n\n return new HttpClient(this._handler).get(path).pipe(\n catchError((res) => {\n if (typeof resource !== 'string' && !resource.optional) {\n console.group()\n console.error('Something went wrong for the following translation file:', path)\n console.error(res)\n console.groupEnd()\n }\n return of({})\n }),\n )\n })\n\n return forkJoin(requests).pipe(\n map((response) => response.reduce((acc, curr) => mergeDeep(acc, curr), {})),\n )\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAWa,wBAAwB,CAAA;AAEzB,IAAA,QAAA,CAAA;AACA,IAAA,gBAAA,CAAA;IAFV,WACU,CAAA,QAAqB,EACrB,gBAAkD,EAAA;QADlD,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAa;QACrB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkC;KACxD;AAEG,IAAA,cAAc,CAAC,IAAY,EAAA;QAChC,MAAM,QAAQ,GAA8B,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAI;AACjF,YAAA,IAAI,IAAY,CAAA;YAEhB,IAAI,OAAO,QAAQ,KAAK,QAAQ;AAAE,gBAAA,IAAI,GAAG,CAAG,EAAA,QAAQ,CAAG,EAAA,IAAI,OAAO,CAAA;;AAC7D,gBAAA,IAAI,GAAG,CAAA,EAAG,QAAQ,CAAC,MAAM,CAAG,EAAA,IAAI,CAAG,EAAA,QAAQ,CAAC,MAAM,IAAI,OAAO,EAAE,CAAA;YAEpE,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CACjD,UAAU,CAAC,CAAC,GAAG,KAAI;gBACjB,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;oBACtD,OAAO,CAAC,KAAK,EAAE,CAAA;AACf,oBAAA,OAAO,CAAC,KAAK,CAAC,0DAA0D,EAAE,IAAI,CAAC,CAAA;AAC/E,oBAAA,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;oBAClB,OAAO,CAAC,QAAQ,EAAE,CAAA;iBACnB;AACD,gBAAA,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;aACd,CAAC,CACH,CAAA;AACH,SAAC,CAAC,CAAA;AAEF,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC5B,GAAG,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAC5E,CAAA;KACF;AACF;;ACzCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-translate-multi-http-loader.mjs","sources":["../../../projects/multi-http-loader/src/lib/multi-http-loader.ts","../../../projects/multi-http-loader/src/ngx-translate-multi-http-loader.ts"],"sourcesContent":["import { HttpBackend, HttpClient } from '@angular/common/http'\nimport { mergeDeep, TranslateLoader } from '@ngx-translate/core'\nimport { forkJoin, Observable, of } from 'rxjs'\nimport { catchError, map } from 'rxjs/operators'\n\nexport interface TranslationResource {\n prefix: string\n suffix?: string\n optional?: boolean\n}\n\nexport class MultiTranslateHttpLoader implements TranslateLoader {\n constructor(\n private _handler: HttpBackend,\n private _resourcesPrefix: (string | TranslationResource)[],\n ) {}\n\n public getTranslation(lang: string): Observable<any> {\n const requests: Observable<Object | {}>[] = this._resourcesPrefix.map((resource) => {\n let path: string\n\n if (typeof resource === 'string') path = `${resource}${lang}.json`\n else path = `${resource.prefix}${lang}${resource.suffix ?? '.json'}`\n\n return new HttpClient(this._handler).get(path).pipe(\n catchError((res) => {\n if (typeof resource !== 'string' && !resource.optional) {\n console.group()\n console.error('Something went wrong for the following translation file:', path)\n console.error(res)\n console.groupEnd()\n }\n return of({})\n }),\n )\n })\n\n return forkJoin(requests).pipe(\n map((response) => response.reduce((acc, curr) => mergeDeep(acc, curr), {})),\n )\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAWa,wBAAwB,CAAA;AAEzB,IAAA,QAAA;AACA,IAAA,gBAAA;IAFV,WACU,CAAA,QAAqB,EACrB,gBAAkD,EAAA;QADlD,IAAQ,CAAA,QAAA,GAAR,QAAQ;QACR,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;;AAGnB,IAAA,cAAc,CAAC,IAAY,EAAA;QAChC,MAAM,QAAQ,GAA8B,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAI;AACjF,YAAA,IAAI,IAAY;YAEhB,IAAI,OAAO,QAAQ,KAAK,QAAQ;AAAE,gBAAA,IAAI,GAAG,CAAG,EAAA,QAAQ,CAAG,EAAA,IAAI,OAAO;;AAC7D,gBAAA,IAAI,GAAG,CAAA,EAAG,QAAQ,CAAC,MAAM,CAAG,EAAA,IAAI,CAAG,EAAA,QAAQ,CAAC,MAAM,IAAI,OAAO,EAAE;YAEpE,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CACjD,UAAU,CAAC,CAAC,GAAG,KAAI;gBACjB,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;oBACtD,OAAO,CAAC,KAAK,EAAE;AACf,oBAAA,OAAO,CAAC,KAAK,CAAC,0DAA0D,EAAE,IAAI,CAAC;AAC/E,oBAAA,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;oBAClB,OAAO,CAAC,QAAQ,EAAE;;AAEpB,gBAAA,OAAO,EAAE,CAAC,EAAE,CAAC;aACd,CAAC,CACH;AACH,SAAC,CAAC;AAEF,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC5B,GAAG,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAC5E;;AAEJ;;ACzCD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-translate-multi-http-loader",
3
- "version": "19.0.2",
3
+ "version": "19.0.3",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Raphaël Balet",
@@ -29,7 +29,7 @@
29
29
  "@angular/common": ">=13.0.0",
30
30
  "@angular/core": ">=13.0.0",
31
31
  "@ngx-translate/core": ">=16.0.3",
32
- "rxjs": "^7.8.1"
32
+ "rxjs": "^7.8.2"
33
33
  },
34
34
  "module": "fesm2022/ngx-translate-multi-http-loader.mjs",
35
35
  "typings": "index.d.ts",
@@ -39,10 +39,8 @@
39
39
  },
40
40
  ".": {
41
41
  "types": "./index.d.ts",
42
- "esm2022": "./esm2022/ngx-translate-multi-http-loader.mjs",
43
- "esm": "./esm2022/ngx-translate-multi-http-loader.mjs",
44
42
  "default": "./fesm2022/ngx-translate-multi-http-loader.mjs"
45
43
  }
46
44
  },
47
45
  "sideEffects": false
48
- }
46
+ }
@@ -1,32 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { mergeDeep } from '@ngx-translate/core';
3
- import { forkJoin, of } from 'rxjs';
4
- import { catchError, map } from 'rxjs/operators';
5
- export class MultiTranslateHttpLoader {
6
- _handler;
7
- _resourcesPrefix;
8
- constructor(_handler, _resourcesPrefix) {
9
- this._handler = _handler;
10
- this._resourcesPrefix = _resourcesPrefix;
11
- }
12
- getTranslation(lang) {
13
- const requests = this._resourcesPrefix.map((resource) => {
14
- let path;
15
- if (typeof resource === 'string')
16
- path = `${resource}${lang}.json`;
17
- else
18
- path = `${resource.prefix}${lang}${resource.suffix ?? '.json'}`;
19
- return new HttpClient(this._handler).get(path).pipe(catchError((res) => {
20
- if (typeof resource !== 'string' && !resource.optional) {
21
- console.group();
22
- console.error('Something went wrong for the following translation file:', path);
23
- console.error(res);
24
- console.groupEnd();
25
- }
26
- return of({});
27
- }));
28
- });
29
- return forkJoin(requests).pipe(map((response) => response.reduce((acc, curr) => mergeDeep(acc, curr), {})));
30
- }
31
- }
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGktaHR0cC1sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9tdWx0aS1odHRwLWxvYWRlci9zcmMvbGliL211bHRpLWh0dHAtbG9hZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBZSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQTtBQUM5RCxPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLHFCQUFxQixDQUFBO0FBQ2hFLE9BQU8sRUFBRSxRQUFRLEVBQWMsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFBO0FBQy9DLE9BQU8sRUFBRSxVQUFVLEVBQU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VzdHMpLnBpcGUoXG4gICAgICBtYXAoKHJlc3BvbnNlKSA9PiByZXNwb25zZS5yZWR1Y2UoKGFjYywgY3VycikgPT4gbWVyZ2VEZWVwKGFjYywgY3VyciksIHt9KSksXG4gICAgKVxuICB9XG59XG4iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1tdWx0aS1odHRwLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL211bHRpLWh0dHAtbG9hZGVyL3NyYy9uZ3gtdHJhbnNsYXRlLW11bHRpLWh0dHAtbG9hZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './lib/multi-http-loader';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL211bHRpLWh0dHAtbG9hZGVyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9tdWx0aS1odHRwLWxvYWRlcidcbiJdfQ==