module InvoiceTranslations

Constants

LOADER
VERSION

Public Instance Methods

available_locales() click to toggle source
# File lib/invoice_translations.rb, line 8
def available_locales
  LOADER.available.map(&:code)
end
to_h() click to toggle source
# File lib/invoice_translations.rb, line 12
def to_h
  available_locales
    .map { |locale| [locale, I18n.new(locale).to_h] }
    .to_h
end