gleepl/langs

The language constants are for convenience so that you do not have to remember the iso codes. They are not neccessary and you can use the from_iso function to set the language for any missing languages. A list of suported languages can be found here: deepl supported languages

Types

The language type is used to set the source and target language iso codes for deepl.

pub type Language {
  Language(String)
}

Constructors

  • Language(String)

Constants

pub const english: Language
pub const french: Language
pub const german: Language
pub const slovenian: Language

Functions

pub fn from_iso(iso: String) -> Language

Returns a language type for the iso language code without having to wait for gleepl updates.

supported languages

Example

from_iso("es")
// -> Language("es")
Search Document