Parent

Liquid::I18n

Constants

DEFAULT_LOCALE

Attributes

path[R]

Public Class Methods

new(path = DEFAULT_LOCALE) click to toggle source
# File lib/liquid/i18n.rb, line 12
def initialize(path = DEFAULT_LOCALE)
  @path = path
end

Public Instance Methods

locale() click to toggle source
# File lib/liquid/i18n.rb, line 21
def locale
  @locale ||= YAML.load_file(@path)
end
t(name, vars = {}) click to toggle source
Alias for: translate
translate(name, vars = {}) click to toggle source
# File lib/liquid/i18n.rb, line 16
def translate(name, vars = {})
  interpolate(deep_fetch_translation(name), vars)
end
Also aliased as: t

[Validate]

Generated with the Darkfish Rdoc Generator 2.