Is it safe to use Locale as a way to store “Countr

2019-07-25 19:15发布

Wikipedia says that locale dictates a set of formatting rules for a specific language/region combination so it doesn't contain timezone or daylight savings information.

http://en.wikipedia.org/wiki/Locale

This leads me to believe that it would be a bad practice to derive the country and language elements independently and make use of them for other purposes like sorting data by a specific country.

Is it safe to say that locale doesn't map to a specific geographic location and therefore shouldn't be used to associate data to a geographic location?

标签: locale
1条回答
smile是对你的礼貌
2楼-- · 2019-07-25 20:03

It is safe to say that locale is not connected to location, yes.

For example, a Japanese businessman in San Diego would be using his laptop set to a Japanese locale.

Likewise, a US businessman visiting China would be using a US locale.

查看更多
登录 后发表回答