module BCDice::Translate

i18n用のモジュール

Public Instance Methods

translate(key, **options) click to toggle source

i18n用の翻訳メソッド @param key [String] @return [Object]

# File lib/bcdice/translate.rb, line 9
def translate(key, **options)
  I18n.translate(key, locale: @locale, raise: true, **options)
end