How to get language locale of the user in Objective-C?

后端 未结 6 1244
野性不改
野性不改 2021-02-06 05:41

I am developing an application for Mac OS X. I want to change indication contents by the language locale (English, Spanish, etc.) of the application user, how do I get informati

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 06:19

    You can use the NSLocale API to get that information, but it isn't necessary to do what you want to do. OS X has support for localization built into the OS — all you need to do is supply the appropriate language files and the user can select which language he wants.

提交回复
热议问题