Sha256: ee57caf408d08ef48affe47ae5104943ba39b2956baf3b3f81d2041d89b013b4
Contents?: true
Size: 344 Bytes
Versions: 10
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true module BeyondCanvas module LocaleSwitchHelper def translate_locale(locale) if I18n.exists?("locales.#{locale}") I18n.t("locales.#{locale}") else logger.debug "[BeyondCanvas] Missing translation: #{I18n.locale}.locales.#{locale}".yellow locale end end end end
Version data entries
10 entries across 10 versions & 1 rubygems