Skip to content

Commit

Permalink
add duplicate check to QSM.addWarning(), phetsims/joist#970
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <michael.kauzmann@colorado.edu>
  • Loading branch information
zepumph committed Jul 15, 2024
1 parent 98c4f19 commit fdc5e1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/initialize-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@
assert && assert( false, 'invalid locale:', inputValueLocale );
}
else {
// This may occur twice in unbuilt mode when done loading unbuilt strings and when running this file.
QueryStringMachine.addWarning( 'locale', inputValueLocale, `Invalid locale format received: ${badLocale}. ?locale query parameter accepts the following formats: "xx" for ISO-639-1, "xx_XX" for ISO-639-1 and a 2-letter country code, "xxx" for ISO-639-2` );
}
}
Expand Down

0 comments on commit fdc5e1f

Please sign in to comment.