Replacing string localization message id data fields with the new LocId type #20584
DrSmugleaf
announced in
Code announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
LocId
has been added as a type, which should be used in data fields that hold localization message ids (space-wizards/RobustToolbox#4456)For example:
Becomes:
The values for these fields in both prototypes and code will then be automatically validated by the yaml linter, to check if they exist in any .ftl files under Resources/Locale.
Where LocId is used, running the yaml linter may also be used by downstreams of a different language to check for missing localization ids used by prototypes in their locale, if the fallback culture is not set to English.
New PRs must start using LocId where relevant, in the same way as ProtoId and EntProtoId. (#20586)
Beta Was this translation helpful? Give feedback.
All reactions