Sha256: f82f042048c25e129410414e37a690719164cc8bc33650da3300af6bf596e6ca
Contents?: true
Size: 353 Bytes
Versions: 26
Compression:
Stored size: 353 Bytes
Contents
class Translate::Storage attr_accessor :locale def initialize(locale) self.locale = locale.to_sym end def write_to_file Translate::File.new(file_path).write(keys) end private def keys {locale => I18n.backend.send(:translations)[locale]} end def file_path File.join(Translate.locales_dir, "#{locale}.yml") end end
Version data entries
26 entries across 26 versions & 2 rubygems