.cursorrules 792 B

12345678910111213
  1. # Global Project Constraints
  2. 1. **Language Requirements**:
  3. - All code comments **MUST** be written in **English**.
  4. - All server and client logs (`console.log`, `logger.info`, `logger.error`, etc.) **MUST** be written in **English**.
  5. 2. **Internationalization (i18n)**:
  6. - All user-facing messages, API response messages, error messages, and UI text **MUST** guarantee internationalization support.
  7. - Do not use hardcoded string literals for messages. Always use the project's designated i18n service or translation utility with proper keys.
  8. 3. **UI Notifications**:
  9. - All popup messages, error alerts, and system notifications **MUST** uniformly use the toast component (e.g., via `useToast().showError()`, `showSuccess()`).
  10. - Never use native browser `window.alert()`.