File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 11{
22 "name" : " nestjs-i18n" ,
3- "version" : " 2.0.1 " ,
3+ "version" : " 2.0.2 " ,
44 "description" : " " ,
55 "author" : " Toon van Strijp" ,
66 "repository" : {
You can’t perform that action at this time.
0 commit comments