Add public_content to translations table and rename lang to language
This commit is contained in:
@ -49,7 +49,7 @@ defmodule Outlook.Translators do
|
||||
end
|
||||
|
||||
def translate(translation, current_user) do
|
||||
%{lang: target_lang,
|
||||
%{language: target_lang,
|
||||
article: %{content: article_tree, language: source_lang}
|
||||
} = translation
|
||||
article_as_html = prepare_article(article_tree)
|
||||
|
||||
Reference in New Issue
Block a user