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"),
|
|
|
|
|
new Language("ja-JP", "日本語"),
|
|
|
|
|
new Language("fr-FR", "Français"),
|
|
|
|
|
new Language("es-ES", "Spanish"),
|
2018-03-23 17:04:05 +01:00
|
|
|
|
new Language("pt-BR", "Portuguese (Brazil)")
|
2018-03-23 09:27:48 +01:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|