komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components
http://komponent.io
MIT License
427 stars 31 forks source link

Cleanup i18n dynamic path for locale file paths #110

Closed nicolas-brousse closed 6 years ago

nicolas-brousse commented 6 years ago

Use a more precise path fot i18n load_path to avoid loading other yaml file on components.

On a project I created an image component to easily generate an html picture tag. And so I also create a formats.yml to store my images formats I want to use. And so with the current path used for i18n.load_path, my formats.yml file is loaded with locale files.

I do this update on my app and it seems good enough.

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 502


Totals Coverage Status
Change from base Build 482: 0.0%
Covered Lines: 118
Relevant Lines: 118

💛 - Coveralls