Skip to content

Commit

Permalink
Readme: Preset properties > name: Explain edge case of presets with…
Browse files Browse the repository at this point in the history
… underscore

This edge case is probably due to the `stripLeadingUnderscores` in the build which removes the underscore early on in the processing.
  • Loading branch information
tordans authored Apr 25, 2024
1 parent 07f8a35 commit afcd9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ The primary name of the feature type.

Upon merging into the `main` branch, this is sent to Transifex for translating to other localizations. Changing the name of an existing preset will require it to be re-translated to all localizations.

A preset can optionally reference the label of another by using that preset's name contained in brackets, like `{preset}`. In which case the presets's _terms_ and _aliases_ are also automatically sourced from that other field. This is for example useful for regional presets which should get the same labels as the preset they are based on.
A preset can optionally reference the label of another by using that preset's name contained in brackets, like `{presetId}` or `{folder/presetId}`. In which case the presets's _terms_ and _aliases_ are also automatically sourced from that other field. This is for example useful for regional presets which should get the same labels as the preset they are based on. The `presetId` is the same as the filename but ignoring the underscore convention for unsearchable presets. So for a preset at `folder/_name` the reference would be `{folder/name}`.

This property is required. There is no default.

Expand Down

0 comments on commit afcd9cc

Please sign in to comment.