1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/fixtures/i18n-test-app
Gregor Schmidt b928d245b2 Use i18n fallbacks when looking up localized paths (#2116)
* Use i18n fallbacks when looking up localized paths

In #853, the usage of i18n-fallbacks was introduced. For undocumented reasons, the fallbacks are ignored for localized paths, though.

This commit removes this limitation, and adds a test to make sure, that it works as desired.

* Extending fixture data to fix tests

With the introduction of i18n fallbacks for localized paths, the tests which set the default locale to Spanish failed, since the Spanish path mappings were now used for the English locale as well. So the expected paths were now incorrect.

This change adds the expected paths to the English i18n file, so that the tests pass again.
2017-10-12 16:38:05 -07:00
..
data Fix regex which was allowing i18n to file yaml files in the data folder 2013-06-24 13:56:32 -07:00
locales Use i18n fallbacks when looking up localized paths (#2116) 2017-10-12 16:38:05 -07:00
source Use i18n fallbacks when looking up localized paths (#2116) 2017-10-12 16:38:05 -07:00