const char* MultiLang(int lang, const char* text, ...) {
const char* buffer = text;
va_list args;
va_start(args, text);
for (size_t i = 0; i < lang; ++i) buffer = va_arg(args, const char*);
va_end(args);
if (buffer[0] == '\0')
return "Empty";
return buffer;
}
static int language = 0;
const char* item_laguage[]{ u8"Русский", "English", "Others", ...};
ImGui::Combo(MultiLang(language, u8"Язык", "Language", "Others"), &language, item_laguage, IM_ARRAYSIZE(item_laguage));