languages support (WIP)

This commit is contained in:
MihailRis
2023-12-12 22:02:17 +03:00
parent 0837cf4f03
commit 7bf70bb26e
21 changed files with 456 additions and 38 deletions
+9
View File
@@ -20,6 +20,15 @@ path platform::get_controls_file() {
return path(CONTROLS_FILE);
}
std::string platform::detect_locale() {
// TODO: implement
std::string name = setlocale(LC_ALL, nullptr);
if (name.find("ru_RU") != std::string::npos) {
return "ru_RU";
}
return "en_US";
}
#ifdef WIN32
#include <Windows.h>