Add legacy_export function for export to the old outlook
This commit is contained in:
@ -54,4 +54,10 @@ defmodule Outlook.InternalTree do
|
|||||||
def render_translation(tree, translation) do
|
def render_translation(tree, translation) do
|
||||||
Translation.render_translation(tree, translation)
|
Translation.render_translation(tree, translation)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def legacy_export(tree, translation) do
|
||||||
|
Translation.render_translation(tree, translation)
|
||||||
|
|> garnish(%{tunits: %{class: "ttrans", "data-ttrans-status": fn n -> Map.get(n, :status) end}})
|
||||||
|
|> Html.render_doc
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user