跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] zh-CN 还是 zh_CN?

发表于

zh-CN 派

1.gpt 4o 回答

在语言代码的表示中,通常使用的是“zh-CN”。这个代码遵循的是 IETF BCP 47 标准,其中:

“zh” 表示中文( Chinese )。 “CN” 表示中国( China )。 因此,正确的表示方法是“zh-CN”。

2.阮一峰: https://www.ruanyifeng.com/blog/2008/02/codes_for_language_names.html
3.rfc 标准: https://www.ietf.org/rfc/rfc4646.txt


zh_CN 派

类似网友同样的疑惑,里面答案说用 zh_CN

我在 app.locale 中设置 zh-CN dcat-admin 能正确识别为中文,但是 laravel-lang 识别不了。 设置 zh_CN 语言包可以识别 dcat-admin 又无法识别了。 到底哪个才是符合标准的。


骑墙派

又给出了一个不一样的回答...

一样的。但是一般用 zh_cn 。


不是我太闲,是两个团队起了争执,同步数据导致对不齐,A 让 B 改,B 让 A 改 😒

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.