Sha256: c9b5a9bf092a51d0974ecfd447f2e1e0f4ac987f3a0c31eedca3a00977aae7ef
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
# coding: utf-8 module GyomuRuby::OrdinarySystemDevelopment class Translation def self.source(word, scope) new('ja').source(word, scope) end def initialize(locale = I18n.locale) @locale = locale end def source(word, scope) I18n.t!(scope, locale: @locale).key(word.to_s).try(:to_s) end end end
Version data entries
4 entries across 4 versions & 1 rubygems