-
Notifications
You must be signed in to change notification settings - Fork 4
Add locale command #475
Add locale command #475
Conversation
t-kelly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [Flags.FORMAT]: OclifFlags.boolean({ | ||
| default: false, | ||
| description: 'Format locale files by sorting keys alphabetically', | ||
| }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this defaults to false, in what order are new locales keys added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. With format as false, the order corresponds to the sequence in which they appear in the Liquid files. Small caveat though: these new keys aren't reordered amongst the existing keys. They're added at the end of whatever object they're contained in.
🙅🏻 Was mostly looking for feedback about the command and its flags. Other than that, a quick scan is enough for me. |
3d7424d to
720a2c3
Compare

No description provided.