Skip to content

Commit

Permalink
Merge pull request tolk#8 from joost/master
Browse files Browse the repository at this point in the history
Fix for sync and unloaded translations
  • Loading branch information
Thomas Darde committed Jun 5, 2012
2 parents dd0e405 + 36dbbca commit fede18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tolk/sync.rb
Expand Up @@ -10,7 +10,7 @@ def sync!
end

def load_translations
I18n.available_locales # force load
I18n.backend.send :init_translations unless I18n.backend.initialized? # force load
translations = flat_hash(I18n.backend.send(:translations)[primary_locale.name.to_sym])
filter_out_i18n_keys(translations.merge(read_primary_locale_file))
end
Expand Down

0 comments on commit fede18a

Please sign in to comment.