Skip to content

Conversation

@thdaraujo
Copy link
Contributor

@thdaraujo thdaraujo commented Mar 11, 2025

Motivation / Background

Closes #3158

  • Adds rake task to reformat all locales using the existing yaml formatter
  • Reformats all the existing locales

Note that I skipped the files that had changes such as single quotes
vs quotes, and whitespace removal to keep this PR as small as it can
possibly be.

I did encounter a flaky test with the fr locale compass test. It got fixed
when I edited the values to keep the quotes around them.

Running the task again will remove whitespaces, comments, ident with two spaces,
and other small things. Ideally, we won't need to run it again for all files, though.
To keep moving forward with the next steps, I didn't fix the task to encounter for these
small scenarios.

@thdaraujo thdaraujo self-assigned this Mar 11, 2025
@thdaraujo thdaraujo changed the title Add reformat locale rake task Add reformat locale rake task (WIP) May 4, 2025
This task reformats all YAML locales.
@stefannibrasil stefannibrasil force-pushed the ta/reformat-locales branch 3 times, most recently from ec50eea to 7d5e9c2 Compare January 8, 2026 00:40
@stefannibrasil
Copy link
Contributor

The tests seem to be flaky. I will investigate tomorrow.

@stefannibrasil stefannibrasil changed the title Add reformat locale rake task (WIP) Add reformat locales rake task Jan 8, 2026
These files have been formatted using the new rake task.

Note that I skipped the files that had changes such as single quotes
vs quotes, and whitespace removal to keep this PR as small as it can
possibly be.

I did encounter a flaky test with the fr locale compass test. It got fixed
when I edited the values to keep the quotes around them.

Running the task again will remove whitespaces, comments, ident with two spaces,
and other small things. Ideally, we won't need to run it again for all files, though.
To keep moving forward with the next steps, I didn't fix the task to encounter for these
small scenarios.
@stefannibrasil stefannibrasil marked this pull request as ready for review January 8, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Normalize YML files

3 participants