Module: ThemeCheck::SystemTranslations
- Extended by:
- SystemTranslations
- Included in:
- SystemTranslations
- Defined in:
- lib/theme_check/checks/translation_key_exists.rb
Instance Method Summary collapse
Instance Method Details
#include?(key) ⇒ Boolean
10 11 12 |
# File 'lib/theme_check/checks/translation_key_exists.rb', line 10 def include?(key) translations.include?(key) end |
#translations ⇒ Object
6 7 8 |
# File 'lib/theme_check/checks/translation_key_exists.rb', line 6 def translations @translations ||= YAML.load(File.read("#{__dir__}/../../../data/shopify_translation_keys.yml")).to_set end |