2018-05-03 00:56:06 +02:00
|
|
|
|
using System.Collections.Generic;
|
2018-06-13 22:18:57 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2018-05-03 00:56:06 +02:00
|
|
|
|
using Discord.Commands;
|
|
|
|
|
|
|
|
|
|
namespace Geekbot.net.Lib.Localization
|
|
|
|
|
{
|
|
|
|
|
public interface ITranslationHandler
|
|
|
|
|
{
|
2018-06-13 22:18:57 +02:00
|
|
|
|
Task<string> GetString(ulong guildId, string command, string stringName);
|
2019-05-12 15:49:00 +02:00
|
|
|
|
string GetString(string language, string command, string stringName);
|
2018-06-13 22:18:57 +02:00
|
|
|
|
Task<Dictionary<string, string>> GetDict(ICommandContext context, string command);
|
2019-05-12 00:17:34 +02:00
|
|
|
|
Task<TranslationGuildContext> GetGuildContext(ICommandContext context);
|
2018-06-13 22:18:57 +02:00
|
|
|
|
Task<bool> SetLanguage(ulong guildId, string language);
|
2018-05-26 02:55:18 +02:00
|
|
|
|
List<string> SupportedLanguages { get; }
|
2018-05-03 00:56:06 +02:00
|
|
|
|
}
|
|
|
|
|
}
|