Skip to content

Commit

Permalink
Merge pull request #992 from dobesv/patch-1
Browse files Browse the repository at this point in the history
Use utf-8 as default encoding to read files
  • Loading branch information
karellm authored Jul 27, 2024
2 parents 2ef2163 + f38019b commit b4b61db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class i18nTransform extends Transform {
done()
return
} else {
content = fs.readFileSync(file.path, encoding)
content = fs.readFileSync(file.path, encoding || 'utf-8')
}

this.emit('reading', file)
Expand Down

0 comments on commit b4b61db

Please sign in to comment.