diff --git a/TelegramBotBase/Builder/BotBaseBuilder.cs b/TelegramBotBase/Builder/BotBaseBuilder.cs index c3d9394..ac48601 100644 --- a/TelegramBotBase/Builder/BotBaseBuilder.cs +++ b/TelegramBotBase/Builder/BotBaseBuilder.cs @@ -391,29 +391,41 @@ public class BotBaseBuilder : IAPIKeySelectionStage, IMessageLoopSelectionStage, #region "Step 7 (Language)" + /// public IBuildingStage DefaultLanguage() { return this; } + /// public IBuildingStage UseEnglish() { Default.Language = new English(); return this; } + /// public IBuildingStage UseGerman() { Default.Language = new German(); return this; } + /// public IBuildingStage UsePersian() { Default.Language = new Persian(); return this; } + /// + public IBuildingStage UseRussian() + { + Default.Language = new Persian(); + return this; + } + + /// public IBuildingStage Custom(Localization language) { Default.Language = language; diff --git a/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs b/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs index 8021ee2..b06addd 100644 --- a/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs +++ b/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs @@ -2,35 +2,44 @@ namespace TelegramBotBase.Builder.Interfaces; +/// +/// Represents the language selection stage in the localization process. +/// public interface ILanguageSelectionStage { /// /// Selects the default language for control usage. (English) /// - /// + /// The next stage in the building process. IBuildingStage DefaultLanguage(); /// /// Selects english as the default language for control labels. /// - /// + /// The next stage in the building process. IBuildingStage UseEnglish(); /// /// Selects german as the default language for control labels. /// - /// + /// The next stage in the building process. IBuildingStage UseGerman(); /// /// Selects persian as the default language for control labels. /// - /// + /// The next stage in the building process. IBuildingStage UsePersian(); + /// + /// Selects russian as the default language for control labels. + /// + /// The next stage in the building process. + IBuildingStage UseRussian(); + /// /// Selects a custom language as the default language for control labels. /// - /// + /// The next stage in the building process. IBuildingStage Custom(Localization language); } \ No newline at end of file