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. |
||
---|---|---|
.. | ||
attachment_with_content.erb | ||
attachment_with_hash.html.erb | ||
attachment_with_hash_default_encoding.html.erb | ||
different_layout.html.erb | ||
different_layout.text.erb | ||
email_custom_layout.text.html.erb | ||
email_with_translations.html.erb | ||
explicit_multipart_templates.html.erb | ||
explicit_multipart_templates.text.erb | ||
explicit_multipart_with_one_template.erb | ||
html_only.html.erb | ||
implicit_multipart.html.erb | ||
implicit_multipart.text.erb | ||
implicit_with_locale.de-AT.text.erb | ||
implicit_with_locale.de.html.erb | ||
implicit_with_locale.en.html.erb | ||
implicit_with_locale.html.erb | ||
implicit_with_locale.pl.text.erb | ||
implicit_with_locale.text.erb | ||
inline_attachment.html.erb | ||
inline_attachment.text.erb | ||
plain_text_only.text.erb | ||
welcome.erb | ||
welcome_with_headers.html.erb | ||
without_mail_call.erb |