mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
35 lines
929 B
C#
35 lines
929 B
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-BR", "Portuguese (Brazil)"),
|
|
new Language("nl-NL", "Dutch"),
|
|
};
|
|
}
|
|
}
|
|
}
|