Locale/localeapp

Use the original filename instead of the locale

xvega opened this issue · 0 comments

xvega commented

I'm testing out this gem and the web application, I currently have many locales for multiple languages. I've noticed that the gem uses the locale (e.g: "en", "es", etc) Instead of the original filename. This causes I get a new locale file every time I pull instead of replacing the file with the updates.

filename = File.join(Localeapp.configuration.translation_data_directory, "#{short_code}.yml")

My file is named views.en.yaml

The content looks like this:

en:
  foo: "bar"

After pulling the file with updates it's named en.yaml

I'd be happy to open a PR if this is something you'd add to your gem.