Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ChainSwordCS/1c31b8216dab8e5cd7e14c6484de3567 to your computer and use it in GitHub Desktop.

Select an option

Save ChainSwordCS/1c31b8216dab8e5cd7e14c6484de3567 to your computer and use it in GitHub Desktop.
see:
https://switchbrew.github.io/libnx/structNacpStruct.html
https://switchbrew.github.io/libnx/structNacpLanguageEntry.html
https://switchbrew.github.io/libnx/nacp_8h.html#details
pseudocode:
Result r = nsGetApplicationControlData(NsApplicationControlSource_Storage, appId, ctrlData, sizeof(NsApplicationControlData), &actualSize);
ctrlData->nacp.lang[0].name
I just realized this list already existed, oops.
https://switchbrew.org/wiki/NACP#ApplicationTitle
NacpLanguageEntry - ApplicationTitle language quick reference
lang[0] = American English (en) (USA)
lang[1] = British English (en-gb)
lang[2] = Japanese (ja) / 日本語
lang[3] = French (fr) / Français
lang[4] = German (de) / Deutsch
lang[5] = Latin American Spanish (es) / Español
lang[6] = Spanish (es) / Español
lang[7] = Italian (it) / Italiano
lang[8] = Dutch (nl) / Nederlands
lang[9] = Canadian French (fr-ca) / Français
lang[10] = Portuguese (pt) / Português
lang[11] = Russian (ru) / Русский
lang[12] = Korean (kr) / 한국어
lang[13] = Chinese (Traditional) (zh) / 繁體中文
lang[14] = Chinese (Simplified) (zh-hans) / 简体中文
lang[15] = Brazilian Portuguese (pt-br) / Português (10.1.0+)
lang[16] = Polish ? (pl) / Polski (21.0.0+)
lang[17] = Thai ? (th) / ไทย (21.0.0+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment