Sha256: 26d8ae97cb8f090cd6b98e0ba2d3facda319eab0792c6b9c7aae82656b97a4fa

Contents?: true

Size: 409 Bytes

Versions: 11

Compression:

Stored size: 409 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)") do |corrector|
        corrector.create_default_locale_json(@theme)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
theme-check-1.8.0 lib/theme_check/checks/default_locale.rb
theme-check-1.7.2 lib/theme_check/checks/default_locale.rb
theme-check-1.7.1 lib/theme_check/checks/default_locale.rb
theme-check-1.7.0 lib/theme_check/checks/default_locale.rb
theme-check-1.6.2 lib/theme_check/checks/default_locale.rb
theme-check-1.6.1 lib/theme_check/checks/default_locale.rb
theme-check-1.6.0 lib/theme_check/checks/default_locale.rb
theme-check-1.5.2 lib/theme_check/checks/default_locale.rb
theme-check-1.5.1 lib/theme_check/checks/default_locale.rb
theme-check-1.5.0 lib/theme_check/checks/default_locale.rb
theme-check-1.4.0 lib/theme_check/checks/default_locale.rb