@@ -23,12 +23,10 @@ Get the complete changelog here: https://github.com/rbalet/ngx-translate-multi-h
23
23
24
24
We assume that you already installed [ ngx-translate] ( https://github.com/ngx-translate/core ) .
25
25
26
- Now you need to install the npm module for ` MultiTranslateHttpLoader ` :
27
- [ deepmerge-ts] ( https://www.npmjs.com/package/deepmerge-ts ) may also need to be installed _ should be done automatically though_
26
+ Now you need to install the npm module for ` MultiTranslateHttpLoader ` :
28
27
29
28
``` sh
30
29
npm install ngx-translate-multi-http-loader
31
- npm install deepmerge-ts
32
30
```
33
31
34
32
Choose the version corresponding to your Angular version:
@@ -102,23 +100,15 @@ export function HttpLoaderFactory(_httpBackend: HttpBackend) {
102
100
}
103
101
```
104
102
105
- The loader will merge all translation files from the server using [ deepmerge-ts ] ( https://www.npmjs.com/package/deepmerge-ts ) .
103
+ The loader will merge all translation files from the server
106
104
107
105
108
106
## Possible error & Bugfix
109
- ### Can't resolve 'deepmerge-ts'
110
- 1 . run ` npm i deepmerge-ts `
111
-
112
- This is due to some version of npm not being able to download peerDependencies properly.
113
-
114
- I decided to ** not** move it under dependencies since it's considered to be a bad practice.
115
107
116
108
### values.at is not a function
117
109
1 . Install ` core-js `
118
110
2 . In ` polyfills.ts ` , add ` import 'core-js/modules/es.array.at' `
119
111
120
- ` deepmerge-ts@5 ` uses ` Array.at ` , which is [ not supported] ( https://caniuse.com/?search=array.at ) in _ not so_ old versions of Safari ` < 15.4 ` .
121
-
122
112
123
113
## Authors and acknowledgment
124
114
* maintainer [ Raphaël Balet] ( https://github.com/rbalet )
0 commit comments