0.1.3
This commit is contained in:
parent
5f8f401e90
commit
050edd1abe
@ -78,6 +78,8 @@ defmodule Localizator.Translator do
|
||||
|> translate_html_element(to, from, translator)
|
||||
|> Meeseeks.parse(:tuple_tree)
|
||||
|> Meeseeks.html()
|
||||
|> String.trim_leading("<html><head></head><body>")
|
||||
|> String.trim_trailing("</body></html>")
|
||||
end
|
||||
|
||||
# Plain Text Content
|
||||
|
@ -40,7 +40,7 @@ defmodule Localizator.Translitor do
|
||||
def convert(source, locale) do
|
||||
translitor =
|
||||
translitors()
|
||||
|> Map.get(locale)
|
||||
|> Map.get("#{locale}")
|
||||
|
||||
translitor.convert(source)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user