diff options
Diffstat (limited to 'bot/src')
| -rw-r--r-- | bot/src/actions/delete.cpp | 2 | ||||
| -rw-r--r-- | bot/src/utils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/src/actions/delete.cpp b/bot/src/actions/delete.cpp index dbd9efe..da74bbf 100644 --- a/bot/src/actions/delete.cpp +++ b/bot/src/actions/delete.cpp @@ -1,7 +1,7 @@ #include "../../include/utils.hpp" -const std::map<Lang, std::map<std::string, std::string>> error_messages_map = { +const std::unordered_map<Lang, std::unordered_map<std::string, std::string>> error_messages_map = { {Lang::en, { {"error_no_messages", "No message to delete."}, {"error", "You need to wait a bit before deleting messages."}, diff --git a/bot/src/utils.cpp b/bot/src/utils.cpp index 3ad1bad..a2ce928 100644 --- a/bot/src/utils.cpp +++ b/bot/src/utils.cpp @@ -218,7 +218,7 @@ namespace app return Lang::en; // Default to English if no match is found } - std::string translate(const std::string &str, const std::string &locale, const std::map<Lang, std::map<std::string, std::string>> &array_translations, const std::unordered_map<std::string, std::string> &args) + std::string translate(const std::string &str, const std::string &locale, const std::unordered_map<Lang, std::unordered_map<std::string, std::string>> &array_translations, const std::unordered_map<std::string, std::string> &args) { Lang lang = get_available_locale(locale); auto it = array_translations.find(lang); |
