Sha256: d3431334c6e228f05a7ea9160d335d94d8e16f2ed6535963a9929470678ce55c

Contents?: true

Size: 331 Bytes

Versions: 19

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  class DefaultLocale < JsonCheck
    severity :suggestion
    category :translation
    doc docs_url(__FILE__)

    def on_end
      return if @theme.default_locale_json
      add_offense("Default translation file not found (for example locales/en.default.json)")
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
theme-check-1.3.0 lib/theme_check/checks/default_locale.rb
theme-check-1.2.0 lib/theme_check/checks/default_locale.rb
theme-check-1.1.0 lib/theme_check/checks/default_locale.rb
theme-check-1.0.0 lib/theme_check/checks/default_locale.rb
theme-check-0.10.2 lib/theme_check/checks/default_locale.rb
theme-check-0.10.1 lib/theme_check/checks/default_locale.rb
theme-check-0.10.0 lib/theme_check/checks/default_locale.rb
theme-check-0.9.1 lib/theme_check/checks/default_locale.rb
theme-check-0.9.0 lib/theme_check/checks/default_locale.rb
theme-check-0.8.3 lib/theme_check/checks/default_locale.rb
theme-check-0.8.2 lib/theme_check/checks/default_locale.rb
theme-check-0.8.1 lib/theme_check/checks/default_locale.rb
theme-check-0.8.0 lib/theme_check/checks/default_locale.rb
theme-check-0.7.3 lib/theme_check/checks/default_locale.rb
theme-check-0.7.2 lib/theme_check/checks/default_locale.rb
theme-check-0.7.1 lib/theme_check/checks/default_locale.rb
theme-check-0.7.0 lib/theme_check/checks/default_locale.rb
theme-check-0.6.0 lib/theme_check/checks/default_locale.rb
theme-check-0.5.0 lib/theme_check/checks/default_locale.rb