Skip to content

Commit 18612de

Browse files
authored
Merge pull request #501 from ursm/allow-alias-in-translation
Allow YAML alias in translation
2 parents 3136085 + bb70ecb commit 18612de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coverband/collectors/translation_tracker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def concrete_target
3636
app_translation_keys = []
3737
app_translation_files = ::I18n.load_path.select { |f| f.match(/config\/locales/) }
3838
app_translation_files.each do |file|
39-
app_translation_keys += flatten_hash(YAML.load_file(file)).keys
39+
app_translation_keys += flatten_hash(YAML.load_file(file, aliases: true)).keys
4040
end
4141
app_translation_keys.uniq
4242
else

0 commit comments

Comments
 (0)