#include "locale.hpp" #include #include #include #undef min #undef max extern "C" const uint8_t L_en_US[]; extern "C" size_t L_en_US_SZ; extern "C" const uint8_t L_en_GB[]; extern "C" size_t L_en_GB_SZ; extern "C" const uint8_t L_ja_JP[]; extern "C" size_t L_ja_JP_SZ; namespace urde { using namespace std::literals; static const specter::Locale Locales[] = { {"en_US"sv, "US English"sv, L_en_US, L_en_US_SZ}, {"en_GB"sv, "British English"sv, L_en_GB, L_en_GB_SZ}, {"ja_JP"sv, "Japanese"sv, L_ja_JP, L_ja_JP_SZ} }; std::vector> ListLocales() { constexpr size_t localeCount = std::extent::value; std::vector> ret; ret.reserve(localeCount); for (size_t i=0 ; i::value; for (size_t i=0 ; i::value; for (size_t i=0 ; i