Skip to content

Commit

Permalink
update fallbackLocalesProperty readOnly and documentation, phetsims/p…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 11, 2022
1 parent 6956eae commit 91ce742
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/i18n/fallbackLocalesProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ import joist from '../joist.js';

const fallbackLocalesProperty = new Property<string[]>( [], {
tandem: Tandem.GENERAL_MODEL.createTandem( 'fallbackLocalesProperty' ),
phetioDocumentation: 'an ordered list of locales to fall back on, for example: ["es", "de", "en"]. The list MUST end in "en".',
phetioDocumentation: 'An ordered list of locales to "fall back" on when a translation is missing for the selected ' +
'locale, for example: ["es", "de" ]. "en" will always be added to the end of this, because it has' +
'guaranteed full coverage of all translated keys.',
phetioFeatured: true,
phetioReadOnly: true,
isValidValue: locales => {
return _.every( locales, locale => !!localeInfoModule[ locale as keyof typeof localeInfoModule ] );
},
Expand Down

0 comments on commit 91ce742

Please sign in to comment.