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

后端 未结 6 1243
野性不改
野性不改 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:05

    code snippet

     NSLocale *locale = [NSLocale currentLocale]; 
     [locale objectForKey:NSLocaleLanguageCode]
    

提交回复
热议问题