Search code examples
internationalizationlocalemultilingual

What's the locale for Bahasa / Indonesia and Tagalog / Philippines? Is it id_ID and tl_PH?


What's the locale for Bahasa / Indonesia and Tagalog / Philippines? Is it id_ID and tl_PH?

I saw that some sites mention in_ID but I believe "in" for locales is India.


Solution

  • The ISO 639-1 tag for Bahasa Indonesia is id. Strictly speaking, you don't need to add a country or region tag. However, if you insist on adding an ISO 3166 code, that would be ID, so the resulting tag would be id-ID.

    I am not aware of a language tag in in ISO 639-1. IN is the country code for India.

    The ISO 639-1 tag for Tagalog is tl. You can add the ISO 3166 code for the Philippines, PH, which would result in tl-PH.

    For an official list of ISO 639 codes, see Codes for the Representation of Names of Languages at the Library of Congress (USA). For country codes, see the Online Browsing Platform for ISO 3166. For the current convention for using these types of codes, see IETF BCP 47: Tags for Identifying Languages.