Skip to content

Commit

Permalink
Merge pull request #501 from ursm/allow-alias-in-translation
Browse files Browse the repository at this point in the history
Allow YAML alias in translation
  • Loading branch information
danmayer committed Feb 17, 2024
2 parents 3136085 + bb70ecb commit 18612de
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 18612de

Please sign in to comment.