Add dropdown for language of Article

And a configuration with the available Deepl source and target languages.
This commit is contained in:
Thelonius Kort
2022-12-30 21:13:59 +01:00
parent a0b280438c
commit d9022fb0c7
2 changed files with 65 additions and 1 deletions

View File

@ -10,6 +10,69 @@ import Config
config :outlook,
ecto_repos: [Outlook.Repo]
config :outlook, :deepl,
source_langs: [
{"English", "EN"},
{"Russian", "RU"},
{"German", "DE"},
{"Spanish", "ES"},
{"Bulgarian", "BG"},
{"Czech", "CS"},
{"Danish", "DA"},
{"Greek", "EL"},
{"Estonian", "ET"},
{"Finnish", "FI"},
{"French", "FR"},
{"Hungarian", "HU"},
{"Indonesian", "ID"},
{"Italian", "IT"},
{"Japanese", "JA"},
{"Lithuanian", "LT"},
{"Latvian", "LV"},
{"Dutch", "NL"},
{"Polish", "PL"},
{"Portuguese", "PT"},
{"Romanian", "RO"},
{"Slovak", "SK"},
{"Slovenian", "SL"},
{"Swedish", "SV"},
{"Turkish", "TR"},
{"Ukrainian", "UK"},
{"Chinese", "ZH"}
],
target_langs: [
{"German", "DE"},
{"English British", "EN-GB"},
{"English American", "EN-US"},
{"Bulgarian", "BG"},
{"Czech", "CS"},
{"Danish", "DA"},
{"Greek", "EL"},
{"Spanish", "ES"},
{"Estonian", "ET"},
{"Finnish", "FI"},
{"French", "FR"},
{"Hungarian", "HU"},
{"Indonesian", "ID"},
{"Italian", "IT"},
{"Japanese", "JA"},
{"Lithuanian", "LT"},
{"Latvian", "LV"},
{"Dutch", "NL"},
{"Polish", "PL"},
{"Portuguese Brazilian", "PT-BR"},
{"Portuguese International", "PT-PT"},
{"Romanian", "RO"},
{"Russian", "RU"},
{"Slovak", "SK"},
{"Slovenian", "SL"},
{"Swedish", "SV"},
{"Turkish", "TR"},
{"Ukrainian", "UK"},
{"Chinese", "ZH"}
]
# Configures the endpoint
config :outlook, OutlookWeb.Endpoint,
url: [host: "localhost"],