2018-03-23 09:27:48 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Services
|
|
|
|
|
{
|
|
|
|
|
public class Language
|
|
|
|
|
{
|
|
|
|
|
public Language(string code, string displayName)
|
|
|
|
|
{
|
|
|
|
|
DisplayName = displayName;
|
|
|
|
|
Code = code;
|
|
|
|
|
}
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
public string DisplayName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class LanguageService
|
|
|
|
|
{
|
|
|
|
|
public Language[] GetLanguages()
|
|
|
|
|
{
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
new Language("en-US", "English"),
|
|
|
|
|
new Language("de-DE", "Deutsch"),
|
2018-03-24 15:02:41 +01:00
|
|
|
|
new Language("ja-JP", "日本語"),
|
2018-03-23 09:27:48 +01:00
|
|
|
|
new Language("fr-FR", "Français"),
|
2018-03-24 06:35:49 +01:00
|
|
|
|
new Language("es-ES", "Spanish"),
|
2018-04-16 02:29:42 +02:00
|
|
|
|
new Language("pt-PT", "Portuguese"),
|
2018-03-23 17:10:19 +01:00
|
|
|
|
new Language("pt-BR", "Portuguese (Brazil)"),
|
|
|
|
|
new Language("nl-NL", "Dutch"),
|
2018-10-12 03:11:03 +02:00
|
|
|
|
new Language("np-NP", "नेपाली"),
|
2018-03-25 17:17:38 +02:00
|
|
|
|
new Language("cs-CZ", "Česky"),
|
2018-03-29 10:19:07 +02:00
|
|
|
|
new Language("is-IS", "Íslenska"),
|
2018-04-28 18:12:11 +02:00
|
|
|
|
new Language("hr-HR", "Croatian"),
|
2018-10-14 14:34:15 +02:00
|
|
|
|
new Language("it-IT", "Italiano"),
|
2018-10-24 08:17:09 +02:00
|
|
|
|
new Language("kk-KZ", "Қазақша"),
|
2018-10-12 03:10:20 +02:00
|
|
|
|
new Language("ru-RU", "русский"),
|
2018-10-24 08:18:31 +02:00
|
|
|
|
new Language("uk-UA", "Українська"),
|
2018-10-24 08:16:30 +02:00
|
|
|
|
new Language("vi-VN", "Tiếng Việt"),
|
2018-10-11 07:25:16 +02:00
|
|
|
|
new Language("zh-SP", "中文(简体)"),
|
2018-03-23 09:27:48 +01:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|