nestjs-i18n
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -23,2 +23,3 @@ "use strict"; | ||
saveMissing: false, | ||
fallbackLanguage: 'NOT_USED', | ||
}); | ||
@@ -36,3 +37,4 @@ let uniqueKeys = []; | ||
uniqueKeys.forEach(key => { | ||
if (!translations[lang].hasOwnProperty(key)) { | ||
if (!translations.hasOwnProperty(lang) || | ||
!translations[lang].hasOwnProperty(key)) { | ||
errorCount++; | ||
@@ -39,0 +41,0 @@ const fileName = key.split('.')[0]; |
@@ -6,4 +6,4 @@ import { Type } from '@nestjs/common'; | ||
path: string; | ||
fallbackLanguage: string; | ||
filePattern?: string; | ||
fallbackLanguage?: string; | ||
resolvers?: I18nResolver[]; | ||
@@ -10,0 +10,0 @@ saveMissing?: boolean; |
{ | ||
"name": "nestjs-i18n", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Toon van Strijp", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1613921
1031