mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
4d8011032e
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"].
25 lines
408 B
Ruby
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
|