@@ -219,11 +219,11 @@ export default new Command()
219
219
220
220
if ( ! fileExists ) {
221
221
// All keys are missing for this locale
222
- fileStats [ filePath ] . languageStats [ targetLocale ] . missing = sourceKeys . length ;
223
- fileStats [ filePath ] . languageStats [ targetLocale ] . words = sourceWordCount ;
224
- languageStats [ targetLocale ] . missing += sourceKeys . length ;
225
- languageStats [ targetLocale ] . words += sourceWordCount ;
226
- totalWordCount . set ( targetLocale , ( totalWordCount . get ( targetLocale ) || 0 ) + sourceWordCount ) ;
222
+ fileStats [ filePath ] . languageStats [ _targetLocale ] . missing = sourceKeys . length ;
223
+ fileStats [ filePath ] . languageStats [ _targetLocale ] . words = sourceWordCount ;
224
+ languageStats [ _targetLocale ] . missing += sourceKeys . length ;
225
+ languageStats [ _targetLocale ] . words += sourceWordCount ;
226
+ totalWordCount . set ( _targetLocale , ( totalWordCount . get ( _targetLocale ) || 0 ) + sourceWordCount ) ;
227
227
228
228
bucketOra . succeed (
229
229
`[${ sourceLocale } -> ${ targetLocale } ] ${ chalk . red ( `0% complete` ) } (0/${ sourceKeys . length } keys) - file not found` ,
@@ -257,17 +257,17 @@ export default new Command()
257
257
}
258
258
259
259
// Update file stats
260
- fileStats [ filePath ] . languageStats [ targetLocale ] . missing = missingKeys . length ;
261
- fileStats [ filePath ] . languageStats [ targetLocale ] . updated = updatedKeys . length ;
262
- fileStats [ filePath ] . languageStats [ targetLocale ] . complete = completeKeys . length ;
263
- fileStats [ filePath ] . languageStats [ targetLocale ] . words = wordsToTranslate ;
260
+ fileStats [ filePath ] . languageStats [ _targetLocale ] . missing = missingKeys . length ;
261
+ fileStats [ filePath ] . languageStats [ _targetLocale ] . updated = updatedKeys . length ;
262
+ fileStats [ filePath ] . languageStats [ _targetLocale ] . complete = completeKeys . length ;
263
+ fileStats [ filePath ] . languageStats [ _targetLocale ] . words = wordsToTranslate ;
264
264
265
265
// Update global stats
266
- languageStats [ targetLocale ] . missing += missingKeys . length ;
267
- languageStats [ targetLocale ] . updated += updatedKeys . length ;
268
- languageStats [ targetLocale ] . complete += completeKeys . length ;
269
- languageStats [ targetLocale ] . words += wordsToTranslate ;
270
- totalWordCount . set ( targetLocale , ( totalWordCount . get ( targetLocale ) || 0 ) + wordsToTranslate ) ;
266
+ languageStats [ _targetLocale ] . missing += missingKeys . length ;
267
+ languageStats [ _targetLocale ] . updated += updatedKeys . length ;
268
+ languageStats [ _targetLocale ] . complete += completeKeys . length ;
269
+ languageStats [ _targetLocale ] . words += wordsToTranslate ;
270
+ totalWordCount . set ( _targetLocale , ( totalWordCount . get ( _targetLocale ) || 0 ) + wordsToTranslate ) ;
271
271
272
272
// Display progress
273
273
const totalKeysInFile = sourceKeys . length ;
0 commit comments