Skip to content

Commit 217f895

Browse files
committed
fixed callstack error
1 parent 5b64bee commit 217f895

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/services/i18n.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class I18nService {
5353
if (translation === undefined || translation === null) {
5454
const message = `translation "${key}" in "${lang}" doesn't exist.`;
5555
this.logger.error(message);
56-
if(this.i18nOptions.fallbackLanguage !== null || this.i18nOptions.fallbackLanguage !== undefined && lang !== this.i18nOptions.fallbackLanguage) {
56+
if((this.i18nOptions.fallbackLanguage !== null || this.i18nOptions.fallbackLanguage !== undefined) && lang !== this.i18nOptions.fallbackLanguage) {
5757
return this.translate(this.i18nOptions.fallbackLanguage, key, args);
5858
}else {
5959
return message;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nestjs-i18n",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "",
55
"author": "Toon van Strijp",
66
"repository": {

0 commit comments

Comments
 (0)