Source code for hikari.locales

# -*- coding: utf-8 -*-
# cython: language_level=3
# Copyright (c) 2020 Nekokatt
# Copyright (c) 2021-present davfsa
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""Enum of Discord accepted locales."""
from __future__ import annotations

__all__ = ["Locale"]

import typing

from hikari.internal import enums


@typing.final
[docs]class Locale(str, enums.Enum): """Possible user/guild locales."""
[docs] ID = "id"
"""Indonesian."""
[docs] DA = "da"
"""Danish."""
[docs] DE = "de"
"""German."""
[docs] EN_GB = "en-GB"
"""English, UK."""
[docs] EN_US = "en-US"
"""English, US."""
[docs] ES_ES = "es-ES"
"""Spanish."""
[docs] FR = "fr"
"""French."""
[docs] HR = "hr"
"""Croatian."""
[docs] IT = "it"
"""Italian."""
[docs] LT = "lt"
"""Lithuanian."""
[docs] HU = "hu"
"""Hungarian."""
[docs] NL = "nl"
"""Dutch."""
[docs] NO = "no"
"""Norwegian."""
[docs] PL = "pl"
"""Polish."""
[docs] PT_BR = "pt-BR"
"""Portuguese, Bralizian."""
[docs] RO = "ro"
"""Romian."""
[docs] FI = "fi"
"""Finnish."""
[docs] SV_SE = "sv-SE"
"""Swedish."""
[docs] VI = "vi"
"""Vietnamese."""
[docs] TR = "tr"
"""Turkish."""
[docs] CS = "cs"
"""Czech."""
[docs] EL = "el"
"""Greek."""
[docs] BG = "bg"
"""Bulgarian."""
[docs] RU = "ru"
"""Russian."""
[docs] UK = "uk"
"""Ukrainian."""
[docs] HI = "hi"
"""Hindi."""
[docs] TH = "th"
"""Thai."""
[docs] ZH_CN = "zh-CN"
"""Chinese, China."""
[docs] JA = "ja"
"""Japanese."""
[docs] ZH_TW = "zh-TW"
"""Chinese, Taiwan."""
[docs] KO = "ko"
"""Korean."""