improve locale detection as much as possible

This commit is contained in:
A-lex-Ra 2023-12-26 19:54:03 +06:00
parent 1dae8c2c31
commit 307df37ba7
5 changed files with 35 additions and 29 deletions

View file

@ -48,6 +48,9 @@ namespace langs {
const std::filesystem::path& resdir,
std::string& fallback);
extern std::string locale_by_envlocale(const std::string& envlocale,
const std::filesystem::path& resdir);
extern void load(const std::filesystem::path& resdir,
const std::string& locale,
const std::vector<ContentPack>& packs,