Skip to content

Commit

Permalink
Use readFileSync instead of grunt.file.readJSON, see #1436
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 15, 2024
1 parent d584942 commit adb2586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grunt/getStringMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getStringFilesContents = ( reposWithUsedStrings, locales ) => {
const stringsFilename = path.normalize( `../${locale === ChipperConstants.FALLBACK_LOCALE ? '' : 'babel/'}${repo}/${repo}-strings_${locale}.json` );
let fileContents;
try {
fileContents = grunt.file.readJSON( stringsFilename );
fileContents = JSON.parse( fs.readFileSync( stringsFilename, 'utf-8' ) );
}
catch( error ) {
grunt.log.debug( `missing string file: ${stringsFilename}` );
Expand Down

0 comments on commit adb2586

Please sign in to comment.