btcpayserver/BTCPayServer/Services/LanguageService.cs

35 lines
931 B
C#
Raw Normal View History

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-23 17:15:28 +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-03-23 17:10:19 +01:00
new Language("pt-BR", "Portuguese (Brazil)"),
new Language("nl-NL", "Dutch"),
2018-03-23 09:27:48 +01:00
};
}
}
}