mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-05-02 17:44:53 +08:00
Introduces two site settings which will automatically translate posts to the language: automatic_translation_target_languages automatic_translation_backfill_maximum_posts_per_hour (hidden)
11 lines
221 B
Ruby
11 lines
221 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseTranslator
|
|
class TranslatableLanguagesSetting < LocaleSiteSetting
|
|
def self.printable_values
|
|
values.map { |v| v[:value] }
|
|
end
|
|
|
|
@lock = Mutex.new
|
|
end
|
|
end
|