mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ecb1981bfd
Given the following templates: mailer/demo.html.erb mailer/demo.en.html.erb mailer/demo.pt.html.erb Before this change for a locale that doesn't have its related file the `mailer/demo.html.erb` will be rendered even if `en` is the default locale. Now `mailer/demo.en.html.erb` has precedence over the file without locale. Also, it is possible to give a fallback. mailer/demo.pt.html.erb mailer/demo.pt-BR.html.erb So if the locale is `pt-PT`, `mailer/demo.pt.html.erb` will be rendered given the right I18n fallback configuration. Fixes #11884. |
||
---|---|---|
.. | ||
anonymous | ||
another.path/base_mailer | ||
asset_host_mailer | ||
asset_mailer | ||
async_mailer | ||
attachments | ||
auto_layout_mailer | ||
base_mailer | ||
base_test | ||
explicit_layout_mailer | ||
first_mailer | ||
i18n_test_mailer | ||
layouts | ||
mail_delivery_test/delivery_mailer | ||
nested_layout_mailer | ||
path.with.dots/funky_path_mailer | ||
proc_mailer | ||
second_mailer | ||
templates | ||
test_helper_mailer | ||
test_mailer | ||
url_test_mailer | ||
raw_email |