Module: BCDice::Translate

Overview

i18n用のモジュール

Instance Method Summary collapse

Instance Method Details

#translate(key, **options) ⇒ Object

i18n用の翻訳メソッド

Parameters:

  • key (String)

Returns:

  • (Object)


9
10
11
# File 'lib/bcdice/translate.rb', line 9

def translate(key, **options)
  I18n.translate(key, locale: @locale, raise: true, **options)
end