Skip to content

Commit

Permalink
Allow YAML alias in translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ursm committed Feb 4, 2024
1 parent 0b56b98 commit bb70ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coverband/collectors/translation_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def concrete_target
app_translation_keys = []
app_translation_files = ::I18n.load_path.select { |f| f.match(/config\/locales/) }
app_translation_files.each do |file|
app_translation_keys += flatten_hash(YAML.load_file(file)).keys
app_translation_keys += flatten_hash(YAML.load_file(file, aliases: true)).keys
end
app_translation_keys.uniq
else
Expand Down

0 comments on commit bb70ecb

Please sign in to comment.