nx-hbmenu/common/text.c
2018-02-11 19:07:18 -05:00

16 lines
342 B
C

#include "text.h"
//TODO: Update this once libnx supports settings get-language.
static int s_textLang = /*CFG_LANGUAGE_EN*/1;
int textGetLang(void) {
return s_textLang;
}
const char* textGetString(StrId id) {
const char* str = g_strings[id][s_textLang];
if (!str) str = g_strings[id][/*CFG_LANGUAGE_EN*/1];
return str;
}