Skip to content

Commit

Permalink
Remove references to default_locale in fallbacks comment
Browse files Browse the repository at this point in the history
ruby-i18n#415 changed the behaviour, but this comment was not updated to reflect the change.
  • Loading branch information
movermeyer committed Mar 16, 2022
1 parent 5191ee0 commit 1ae0e3f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/i18n/locale/fallbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@
# * all parent locales of a given locale (e.g. :es for :"es-MX") first,
# * the current default locales and all of their parents second
#
# The default locales are set to [I18n.default_locale] by default but can be
# set to something else.
# The default locales are set to [] by default but can be set to something else.
#
# One can additionally add any number of additional fallback locales manually.
# These will be added before the default locales to the fallback chain. For
# example:
#
# # using the default locale as default fallback locale
#
# I18n.default_locale = :"en-US"
# I18n.fallbacks = I18n::Locale::Fallbacks.new(:"de-AT" => :"de-DE")
# I18n.fallbacks[:"de-AT"] # => [:"de-AT", :de, :"de-DE"]
#
# # using a custom locale as default fallback locale
#
# I18n.fallbacks = I18n::Locale::Fallbacks.new(:"en-GB", :"de-AT" => :de, :"de-CH" => :de)
Expand Down

0 comments on commit 1ae0e3f

Please sign in to comment.