Sha256: 2687bcfb14c99243e110b2176c081b4f2d43754cc873684255304b75fff59b7a

Contents?: true

Size: 304 Bytes

Versions: 10

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  class DefaultLocale < JsonCheck
    severity :suggestion
    category :translation

    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

10 entries across 10 versions & 1 rubygems

Version Path
theme-check-0.4.0 lib/theme_check/checks/default_locale.rb
theme-check-0.3.3 lib/theme_check/checks/default_locale.rb
theme-check-0.3.2 lib/theme_check/checks/default_locale.rb
theme-check-0.3.1 lib/theme_check/checks/default_locale.rb
theme-check-0.3.0 lib/theme_check/checks/default_locale.rb
theme-check-0.2.2 lib/theme_check/checks/default_locale.rb
theme-check-0.2.0 lib/theme_check/checks/default_locale.rb
theme-check-0.1.2 lib/theme_check/checks/default_locale.rb
theme-check-0.1.1 lib/theme_check/checks/default_locale.rb
theme-check-0.1.0 lib/theme_check/checks/default_locale.rb