discourse/lib/import_export/translation_overrides_exporter.rb
Penar Musaraj 4d8011032e
DEV: Add a rake task to export/import translation overrides (#18487)
Use `bin/rake export:translation_overrides` to export to a file. Then,
copy that file to a new site and run `bin/rake import:file["filename"].
2022-10-05 15:22:16 -04:00

25 lines
408 B
Ruby

# frozen_string_literal: true
module ImportExport
class TranslationOverridesExporter < BaseExporter
def initialize()
@export_data = {
translation_overrides: []
}
end
def perform
puts "Exporting all translation overrides...", ""
export_translation_overrides
self
end
def default_filename_prefix
"translation-overrides"
end
end
end