Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphabetize messages #40

Merged
merged 2 commits into from
Oct 16, 2017
Merged

Alphabetize messages #40

merged 2 commits into from
Oct 16, 2017

Conversation

evansiroky
Copy link

Please merge this!

@codecov-io
Copy link

codecov-io commented Oct 9, 2017

Codecov Report

Merging #40 into dev will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff          @@
##             dev     #40   +/-   ##
=====================================
  Coverage   1.34%   1.34%           
=====================================
  Files        314     314           
  Lines      10536   10536           
  Branches    3628    3628           
=====================================
  Hits         142     142           
  Misses      8549    8549           
  Partials    1845    1845
Impacted Files Coverage Δ
lib/common/util/config.js 34.78% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2cf4ce7...6269496. Read the comment docs.

@@ -1,371 +1,368 @@
id: en-US
name: English
Copy link
Member

Choose a reason for hiding this comment

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

I somewhat prefer having id and name on the first few lines of the i18n files.

Maybe we should nest all of the alphabetized components under a components key.

Copy link
Author

Choose a reason for hiding this comment

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

I'm using https://github.com/akfernun/yaml-sortkeys to sort everything and would rather not make exceptions like this. FWIW, since every other first-level key is capitalized, these keys end up at the very bottom.

Copy link
Member

@landonreed landonreed Oct 16, 2017

Choose a reason for hiding this comment

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

@evansiroky, shall we just put underscores in front of id and name (_id and _name)? We'll need to change where these keys are called in config.js (I think only id is used at the moment).

Copy link
Author

Choose a reason for hiding this comment

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

Prefixing with an underscore won't work because underscores have a higher char code than capital letters.

@landonreed landonreed merged commit 88376b1 into dev Oct 16, 2017
@landonreed landonreed deleted the alphabetize-messages branch October 16, 2017 19:38
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.

3 participants