Skip to content

Commit

Permalink
feature: add slovak
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittstruck committed Sep 11, 2024
1 parent 93cf34c commit c97a4f1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/qrstorage/qr_codes/qr_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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]a
@languages ~w[de en fr es tr pl ar ru it pt nl uk cs el fi hu sk]a
@block_list ~w[https http www]

@voices ~w[male female]a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ defmodule Qrstorage.Services.Translate.TranslateApiServiceImpl do
:cs => :CS,
:el => :EL,
:fi => :FI,
:hu => :HU
:hu => :HU,
:sk => :SK
}

@impl TranslateApiService
Expand Down
6 changes: 4 additions & 2 deletions lib/qrstorage/services/tts/text_to_speech_mapping.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defmodule Qrstorage.Services.Tts.TextToSpeechMapping do
:cs => %{"female" => "Katka"},
:el => %{"female" => "Irini"},
:fi => %{"female" => "Elina-DNN", "male" => "Benoit-premium"},
:hu => %{"female" => "Kinga", "male" => "Attila"}
:hu => %{"female" => "Kinga", "male" => "Attila"},
:sk => %{"female" => "Simona", "male" => "Jakub"}
}

@language_codes %{
Expand All @@ -36,7 +37,8 @@ defmodule Qrstorage.Services.Tts.TextToSpeechMapping do
:cs => "cs_cz",
:el => "el_gr",
:fi => "fi_fi",
:hu => "hu_hu"
:hu => "hu_hu",
:sk => "sk_sk"
}

def voice(language, gender) when is_atom(language) do
Expand Down
3 changes: 3 additions & 0 deletions priv/gettext/de/LC_MESSAGES/languages.po
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ msgstr "Finnisch"

msgid "hu"
msgstr "Ungarisch"

msgid "sk"
msgstr "Slowakisch"
3 changes: 3 additions & 0 deletions priv/gettext/en/LC_MESSAGES/languages.po
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ msgstr "Finnish"

msgid "hu"
msgstr "Hungarian"

msgid "sk"
msgstr "Slovak"
3 changes: 3 additions & 0 deletions priv/gettext/languages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ msgstr ""

msgid "hu"
msgstr ""

msgid "sk"
msgstr ""

0 comments on commit c97a4f1

Please sign in to comment.