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

  • SEARCH
  • Home
  • 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 5941249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:05:00+00:00 2026-05-22T16:05:00+00:00

I have country list with two letter code like ‘US’ and and three letter

  • 0

I have country list with two letter code like ‘US’ and and three letter code like ‘USA’.
I just want to assign all 239 countries have the locale code like en-US (not es-US).

I tried the iterate on:

CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);

then:

 var country = countries.Where(c => c.CodeIso3 == region.ThreeLetterISORegionName).FirstOrDefault();

it doesnt work, to much override.

how to assign the 239 countries code to with is major(or default) language?

Thanks

  • 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-05-22T16:05:01+00:00Added an answer on May 22, 2026 at 4:05 pm

    There is no way to do that. That is because there is no such thing as default language for many of the countries you have in mind.
    For example, US does not have an official language. Although English is used by majority of its citizens, it is not default. The other interesting example would be Switzerland. Its citizens use French, German, Italian and Romansh. None of these is default.

    That is the reason why there is no such API.

    Edit:

    As I said before, in many countries there is no such think as default language. I even gave an example of the country which has more than one major language (German and French). To all of you that still can’t understand that this really does not make sense, I will give you a clue on how to guess the most probable language:

    Common Locale Data Repository Territory-Language Information

    If you still cannot understand why restricting to one language per country is probably not the best of ideas, I give up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two objects: ObjectA { string code; string country; } ObjectB { string
I have code in Python/PyMongo like ( code should simulate inner join and all
i have a list of country names. Now i want to sort them alphabeticly,
Assume that I only have a country code (en, de, fr) and I need
I have an entity object Country with country name and country code. It is
I have a table like as follows: SoftwareName Count Country Project 15 Canada Visio
I have this in my model, the content is the full list of country
I have a table that is a list of countries, with two fields, ID
i have a txt file with a list of country's. For my form i
I have two tables (country & ducks) where the country table has every country

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.