Rewrite huge parts of the localization class to support plurals and localized date time formating, also created a TranslationGuildContext class for use in commands
This commit is contained in:
parent
4143180b42
commit
8effc42f92
5 changed files with 211 additions and 79 deletions
|
@ -7,8 +7,10 @@ namespace Geekbot.net.Lib.Localization
|
|||
public interface ITranslationHandler
|
||||
{
|
||||
Task<string> GetString(ulong guildId, string command, string stringName);
|
||||
List<string> GetStrings(string language, string command, string stringName);
|
||||
Task<Dictionary<string, string>> GetDict(ICommandContext context);
|
||||
Task<Dictionary<string, string>> GetDict(ICommandContext context, string command);
|
||||
Task<TranslationGuildContext> GetGuildContext(ICommandContext context);
|
||||
Task<bool> SetLanguage(ulong guildId, string language);
|
||||
List<string> SupportedLanguages { get; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue