How to detect system language?

Post Reply
dmitry.grigoryev
Posts: 4
Joined: Thu Nov 26, 2020 3:06 pm

How to detect system language?

Post by dmitry.grigoryev » Thu Dec 03, 2020 11:06 am

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.

User avatar
fincs
( ͡° ͜ʖ ͡°)
Posts: 103
Joined: Mon Jul 12, 2010 9:45 pm
Location: Seville, Spain
Contact:

Re: How to detect system language?

Post by fincs » Sun Dec 06, 2020 1:12 pm

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
Donate to devkitPro - help us stay alive!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests