Page 1 of 1

How to detect system language?

Posted: Thu Dec 03, 2020 11:06 am
by dmitry.grigoryev
Is there a way for a homebrew app to know which language the console is currently set to? I couldn't find anything in the examples or here on the forum.

Re: How to detect system language?

Posted: Sun Dec 06, 2020 1:12 pm
by fincs
setInitialize/setGetSystemLanguage/setMakeLanguage/setExit should do the trick, I think.

https://github.com/switchbrew/libnx/blo ... #L865-L883

Also see how hbmenu does it: https://github.com/switchbrew/nx-hbmenu ... .c#L17-L21