Skip to content

Commit

Permalink
Add used string files (string-map.json/english-string-map.json) for R…
Browse files Browse the repository at this point in the history
…osetta and other purposes, see phetsims/rosetta#384
  • Loading branch information
jonathanolson committed Dec 6, 2023
1 parent 5b5aeff commit 779a3e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/grunt/buildRunnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ module.exports = async function( repo, minifyOptions, allHTML, brand, localesOpt
// dependencies.json
grunt.file.write( `${buildDir}/dependencies.json`, JSON.stringify( dependencies, null, 2 ) );

// string-map.json and english-string-map.json, for things like Rosetta that need to know what strings are used
grunt.file.write( `${buildDir}/string-map.json`, JSON.stringify( stringMap, null, 2 ) );
grunt.file.write( `${buildDir}/english-string-map.json`, JSON.stringify( stringMap.en, null, 2 ) );

// -iframe.html (English is assumed as the locale).
if ( _.includes( locales, ChipperConstants.FALLBACK_LOCALE ) && brand === 'phet' ) {
const englishTitle = stringMap[ ChipperConstants.FALLBACK_LOCALE ][ getTitleStringKey( repo ) ];
Expand Down

0 comments on commit 779a3e6

Please sign in to comment.