From bb70ecbefcd61b631c82665f6b49c787f8d3db31 Mon Sep 17 00:00:00 2001 From: Keita Urashima Date: Sun, 4 Feb 2024 15:58:52 +0900 Subject: [PATCH] Allow YAML alias in translation --- lib/coverband/collectors/translation_tracker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coverband/collectors/translation_tracker.rb b/lib/coverband/collectors/translation_tracker.rb index 6c4050b2..ce88739c 100644 --- a/lib/coverband/collectors/translation_tracker.rb +++ b/lib/coverband/collectors/translation_tracker.rb @@ -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