middleman/middleman-more/fixtures/i18n-default-app/source/localizable/index.html.erb
Ben Hollis 17b3e3e628 Include I18n::Fallbacks and set the default I18n locale to our default locale.
Thus, when a translation is missing in the current locale, fall back to the default locale. See https://github.com/svenfuchs/i18n/wiki/Fallbacks for more info and configuration settings available to users.

Also, this change adds a "t" helper that proxies to I18n.t, just like Rails, for more concise translating.
2013-04-06 18:07:09 -07:00

5 lines
161 B
Text

Default locale: <%= I18n.default_locale %>
Current locale: <%= I18n.locale %>
Fallbacks: <%= I18n.fallbacks[:en] %>
<%= t(:untranslated) %>
<%= t(:greetings) %>