Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Conversation

@chrisberthe
Copy link
Contributor

No description provided.

@chrisberthe chrisberthe requested a review from t-kelly February 26, 2025 19:02
Copy link
Contributor

@t-kelly t-kelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Thought I had some proposed changes but after reading further you covered them. Anything you want particular attention with?

Comment on lines +73 to +76
[Flags.FORMAT]: OclifFlags.boolean({
default: false,
description: 'Format locale files by sorting keys alphabetically',
}),
Copy link
Contributor

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?

Copy link
Contributor Author

@chrisberthe chrisberthe Feb 27, 2025

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.

@chrisberthe
Copy link
Contributor Author

Anything you want particular attention with?

🙅🏻 Was mostly looking for feedback about the command and its flags. Other than that, a quick scan is enough for me.

@chrisberthe chrisberthe merged commit 5549af4 into main Mar 3, 2025
5 checks passed
@chrisberthe chrisberthe deleted the add-locale-command branch March 3, 2025 16:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants