Translate CW, poll options and media descriptions (#24175)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
44cd88adc4
commit
69057467cb
25 changed files with 603 additions and 100 deletions
14
app/models/translation.rb
Normal file
14
app/models/translation.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Translation < ActiveModelSerializers::Model
|
||||
attributes :status, :detected_source_language, :language, :provider,
|
||||
:content, :spoiler_text, :poll_options, :media_attachments
|
||||
|
||||
class Option < ActiveModelSerializers::Model
|
||||
attributes :title
|
||||
end
|
||||
|
||||
class MediaAttachment < ActiveModelSerializers::Model
|
||||
attributes :id, :description
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue