Padrino::Helpers::TranslationHelpers

Module: Padrino::Helpers::TranslationHelpers

Overview

Helpers related to locale i18n translation within templates.

Instance Method Summary

Instance Method Details

#localize(*args) ⇒ String Also known as: l

Delegates to I18n.localize with no additional functionality.

Parameters:

  • *args (Symbol) — The keys to retrieve.

Returns:

  • (String) — The translation for the specified keys.

#translate(*args) ⇒ String Also known as: t

Delegates to I18n.translate with no additional functionality.

Parameters:

  • *args (Symbol) — The keys to retrieve.

Returns:

  • (String) — The translation for the specified keys.
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部