Skip to content

Commit 1995667

Browse files
committed
Localization updates
1 parent 393d16d commit 1995667

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

eform-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"ng2-file-upload": "^1.3.0",
4040
"ngx-slimscroll": "^5.2.2",
4141
"ngx-toastr": "^8.10.0",
42-
"ngx-translate-multi-http-loader": "^2.0.2",
4342
"npm": "^6.4.1",
4443
"rxjs": "^6.0.0",
4544
"zone.js": "^0.8.26"

eform-client/port/angular-bootstrap-md/scss/bootstrap/mixins/_text-hide.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66
text-shadow: none;
77
background-color: transparent;
88
border: 0;
9-
10-
@warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
119
}

eform-client/port/angular-bootstrap-md/scss/core/_mixins.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@
210210
text-shadow: none;
211211
background-color: transparent;
212212
border: 0;
213-
214-
@if ($ignore-warning != true) {
215-
@warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
216-
}
217213
}
218214

219215
// Only display content to screen readers

eform-client/src/app/common/helpers/locale.helper.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {HttpClient} from '@angular/common/http';
22
import {MissingTranslationHandler, MissingTranslationHandlerParams, TranslateLoader} from '@ngx-translate/core';
3-
import {MultiTranslateHttpLoader} from 'ngx-translate-multi-http-loader';
3+
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
44

55
// Missing translation
66
export class EformMissingTranslationHandler implements MissingTranslationHandler {
@@ -28,10 +28,7 @@ export class EformMissingTranslationHandler implements MissingTranslationHandler
2828

2929
// AoT requires an exported function for factories
3030
export function createTranslateLoader(http: HttpClient) {
31-
return new MultiTranslateHttpLoader(http, [
32-
{prefix: './assets/i18n/', suffix: '.json'},
33-
// {prefix: './assets/plugins/customers-pn/assets/i18n/', suffix: '.json'}
34-
]);
31+
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
3532
}
3633

3734
export let translateConfig = {

0 commit comments

Comments
 (0)