module Config.Data.Language exposing (..)

{-| Types for facilitating multilingual functionality.
-}

import Element


{-| A list of all currently supported languages. DeepL <https://www.deepl.com/translator> seems to
have the best translations, so we're just using those. Arabic will need some custom work though
since it runs right to left. It will be nice to expand this list over time as DeepL adds support
for more languages. Eventually it could be nice to host some local AI to do translation so we can
reduce lines of code by writing all text only once in English then automatically generating
translations.
-}
type Language
    = -- Arabic
      Bulgarian
    | Chinese
    | Czech
    | Danish
    | Dutch
    | English
    | Estonian
    | Finnish
    | French
    | German
    | Greek
    | Hungarian
    | Indonesian
    | Italian
    | Japanese
    | Korean
    | Latvian
    | Lithuanian
    | Norwegian
    | Polish
    | Portuguese
    | Romanian
    | Russian
    | Slovak
    | Slovenian
    | Spanish
    | Swedish
    | Turkish
    | Ukranian



-- type alias MultilingualText =
--     { bulgarian : String
--     , chinese : String
--     , czech : String
--     , danish : String
--     , dutch : String
--     , english : String
--     , estonian : String
--     , finnish : String
--     , french : String
--     , german : String
--     , greek : String
--     , hungarian : String
--     , indonesian : String
--     , italian : String
--     , japanese : String
--     , korean : String
--     , latvian : String
--     , lithuanian : String
--     , norwegian : String
--     , polish : String
--     , portuguese : String
--     , romanian : String
--     , russian : String
--     , slovak : String
--     , slovenian : String
--     , spanish : String
--     , swedish : String
--     , turkish : String
--     , ukranian : String
--     }


{-| We need a type that returns a different element based on which language is selected.
-}
type alias MultilingualTextElement msg =
    { bulgarian : Element.Element msg
    , chinese : Element.Element msg
    , czech : Element.Element msg
    , danish : Element.Element msg
    , dutch : Element.Element msg
    , english : Element.Element msg
    , estonian : Element.Element msg
    , finnish : Element.Element msg
    , french : Element.Element msg
    , german : Element.Element msg
    , greek : Element.Element msg
    , hungarian : Element.Element msg
    , indonesian : Element.Element msg
    , italian : Element.Element msg
    , japanese : Element.Element msg
    , korean : Element.Element msg
    , latvian : Element.Element msg
    , lithuanian : Element.Element msg
    , norwegian : Element.Element msg
    , polish : Element.Element msg
    , portuguese : Element.Element msg
    , romanian : Element.Element msg
    , russian : Element.Element msg
    , slovak : Element.Element msg
    , slovenian : Element.Element msg
    , spanish : Element.Element msg
    , swedish : Element.Element msg
    , turkish : Element.Element msg
    , ukranian : Element.Element msg
    }
