Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9020129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:56:22+00:00 2026-06-16T04:56:22+00:00

How does iOS Show the List of Languages in the Translated String or in

  • 0

How does iOS Show the List of Languages in the Translated String or in the Language’s Locale.

  • Is there an LCID associated with it?
  • If so, where can I find it’s Mapping?
  • How does it work?
  • Is there an API or any documentation you can point me towards?

I am attaching a screenshot of what I actually mean:
enter image description here

All I could find is this link

Update:
I want to achieve something like this:

  • Where I can map the Country with its Language, which is actually in its Locale. So is there an LCID Kind of a thing where I can map it and get that Locale string using the LCID using an iOS API?

  • Mockup is Below
    enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:56:23+00:00Added an answer on June 16, 2026 at 4:56 am

    You can get a list of languages translated in the languages locale with the following code:

    Objective-C:

    NSArray *languages = [NSLocale preferredLanguages];
    for (NSString *lang in languages)
    {
        NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:lang];
        NSString *translated = [locale displayNameForKey:NSLocaleIdentifier value:lang];
        NSLog(@"%@, %@", lang, translated);
    }
    

    Swift:

    let languages = NSLocale.preferredLanguages()
    for lang in languages {
        let locale = NSLocale(localeIdentifier: lang)
        let translated = locale.displayNameForKey(NSLocaleIdentifier, value: lang)!
        print("\(lang), \(translated)")
    }
    

    Output:

    en, English
    fr, français
    de, Deutsch
    ja, 日本語
    nl, Nederlands
    ...
    

    I hope that this answers the first part of your question and perhaps helps with the second part.


    Swift 3 update:

    let languages = NSLocale.preferredLanguages
    for lang in languages {
        let locale = NSLocale(localeIdentifier: lang)
        let translated = locale.displayName(forKey: NSLocale.Key.identifier, value: lang)!
        print("\(lang), \(translated)")
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if there is a way to show the keyboard in iOS
Does iPhone display non-iOS bluetooth devices nearby? Or, does it show iOS + devices
Does anybody know where an iOS app can see the default headers that NSUrlRequest
Retina iOS device does not show the @2X image, it shows the 1X image.
Does iOS offer a way for an app to query the device for information
Does iOS SDK provide a way to let iOS app talk to app running
-webkit-device-pixel-ratio query is supported by both iOS and Android but since iOS does not
Does this work in > iOS 5? .element { background: url(images/myImage.jpg) 50% 0 no-repeat
Does the G'MIC (Grey's Magic Image Converter) library work on iOS ? what steps
How does one record audio using iOS? Not the input recording from the microphone,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.