diff --git a/lib/qrstorage/qr_codes/qr_code.ex b/lib/qrstorage/qr_codes/qr_code.ex index a577fad..9b45b16 100644 --- a/lib/qrstorage/qr_codes/qr_code.ex +++ b/lib/qrstorage/qr_codes/qr_code.ex @@ -8,7 +8,7 @@ defmodule Qrstorage.QrCodes.QrCode do require Logger - @languages ~w[de en fr es tr pl ar ru it pt nl uk cs el fi hu sk ro no]a + @languages ~w[de en fr es tr pl ar ru it pt nl uk cs el fi hu sk ro no da]a @block_list ~w[https http www] @voices ~w[male female]a diff --git a/lib/qrstorage/services/translate/translate_api_service_impl.ex b/lib/qrstorage/services/translate/translate_api_service_impl.ex index 63c2825..94413bc 100644 --- a/lib/qrstorage/services/translate/translate_api_service_impl.ex +++ b/lib/qrstorage/services/translate/translate_api_service_impl.ex @@ -23,7 +23,8 @@ defmodule Qrstorage.Services.Translate.TranslateApiServiceImpl do :hu => :HU, :sk => :SK, :ro => :RO, - :no => :NB + :no => :NB, + :da => :DA } @impl TranslateApiService diff --git a/lib/qrstorage/services/tts/text_to_speech_mapping.ex b/lib/qrstorage/services/tts/text_to_speech_mapping.ex index 0daacbf..30c357e 100644 --- a/lib/qrstorage/services/tts/text_to_speech_mapping.ex +++ b/lib/qrstorage/services/tts/text_to_speech_mapping.ex @@ -20,7 +20,8 @@ defmodule Qrstorage.Services.Tts.TextToSpeechMapping do :hu => %{"female" => "Kinga", "male" => "Attila"}, :sk => %{"female" => "Simona", "male" => "Jakub"}, :ro => %{"female" => "Adina", "male" => "Teodor"}, - :no => %{"female" => "Lykke-DNN"} + :no => %{"female" => "Lykke-DNN"}, + :da => %{"female" => "Lene-DNN"} } @language_codes %{ @@ -42,7 +43,8 @@ defmodule Qrstorage.Services.Tts.TextToSpeechMapping do :hu => "hu_hu", :sk => "sk_sk", :ro => "ro_ro", - :no => "no_nb" + :no => "no_nb", + :da => "da_dk" } def voice(language, gender) when is_atom(language) do diff --git a/priv/gettext/de/LC_MESSAGES/languages.po b/priv/gettext/de/LC_MESSAGES/languages.po index 63d10c3..e0d5f0a 100644 --- a/priv/gettext/de/LC_MESSAGES/languages.po +++ b/priv/gettext/de/LC_MESSAGES/languages.po @@ -70,3 +70,6 @@ msgstr "Rumänisch" msgid "no" msgstr "Norwegisch" + +msgid "da" +msgstr "Dänisch" diff --git a/priv/gettext/en/LC_MESSAGES/languages.po b/priv/gettext/en/LC_MESSAGES/languages.po index 0f46964..fb12195 100644 --- a/priv/gettext/en/LC_MESSAGES/languages.po +++ b/priv/gettext/en/LC_MESSAGES/languages.po @@ -70,3 +70,6 @@ msgstr "Romanian" msgid "no" msgstr "Norwegian" + +msgid "da" +msgstr "Danish" diff --git a/priv/gettext/languages.pot b/priv/gettext/languages.pot index 8fc134f..64ce6f8 100644 --- a/priv/gettext/languages.pot +++ b/priv/gettext/languages.pot @@ -57,3 +57,6 @@ msgstr "" msgid "no" msgstr "" + +msgid "da" +msgstr ""