summaryrefslogtreecommitdiff
path: root/bot/include/utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/include/utils.hpp')
-rw-r--r--bot/include/utils.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/include/utils.hpp b/bot/include/utils.hpp
index 801006a..b0482dd 100644
--- a/bot/include/utils.hpp
+++ b/bot/include/utils.hpp
@@ -12,7 +12,10 @@
#include <algorithm>
using namespace dpp;
-enum class Lang { en, fr };
+enum class Lang {
+ en,
+ fr,
+};
namespace app
{
@@ -90,7 +93,7 @@ namespace app
* @param locale The locale string to check
* @return std::string The available locale or "en" if not found
*/
- std::string get_available_locale(std::string locale);
+ Lang get_available_locale(std::string locale);
/**
* @brienf translate a string from a locale, optionnal parameters and a default value