# `Tayori.Locales`
[🔗](https://github.com/hattoriai/tayori/blob/v0.1.0/lib/tayori/locales.ex#L1)

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"

# `name`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
