What is the Locale Identifier?

The definition entry in the documentation is here:

Locale.Identifier

and after reading that part, I still do not understand what Locale.Identifier is mean to and if I need to use it, etc.

Also, adding the link below is a good idea for Overseas developers :wink:

I found this information in this Forum, no more in the Documentation (it was removed, apparently)

Locale.Identifier is a value that is unique to each Locale. You can use it if you need to recreate the Locale after saving it to a file, for example.

Thank you Eric, but I still do not understand what it is.

“fr-FR” or “en-US” are also unique to each Locale.

BTW: I focalized my attention on the explanation and do not realized I can fire the example.

Done. Two things to say:

A. The example in the Documentation have a typo:

Var USEnglishLocale As New Locale("en-US")

Var id As String
id = USEnglishlLocale.Identifier

and id above holds:

I think I am tired / my brain is working at a low rate. Or the Locale page have to be written differently.

Sorry.

The locale identifier is a combination of language and local dialect.

So for “en-US” that’s English, United States. “En-GB” would be English, Great Britain.

The example you gave of “fr-FR” is French, FRANCE””

The reason for all this is that languages are different depending on where you are.

1 Like