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

Update rails update script #1086

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Conversation

jlduran
Copy link
Contributor

@jlduran jlduran commented Jun 4, 2023

The update.rb script downloads the locale files from rails/rails.
These files are merged and normalized into a single en.yml, which serves as the basis for this gem.
This pull request updates the update.rb script, by pointing it to the correct branch from the Rails project. Also, updates the latest version of each locale file under rails/rails. It is important to note that these files are external to this gem, and only the keys are used for comparison.

@@ -4,37 +4,37 @@
distance_in_words:
half_a_minute: "half a minute"
less_than_x_seconds:
one: "less than %{count} second"
one: "less than 1 second"
Copy link
Contributor

Choose a reason for hiding this comment

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

The decision to prefer %{count} was discussed in #993

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, that is why #1088 leaves them as they are.
These changes are verbatim from https://github.com/rails/rails/blob/main/actionview/lib/action_view/locale/en.yml
This file does not belong to this project, it is only used as a reference.

@jlduran
Copy link
Contributor Author

jlduran commented Jun 4, 2023

I have updated the description to further clarify the changes, and state that the files we are changing are under rails/rails i.e., these files are external files, not under the control of this project. Only the keys of these files are used for comparison.

@pama pama merged commit bcc6f6e into svenfuchs:master Jun 5, 2023
@jlduran jlduran deleted the update-rails-script branch June 5, 2023 23:47
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