2021-04-20 16:06:26 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.ComponentModel ;
2024-05-02 02:18:56 +08:00
using System.Diagnostics.CodeAnalysis ;
2022-07-16 09:42:33 +08:00
using JetBrains.Annotations ;
2021-04-20 16:06:26 +08:00
namespace osu.Game.Localisation
{
2024-05-02 02:18:56 +08:00
[SuppressMessage("ReSharper", "InconsistentNaming")]
2022-07-16 09:42:33 +08:00
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
2021-04-20 16:06:26 +08:00
public enum Language
{
2021-06-14 15:51:17 +08:00
[Description(@"English")]
2021-04-20 16:06:26 +08:00
en ,
2021-06-16 16:25:30 +08:00
// TODO: Requires Arabic glyphs to be added to resources (and possibly also RTL support).
// [Description(@"اَلْعَرَبِيَّةُ")]
// ar,
2021-06-16 22:14:48 +08:00
[Description(@"Беларуская мова")]
be ,
2021-06-16 16:25:30 +08:00
[Description(@"Български")]
bg ,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
[Description(@"Català")]
ca ,
2021-06-16 16:25:30 +08:00
[Description(@"Česky")]
cs ,
[Description(@"Dansk")]
da ,
[Description(@"Deutsch")]
de ,
2021-06-16 22:14:48 +08:00
[Description(@"Ελληνικά")]
el ,
2021-06-16 16:25:30 +08:00
[Description(@"español")]
es ,
2023-06-04 03:48:03 +08:00
// TODO: Requires Arabic glyphs to be added to resources (and possibly also RTL support).
// [Description(@"فارسی")]
// fa_ir,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
2021-06-16 16:25:30 +08:00
[Description(@"Suomi")]
fi ,
2023-06-04 05:55:05 +08:00
// TODO: Doesn't work as appropriate satellite assemblies aren't copied from resources (see: https://github.com/ppy/osu/discussions/18851#discussioncomment-3042170)
// [Description(@"Filipino")]
// fil,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
2021-06-16 16:25:30 +08:00
[Description(@"français")]
fr ,
2023-06-04 03:48:03 +08:00
// TODO: Requires Hebrew glyphs to be added to resources (and possibly also RTL support).
// [Description(@"עברית")]
// he,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
[Description(@"Hrvatski")]
hr_hr ,
2021-06-16 16:25:30 +08:00
[Description(@"Magyar")]
hu ,
[Description(@"Bahasa Indonesia")]
id ,
[Description(@"Italiano")]
it ,
2021-06-14 15:51:17 +08:00
[Description(@"日本語")]
2021-06-16 16:25:30 +08:00
ja ,
[Description(@"한국어")]
ko ,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
[Description(@"Lietuvių")]
lt ,
[Description(@"Latviešu")]
lv_lv ,
[Description(@"Melayu")]
ms_my ,
2021-06-16 16:25:30 +08:00
[Description(@"Nederlands")]
nl ,
[Description(@"Norsk")]
no ,
[Description(@"polski")]
pl ,
[Description(@"Português")]
pt ,
[Description(@"Português (Brasil)")]
pt_br ,
[Description(@"Română")]
ro ,
[Description(@"Русский")]
ru ,
2023-06-04 03:48:03 +08:00
// TODO: Requires Sinhala glyphs to be added to resources.
// Additionally, no translations available yet.
// [Description(@"සිංහල")]
// si_lk,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
2021-06-16 16:25:30 +08:00
[Description(@"Slovenčina")]
sk ,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
[Description(@"Slovenščina")]
sl ,
[Description(@"Српски")]
sr ,
2021-06-16 16:25:30 +08:00
[Description(@"Svenska")]
2021-06-16 18:01:58 +08:00
sv ,
2021-06-16 16:25:30 +08:00
2023-06-04 05:42:08 +08:00
// Tajik has no associated localisations yet, and is not supported on Windows versions <10.
// TODO: update language mapping in osu-resources to redirect tg-TJ to tg-Cyrl-TJ (which is supported on earlier Windows versions)
// [Description(@"Тоҷикӣ")]
// tg_tj,
Updated languages in Language.cs to match what is in osu-web/resources/lang/. Added Catalan, Persian, Filipino, Hebrew, Croatian, Lithuanian, Latvian, Malay, Slovenian, Serbian, Tajik, and Sinhala.
2023-06-02 12:25:49 +08:00
2021-06-16 16:25:30 +08:00
[Description(@"ไทย")]
th ,
2021-06-19 14:07:37 +08:00
// Tagalog has no associated localisations yet, and is not supported on Xamarin platforms or Windows versions <10.
// Can be revisited if localisations ever arrive.
//[Description(@"Tagalog")]
//tl,
2021-06-16 16:25:30 +08:00
[Description(@"Türkçe")]
tr ,
2021-06-16 22:14:48 +08:00
[Description(@"Українська мова")]
uk ,
2021-06-16 16:25:30 +08:00
[Description(@"Tiếng Việt")]
2021-06-16 18:01:58 +08:00
vi ,
2021-06-16 16:25:30 +08:00
[Description(@"简体中文")]
zh ,
2021-06-25 00:31:13 +08:00
// Traditional Chinese (Hong Kong) is listed in web sources but has no associated localisations,
// and was wrongly falling back to Simplified Chinese.
// Can be revisited if localisations ever arrive.
// [Description(@"繁體中文(香港)")]
// zh_hk,
2021-06-16 16:25:30 +08:00
[Description(@"繁體中文(台灣)")]
2022-04-19 13:30:45 +08:00
zh_hant ,
#if DEBUG
[Description(@"Debug (show raw keys)")]
2022-04-19 15:49:41 +08:00
debug
2022-04-19 13:30:45 +08:00
#endif
2021-04-20 16:06:26 +08:00
}
}