Sha256: d7e44d02adf0b18b69b8cfa99299fc5bc21e70a10fb5b2b9997f1a67338135d7
Contents?: true
Size: 362 Bytes
Versions: 14
Compression:
Stored size: 362 Bytes
Contents
module Locomotive module Steam module Liquid module Filters module Translate def translate(input, locale = nil, scope = nil) @context.registers[:services].translator.translate(input, locale, scope) || input end end ::Liquid::Template.register_filter(Translate) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems