690414:1113 Update README.md /.agents/skills, /.windsurf/workflows

This commit is contained in:
2026-04-14 11:13:42 +07:00
parent 02400fd88c
commit 6d45bdaeb5
194 changed files with 12708 additions and 8762 deletions
+13
View File
@@ -0,0 +1,13 @@
// hooks/use-translations.ts
// ADR-021 Phase 7: React hook สำหรับ i18n — คืน t() function สำหรับใช้ใน Client Components
'use client';
import { createT } from '@/lib/i18n';
// ค่า default locale ของโปรเจกต์คือ 'th'
// เมื่อต้องการรองรับ multi-locale ให้เชื่อมกับ Context หรือ cookie ในอนาคต
const defaultT = createT('th');
export function useTranslations() {
return defaultT;
}