mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
- Fixed services loading multiple times - cleaned up service adding with scrutor - INService moved from some interfaces to concrete implementation
21 lines
690 B
C#
21 lines
690 B
C#
using System.Collections.Concurrent;
|
|
using System.Globalization;
|
|
using Discord;
|
|
|
|
namespace NadekoBot.Services
|
|
{
|
|
public interface ILocalization
|
|
{
|
|
CultureInfo DefaultCultureInfo { get; }
|
|
ConcurrentDictionary<ulong, CultureInfo> GuildCultureInfos { get; }
|
|
|
|
CultureInfo GetCultureInfo(IGuild guild);
|
|
CultureInfo GetCultureInfo(ulong? guildId);
|
|
void RemoveGuildCulture(IGuild guild);
|
|
void RemoveGuildCulture(ulong guildId);
|
|
void ResetDefaultCulture();
|
|
void SetDefaultCulture(CultureInfo ci);
|
|
void SetGuildCulture(IGuild guild, CultureInfo ci);
|
|
void SetGuildCulture(ulong guildId, CultureInfo ci);
|
|
}
|
|
} |