Skip to content

Commit

Permalink
changed translations to always build all locales on the build-server p…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpen committed Jul 8, 2024
1 parent 7aea298 commit fb5e3a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/build-server/taskWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ async function runTask( options ) {
}
}

const localesArray = typeof ( locales ) === 'string' ? locales.split( ',' ) : locales;
// if this build request comes from rosetta it will have a userId field and only one locale
const isTranslationRequest = userId && localesArray.length === 1 && localesArray[ 0 ] !== '*';

await releaseBranch.build( {
clean: false,
locales: locales,
locales: isTranslationRequest ? '*' : locales,
buildForServer: true,
lint: false,
allHTML: !( chipperVersion.major === 0 && chipperVersion.minor === 0 && brands[ 0 ] !== constants.PHET_BRAND )
Expand All @@ -203,10 +207,7 @@ async function runTask( options ) {
await devDeploy( checkoutDir, simName, version, chipperVersion, brands, buildDir );
}

const localesArray = typeof ( locales ) === 'string' ? locales.split( ',' ) : locales;

// if this build request comes from rosetta it will have a userId field and only one locale
const isTranslationRequest = userId && localesArray.length === 1 && localesArray[ 0 ] !== '*';

if ( servers.indexOf( constants.PRODUCTION_SERVER ) >= 0 ) {
winston.info( 'deploying to production' );
Expand Down

0 comments on commit fb5e3a1

Please sign in to comment.