Sha256: 19fc1877c95fb3a6d404aa7c1cc5a3363c99dce0373c7055cab92caab3cfcea8
Contents?: true
Size: 507 Bytes
Versions: 12
Compression:
Stored size: 507 Bytes
Contents
module Locomotive::Wagon class SyncTranslationsCommand < PullTranslationsCommand include Locomotive::Wagon::BaseConcern private def write_translations(translations) write_to_file(translations_filepath, JSON.neat_generate(translations, { sort: true, short: false, padding: 1, object_padding: 1, after_colon: 1, after_comma: 1, wrap: 20, aligned: false })) end def translations_filepath File.join('data', env.to_s, 'translations.json') end end end
Version data entries
12 entries across 12 versions & 1 rubygems