| 68 | } |
| 69 | |
| 70 | uint16_t GetLocaleLanguage() |
| 71 | { |
| 72 | auto locale = reinterpret_cast<char*>(EM_ASM_PTR({ |
| 73 | const locale = Intl.DateTimeFormat().resolvedOptions().locale; |
| 74 | return stringToNewUTF8(locale); |
| 75 | })); |
| 76 | auto languageId = LanguageGetIDFromLocale(locale); |
| 77 | free(locale); |
| 78 | return languageId; |
| 79 | } |
| 80 | |
| 81 | CurrencyType GetLocaleCurrency() |
| 82 | { |
nothing calls this directly
no test coverage detected