mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
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"),
|
|
new Language("ja-JP", "日本語"),
|
|
new Language("fr-FR", "Français"),
|
|
new Language("es-ES", "Spanish"),
|
|
new Language("pt-PT", "Portuguese"),
|
|
new Language("pt-BR", "Portuguese (Brazil)"),
|
|
new Language("nl-NL", "Dutch"),
|
|
new Language("cs-CZ", "Česky"),
|
|
new Language("is-IS", "Íslenska"),
|
|
new Language("hr-HR", "Croatian"),
|
|
};
|
|
}
|
|
}
|
|
}
|