lib/tolk/sync.rb in tolk-1.9.0 vs lib/tolk/sync.rb in tolk-1.9.1
- old
+ new
@@ -18,10 +18,10 @@
if Tolk.config.block_xxx_en_yml_locale_files
locale_block_filter = Proc.new {
|l| ['.', '..'].include?(l) ||
!l.ends_with?('.yml') ||
- l.match(/(.*\.){2,}/) # reject files of type xxx.en.yml
+ l.split("/").last.match(/(.*\.){2,}/) # reject files of type xxx.en.yml
}
translations_files = translations_files.reject(&locale_block_filter)
end
I18n.backend.load_translations(translations_files)