Sha256: c3fb33c9e073ddfe2a6f8b437a8d4a693269881cb720137f1a08072a908bbfc7
Contents?: true
Size: 442 Bytes
Versions: 7
Compression:
Stored size: 442 Bytes
Contents
# frozen_string_literal: true module Lite module Validators class Railtie < Rails::Railtie initializer 'lite-validators.configure_locales' do |app| Array(app.config.i18n.available_locales).each do |locale| path = File.expand_path("../../../locales/#{locale}.yml", __FILE__) next unless File.file?(path) I18n.load_path << path end I18n.reload! end end end end
Version data entries
7 entries across 7 versions & 1 rubygems