ngx-translate-multi-http-loader 16.0.0 → 16.0.2
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/README.md
CHANGED
@@ -1,102 +1,102 @@
|
|
1
|
-
# @ngx-translate/multi-http-loader [](https://www.npmjs.com/package/ngx-translate-multi-http-loader)
|
2
|
-
|
3
|
-
|
4
|
-
A loader for [ngx-translate](https://github.com/ngx-translate/core) that loads translations using http.
|
5
|
-
|
6
|
-
Angular 14 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample-2clau3?file=src/app/app.module.ts
|
7
|
-
|
8
|
-
Angular 6 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample
|
9
|
-
|
10
|
-
Get the complete changelog here: https://github.com/rbalet/ngx-translate-multi-http-loader/releases
|
11
|
-
|
12
|
-
* [Installation](#installation)
|
13
|
-
* [Usage](#usage)
|
14
|
-
|
15
|
-
## breaking change: v9.0.0
|
16
|
-
* This library is now using `httpBackend` instead of the `httpClient`, to avoid being delayed by interceptor, which was creating errors while loading.
|
17
|
-
* 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.
|
18
|
-
|
19
|
-
## Installation
|
20
|
-
|
21
|
-
We assume that you already installed [ngx-translate](https://github.com/ngx-translate/core).
|
22
|
-
|
23
|
-
Now you need to install the npm module for `MultiTranslateHttpLoader`:
|
24
|
-
|
25
|
-
```sh
|
26
|
-
npm install ngx-translate-multi-http-loader --save
|
27
|
-
```
|
28
|
-
|
29
|
-
Choose the version corresponding to your Angular version:
|
30
|
-
|
31
|
-
| Angular | @ngx-translate/core | ngx-translate-multi-http-loader |
|
32
|
-
| ------- | ------------------- | ------------------------------- |
|
33
|
-
| 14 | 14.x+ | 8.x+ |
|
34
|
-
| 13 | 14.x+ | 7.x+ |
|
35
|
-
| 6 | 10.x+ | 1.x+ |
|
36
|
-
|
37
|
-
## Usage
|
38
|
-
_The `MultiTranslateHttpLoader` uses HttpBackend to load translations, therefore :_
|
39
|
-
1. Create and export a new `HttpLoaderFactory` function
|
40
|
-
2. Import the `HttpClientModule` from `@angular/common/http`
|
41
|
-
3. Setup the `TranslateModule` to use the `MultiTranslateHttpLoader`
|
42
|
-
|
43
|
-
```typescript
|
44
|
-
import {NgModule} from '@angular/core';
|
45
|
-
import {BrowserModule} from '@angular/platform-browser';
|
46
|
-
import {HttpClientModule, HttpBackend} from '@angular/common/http';
|
47
|
-
import {TranslateModule, TranslateLoader} from '@ngx-translate/core';
|
48
|
-
import {MultiTranslateHttpLoader} from 'ngx-translate-multi-http-loader';
|
49
|
-
import {AppComponent} from './app';
|
50
|
-
|
51
|
-
// AoT requires an exported function for factories
|
52
|
-
export function HttpLoaderFactory(_httpBackend: HttpBackend) {
|
53
|
-
return new MultiTranslateHttpLoader(_httpBackend, ['/assets/i18n/core/', '/assets/i18n/vendors/']);
|
54
|
-
}
|
55
|
-
|
56
|
-
@NgModule({
|
57
|
-
imports: [
|
58
|
-
BrowserModule,
|
59
|
-
HttpClientModule,
|
60
|
-
TranslateModule.forRoot({
|
61
|
-
loader: {
|
62
|
-
provide: TranslateLoader,
|
63
|
-
useFactory: HttpLoaderFactory,
|
64
|
-
deps: [HttpBackend]
|
65
|
-
}
|
66
|
-
})
|
67
|
-
],
|
68
|
-
bootstrap: [AppComponent]
|
69
|
-
})
|
70
|
-
export class AppModule { }
|
71
|
-
```
|
72
|
-
|
73
|
-
The `MultiTranslateHttpLoader` takes a list of `string[]` or `ITranslationResource[]`.
|
74
|
-
|
75
|
-
### String[]
|
76
|
-
For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`,
|
77
|
-
will load your translations files for the lang "en" from : `/assets/i18n/core/en.json` and `/assets/i18n/vendors/en.json`
|
78
|
-
|
79
|
-
### Custom suffix
|
80
|
-
**For now this loader only support the `json` format.**
|
81
|
-
|
82
|
-
Instead of an array of `string[]`,
|
83
|
-
you may pass a list of parameters:
|
84
|
-
- `prefix: string = '/assets/i18n/'`
|
85
|
-
- `suffix: string = '.json'`
|
86
|
-
- `optional: boolean = true`
|
87
|
-
|
88
|
-
```typescript
|
89
|
-
export function HttpLoaderFactory(_httpBackend: HttpBackend) {
|
90
|
-
return new MultiTranslateHttpLoader(_httpBackend, [
|
91
|
-
{prefix: './assets/i18n/core/', suffix: '.json'},
|
92
|
-
{prefix: './assets/i18n/vendors/'}, // , "suffix: '.json'" being the default value
|
93
|
-
{prefix: './assets/i18n/non-existent/', optional: true}, // Wont create any log
|
94
|
-
]);
|
95
|
-
}
|
96
|
-
```
|
97
|
-
|
98
|
-
The loader will merge all translation files from the server using [deepmerge-ts](https://www.npmjs.com/package/deepmerge-ts).
|
99
|
-
|
100
|
-
## Authors and acknowledgment
|
101
|
-
* maintainer [Raphaël Balet](https://github.com/rbalet)
|
102
|
-
* Former maintainer [Dennis Keil](https://github.com/denniske)
|
1
|
+
# @ngx-translate/multi-http-loader [](https://www.npmjs.com/package/ngx-translate-multi-http-loader)
|
2
|
+
|
3
|
+
|
4
|
+
A loader for [ngx-translate](https://github.com/ngx-translate/core) that loads translations using http.
|
5
|
+
|
6
|
+
Angular 14 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample-2clau3?file=src/app/app.module.ts
|
7
|
+
|
8
|
+
Angular 6 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample
|
9
|
+
|
10
|
+
Get the complete changelog here: https://github.com/rbalet/ngx-translate-multi-http-loader/releases
|
11
|
+
|
12
|
+
* [Installation](#installation)
|
13
|
+
* [Usage](#usage)
|
14
|
+
|
15
|
+
## breaking change: v9.0.0
|
16
|
+
* This library is now using `httpBackend` instead of the `httpClient`, to avoid being delayed by interceptor, which was creating errors while loading.
|
17
|
+
* 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.
|
18
|
+
|
19
|
+
## Installation
|
20
|
+
|
21
|
+
We assume that you already installed [ngx-translate](https://github.com/ngx-translate/core).
|
22
|
+
|
23
|
+
Now you need to install the npm module for `MultiTranslateHttpLoader`:
|
24
|
+
|
25
|
+
```sh
|
26
|
+
npm install ngx-translate-multi-http-loader --save
|
27
|
+
```
|
28
|
+
|
29
|
+
Choose the version corresponding to your Angular version:
|
30
|
+
|
31
|
+
| Angular | @ngx-translate/core | ngx-translate-multi-http-loader |
|
32
|
+
| ------- | ------------------- | ------------------------------- |
|
33
|
+
| 14 | 14.x+ | 8.x+ |
|
34
|
+
| 13 | 14.x+ | 7.x+ |
|
35
|
+
| 6 | 10.x+ | 1.x+ |
|
36
|
+
|
37
|
+
## Usage
|
38
|
+
_The `MultiTranslateHttpLoader` uses HttpBackend to load translations, therefore :_
|
39
|
+
1. Create and export a new `HttpLoaderFactory` function
|
40
|
+
2. Import the `HttpClientModule` from `@angular/common/http`
|
41
|
+
3. Setup the `TranslateModule` to use the `MultiTranslateHttpLoader`
|
42
|
+
|
43
|
+
```typescript
|
44
|
+
import {NgModule} from '@angular/core';
|
45
|
+
import {BrowserModule} from '@angular/platform-browser';
|
46
|
+
import {HttpClientModule, HttpBackend} from '@angular/common/http';
|
47
|
+
import {TranslateModule, TranslateLoader} from '@ngx-translate/core';
|
48
|
+
import {MultiTranslateHttpLoader} from 'ngx-translate-multi-http-loader';
|
49
|
+
import {AppComponent} from './app';
|
50
|
+
|
51
|
+
// AoT requires an exported function for factories
|
52
|
+
export function HttpLoaderFactory(_httpBackend: HttpBackend) {
|
53
|
+
return new MultiTranslateHttpLoader(_httpBackend, ['/assets/i18n/core/', '/assets/i18n/vendors/']);
|
54
|
+
}
|
55
|
+
|
56
|
+
@NgModule({
|
57
|
+
imports: [
|
58
|
+
BrowserModule,
|
59
|
+
HttpClientModule,
|
60
|
+
TranslateModule.forRoot({
|
61
|
+
loader: {
|
62
|
+
provide: TranslateLoader,
|
63
|
+
useFactory: HttpLoaderFactory,
|
64
|
+
deps: [HttpBackend]
|
65
|
+
}
|
66
|
+
})
|
67
|
+
],
|
68
|
+
bootstrap: [AppComponent]
|
69
|
+
})
|
70
|
+
export class AppModule { }
|
71
|
+
```
|
72
|
+
|
73
|
+
The `MultiTranslateHttpLoader` takes a list of `string[]` or `ITranslationResource[]`.
|
74
|
+
|
75
|
+
### String[]
|
76
|
+
For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`,
|
77
|
+
will load your translations files for the lang "en" from : `/assets/i18n/core/en.json` and `/assets/i18n/vendors/en.json`
|
78
|
+
|
79
|
+
### Custom suffix
|
80
|
+
**For now this loader only support the `json` format.**
|
81
|
+
|
82
|
+
Instead of an array of `string[]`,
|
83
|
+
you may pass a list of parameters:
|
84
|
+
- `prefix: string = '/assets/i18n/'`
|
85
|
+
- `suffix: string = '.json'`
|
86
|
+
- `optional: boolean = true`
|
87
|
+
|
88
|
+
```typescript
|
89
|
+
export function HttpLoaderFactory(_httpBackend: HttpBackend) {
|
90
|
+
return new MultiTranslateHttpLoader(_httpBackend, [
|
91
|
+
{prefix: './assets/i18n/core/', suffix: '.json'},
|
92
|
+
{prefix: './assets/i18n/vendors/'}, // , "suffix: '.json'" being the default value
|
93
|
+
{prefix: './assets/i18n/non-existent/', optional: true}, // Wont create any log
|
94
|
+
]);
|
95
|
+
}
|
96
|
+
```
|
97
|
+
|
98
|
+
The loader will merge all translation files from the server using [deepmerge-ts](https://www.npmjs.com/package/deepmerge-ts).
|
99
|
+
|
100
|
+
## Authors and acknowledgment
|
101
|
+
* maintainer [Raphaël Balet](https://github.com/rbalet)
|
102
|
+
* Former maintainer [Dennis Keil](https://github.com/denniske)
|
@@ -27,4 +27,4 @@ export class MultiTranslateHttpLoader {
|
|
27
27
|
return forkJoin(requests).pipe(map((response) => deepmerge(...response)));
|
28
28
|
}
|
29
29
|
}
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGktaHR0cC1sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI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ICAgY29uc29sZS5lcnJvcihyZXMpXG4gICAgICAgICAgICBjb25zb2xlLmdyb3VwRW5kKClcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIG9mKHt9KVxuICAgICAgICB9KSxcbiAgICAgIClcbiAgICB9KVxuXG4gICAgcmV0dXJuIGZvcmtKb2luKHJlcXVlc3RzKS5waXBlKG1hcCgocmVzcG9uc2UpID0+IGRlZXBtZXJnZSguLi5yZXNwb25zZSkpKVxuICB9XG59XG4iXX0=
|
package/esm2022/public-api.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export * from './lib/multi-http-loader';
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL211bHRpLWh0dHAtbG9hZGVyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9tdWx0aS1odHRwLWxvYWRlcidcbiJdfQ==
|
@@ -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'\
|
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 { TranslateLoader } from '@ngx-translate/core'\nimport { deepmerge } from 'deepmerge-ts'\nimport { forkJoin, Observable, of } from 'rxjs'\nimport { catchError, map } from 'rxjs/operators'\n\nexport interface ITranslationResource {\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[] | ITranslationResource[],\n ) {}\n\n public getTranslation(lang: string): Observable<any> {\n const requests: Observable<Object | {}>[] = this._resourcesPrefix.map((resource) => {\n let path: string\n if (resource.prefix) path = `${resource.prefix}${lang}${resource.suffix || '.json'}`\n else path = `${resource}${lang}.json`\n\n return new HttpClient(this._handler).get(path).pipe(\n catchError((res) => {\n if (!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(map((response) => deepmerge(...response)))\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAYa,wBAAwB,CAAA;IACnC,WACU,CAAA,QAAqB,EACrB,gBAAmD,EAAA;QADnD,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAa;QACrB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAmC;KACzD;AAEG,IAAA,cAAc,CAAC,IAAY,EAAA;QAChC,MAAM,QAAQ,GAA8B,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAI;AACjF,YAAA,IAAI,IAAY,CAAA;YAChB,IAAI,QAAQ,CAAC,MAAM;AAAE,gBAAA,IAAI,GAAG,CAAA,EAAG,QAAQ,CAAC,MAAM,CAAG,EAAA,IAAI,CAAG,EAAA,QAAQ,CAAC,MAAM,IAAI,OAAO,EAAE,CAAA;;AAC/E,gBAAA,IAAI,GAAG,CAAG,EAAA,QAAQ,CAAG,EAAA,IAAI,OAAO,CAAA;YAErC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CACjD,UAAU,CAAC,CAAC,GAAG,KAAI;AACjB,gBAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;oBACtB,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;AACnB,iBAAA;AACD,gBAAA,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;aACd,CAAC,CACH,CAAA;AACH,SAAC,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;KAC1E;AACF;;ACvCD;;AAEG;;;;"}
|
package/package.json
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-translate-multi-http-loader",
|
3
|
-
"version": "16.0.
|
3
|
+
"version": "16.0.2",
|
4
4
|
"license": "MIT",
|
5
|
-
"author":
|
5
|
+
"author": {
|
6
|
+
"name": "Raphaël Balet",
|
7
|
+
"email": "raphael.balet@outlook.com"
|
8
|
+
},
|
6
9
|
"maintainers": [
|
7
10
|
"raphael.balet@outlook.com"
|
8
11
|
],
|
@@ -20,7 +23,7 @@
|
|
20
23
|
"url": "https://github.com/rbalet/ngx-translate-multi-http-loader"
|
21
24
|
},
|
22
25
|
"dependencies": {
|
23
|
-
"tslib": "^2.
|
26
|
+
"tslib": "^2.6.2"
|
24
27
|
},
|
25
28
|
"peerDependencies": {
|
26
29
|
"@angular/common": ">=13.0.0",
|