[DOC] 新增 GEMINI.md 與 開發.md 規範手冊,統一時區與開發慣例
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 49s
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 49s
This commit is contained in:
20
GEMINI.md
Normal file
20
GEMINI.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Star Cloud 開發規範 (GEMINI.md)
|
||||
|
||||
## 1. 時間與時區規範
|
||||
|
||||
- **預設時區**:必須設定為 `Asia/Taipei` (UTC+8)。
|
||||
- **實作方式**:
|
||||
- `.env`:必須包含 `APP_TIMEZONE=Asia/Taipei`。
|
||||
- `config/app.php`:必須使用 `env('APP_TIMEZONE', 'Asia/Taipei')` 並將其作為預設值。
|
||||
- **目的**:確保所有資料庫紀錄、日誌及使用者介面顯示的時間與台灣當地時間一致。
|
||||
|
||||
## 2. 語系規範
|
||||
|
||||
- **預設語系**:繁體中文 (`zh_TW`)。
|
||||
- **實作方式**:
|
||||
- `.env`:`APP_LOCALE=zh_TW`。
|
||||
- `config/app.php`:`env('APP_LOCALE', 'zh_TW')`。
|
||||
|
||||
## 3. 專案建立規範
|
||||
|
||||
- 未來任何新專案的初始化,都必須**優先完成**上述時區與語系的設定,嚴禁使用預設的 UTC 或英文設定。
|
||||
Reference in New Issue
Block a user