Tayori.Locales (Tayori v0.1.0)

Copy Markdown View Source

The names of the languages of the entries, in their own language, for the admin's tabs and the readers' language links.

Examples

iex> Tayori.Locales.name("pt-PT")
"Português (Portugal)"

iex> Tayori.Locales.name("ja")
"日本語"

iex> Tayori.Locales.name("es-ES")
"Español"

iex> Tayori.Locales.name("tlh")
"tlh"

Summary

Functions

The name of a language in its own language: of the locale, else of its language (es-ES is Español), else its tag when Tayori does not know it.

Functions

name(locale)

@spec name(String.t()) :: String.t()

The name of a language in its own language: of the locale, else of its language (es-ES is Español), else its tag when Tayori does not know it.