Sha256: 07cadc34fc9c47df8a87cc808d248e775a62f13cd6d3a66fec10ba97e8b8938e
Contents?: true
Size: 545 Bytes
Versions: 61
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true require 'i18n' module Ibrain def self.i18n_available_locales I18n.available_locales.select do |locale| I18n.t('ibrain.i18n.this_file_language', locale: locale, fallback: false, default: nil) end end # This value is used as a count for the pluralization helpers related to I18n # ex: Ibrain::Order.model_name.human(count: Ibrain::I18N_GENERIC_PLURAL) # Related to Ibrain issue #1164, this is needed to avoid problems with # some pluralization calculators I18N_GENERIC_PLURAL = 2.1 end
Version data entries
61 entries across 61 versions & 1 rubygems