Browse Source
fix: versionadded
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
pull/10222/head
鏡花水月
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/enums.py
|
|
@ -772,7 +772,7 @@ class Locale(Enum): |
|
|
|
def language_code(self) -> str: |
|
|
|
"""Returns the locale's language code in the format of ``language-COUNTRY``. |
|
|
|
|
|
|
|
.. versionadded:: 2.5 |
|
|
|
.. versionadded:: 2.6 |
|
|
|
""" |
|
|
|
return _UNICODE_LANG_MAP.get(self.value, self.value) |
|
|
|
|
|
|
|