@chat21/chat21-web-widget 5.1.9-ar → 5.1.10-ar
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/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/src/app/app.module.ts +15 -12
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/app/app.module.ts
CHANGED
|
@@ -59,8 +59,9 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
59
59
|
import { environment } from 'src/environments/environment';
|
|
60
60
|
|
|
61
61
|
//THIRD-PART MODULES
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
62
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
63
|
+
// import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
|
64
|
+
// import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
64
65
|
// import { MomentModule } from 'ngx-moment';
|
|
65
66
|
import { PickerModule } from '@ctrl/ngx-emoji-mart';
|
|
66
67
|
import { LoggerModule, NGXLogger, NgxLoggerLevel } from "ngx-logger";
|
|
@@ -205,10 +206,12 @@ export function conversationHandlerFactory(chat21Service: Chat21Service, appConf
|
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
|
|
209
|
+
|
|
210
|
+
|
|
208
211
|
// ngx-translate Http loader factory
|
|
209
|
-
export function createTranslateLoader(http: HttpClient) {
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
+
// export function createTranslateLoader(http: HttpClient) {
|
|
213
|
+
// return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
|
214
|
+
// }
|
|
212
215
|
|
|
213
216
|
export function typingFactory(chat21Service: Chat21Service, appConfig: AppConfigService) {
|
|
214
217
|
const config = appConfig.getConfig()
|
|
@@ -314,13 +317,13 @@ export function uploadFactory(http: HttpClient, appConfig: AppConfigService, app
|
|
|
314
317
|
FormsModule,
|
|
315
318
|
ReactiveFormsModule,
|
|
316
319
|
PickerModule,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
320
|
+
TranslateModule.forRoot({
|
|
321
|
+
// defaultLanguage: 'en',
|
|
322
|
+
// loader: {
|
|
323
|
+
// provide: TranslateLoader,
|
|
324
|
+
// useFactory: (createTranslateLoader),
|
|
325
|
+
// deps: [HttpClient]
|
|
326
|
+
// }
|
|
324
327
|
}),
|
|
325
328
|
LoggerModule.forRoot({
|
|
326
329
|
level: NgxLoggerLevel.DEBUG,
|