Skip to content

Commit

Permalink
Update update.rb to track the latest Rails release
Browse files Browse the repository at this point in the history
  • Loading branch information
pama committed Nov 9, 2024
1 parent 35ad77d commit bcd1199
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions rails/rails/active_model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ en:
too_long:
one: "is too long (maximum is 1 character)"
other: "is too long (maximum is %{count} characters)"
password_too_long: "is too long"
too_short:
one: "is too short (minimum is 1 character)"
other: "is too short (minimum is %{count} characters)"
Expand Down
2 changes: 2 additions & 0 deletions rails/rails/active_support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ en:
format:
# Where is the currency sign? %u is the currency unit, %n is the number (default: $5.00)
format: "%u%n"
negative_format: "-%u%n"
unit: "$"
# These six are to override number.format and are optional
separator: "."
Expand Down Expand Up @@ -112,6 +113,7 @@ en:
tb: "TB"
pb: "PB"
eb: "EB"
zb: "ZB"
# Used in NumberHelper.number_to_human()
decimal_units:
format: "%n %u"
Expand Down
8 changes: 4 additions & 4 deletions rails/script/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
puts "Fetching latest Rails locale files to #{rails_locale_dir}"

exec %(
curl -Lo '#{rails_locale_dir}/action_view.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/actionview/lib/action_view/locale/en.yml
curl -Lo '#{rails_locale_dir}/action_view.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/actionview/lib/action_view/locale/en.yml
curl -Lo '#{rails_locale_dir}/active_model.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/activemodel/lib/active_model/locale/en.yml
curl -Lo '#{rails_locale_dir}/active_model.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/activemodel/lib/active_model/locale/en.yml
curl -Lo '#{rails_locale_dir}/active_record.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/activerecord/lib/active_record/locale/en.yml
curl -Lo '#{rails_locale_dir}/active_record.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/activerecord/lib/active_record/locale/en.yml
curl -Lo '#{rails_locale_dir}/active_support.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/activesupport/lib/active_support/locale/en.yml
curl -Lo '#{rails_locale_dir}/active_support.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/activesupport/lib/active_support/locale/en.yml
)

0 comments on commit bcd1199

Please sign in to comment.