В настоящее время я устанавливаю локаль приложения с этим кодом: < /p>
using namespace boost::locale;
generator gen;
std::locale::global(gen("de_DE.UTF-8"));
< /code>
Вопрос заключается в том, как получить «de_de» назад?auto current_locale = gen("");
const auto& facet = std::use_facet(current_locale);
auto res = std::format("{}_{}", facet.language(), facet.country());
//res == "en_US";
Подробнее здесь: https://stackoverflow.com/questions/796 ... oostlocale
Мобильная версия