Skip to content

Commit b2d6ff0

Browse files
committed
Fix bug in translate module
No translations when using default language
1 parent 5759a2b commit b2d6ff0

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

angular-lib/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exlibris/exl-cloudapp-angular-lib",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"main": "index.js",
55
"description": "Library used in Ex Libris Cloud Apps",
66
"license": "https://developers.exlibrisgroup.com/about/terms",

angular-lib/src/angular/modules/translate.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { catchError } from 'rxjs/operators'
44

55
export class LazyTranslateLoader implements TranslateLoader {
66
getTranslation(lang: string): Observable<any> {
7-
return from(import(`../../../../.ng/src/i18n/${lang}.json`)).pipe(catchError(err=>of({})));
7+
return from(import(`src/i18n/${lang}.json`)).pipe(catchError(err=>of(null)));
88
}
99
}
1010

base/base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"@angular/forms": "^9.1.0",
1212
"@angular/material": "^9.2.0",
1313
"@angular/router": "^9.1.0",
14-
"@exlibris/exl-cloudapp-angular-lib": "^0.4.0",
14+
"@exlibris/exl-cloudapp-angular-lib": "^0.4.1",
1515
"@ngx-translate/core": "^12.1.0",
1616
"lodash": "^4.17.15",
1717
"ngx-toastr": "^12.0.0",
1818
"rxjs": "^6.5.5",
1919
"uuid": "^8.0.0",
20-
"@exlibris/exl-cloudapp-base": "^0.4.0"
20+
"@exlibris/exl-cloudapp-base": "^0.4.1"
2121
}
2222
}

base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exlibris/exl-cloudapp-base",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"scripts": {
55
"postinstall": "node scripts/postinstall.js"
66
},
@@ -26,7 +26,7 @@
2626
"@angular/router": "9.1.6",
2727
"@biesbjerg/ngx-translate-extract": "6.0.4",
2828
"@biesbjerg/ngx-translate-extract-marker": "1.0.0",
29-
"@exlibris/exl-cloudapp-angular-lib": "^0.4.0",
29+
"@exlibris/exl-cloudapp-angular-lib": "^0.4.1",
3030
"@ngx-translate/core": "12.1.2",
3131
"@ngx-translate/http-loader": "4.0.0",
3232
"@types/node": "13.13.5",

cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exlibris/exl-cloudapp-cli",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "",
55
"main": "index.js",
66
"bin": {
@@ -12,7 +12,7 @@
1212
"directory": "cli"
1313
},
1414
"dependencies": {
15-
"@exlibris/exl-cloudapp-base": "^0.4.0",
15+
"@exlibris/exl-cloudapp-base": "^0.4.1",
1616
"args": "5.0.1",
1717
"chalk": "4.0.0",
1818
"cheerio": "1.0.0-rc.3",

0 commit comments

Comments
 (0)