Add user content translations with configurable backends (#19218)

This commit is contained in:
Eugen Rochko
2022-09-23 23:00:12 +02:00
committed by GitHub
parent d2f7e30a28
commit 0d6b878808
16 changed files with 306 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
# frozen_string_literal: true
class REST::TranslationSerializer < ActiveModel::Serializer
attributes :content, :detected_source_language
def content
object.text
end
end