-
-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 18n fallback when "mount_at_root" is false (#2602)
* Fix fallback locale with "mount_at_root: false" ruby-i18n does not add the default_locale to the list of fallbacks anymore since v1.1.0. This breaks fallbacks when "mount_at_root" config options is set to "false". Fixed this by explicitly adding the default_locale to the list of fallbacks. * Added translation fallbacks test with "mount_at_root: false" --------- Co-authored-by: phernandez <pedrohdezmlg@gmail.com>
- Loading branch information
1 parent
7ca4c42
commit 17e647f
Showing
4 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ en: | |
greetings: "Howdy" | ||
hi: "Hello" | ||
tac: "Terms & Conditions" | ||
fallback: "Fallback" |
1 change: 1 addition & 0 deletions
1
middleman-core/fixtures/i18n-test-app/source/localizable/fallback.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= I18n.t(:fallback) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters