[PR #10809] feat(i18n): add th locale support #13566

Closed
opened 2026-02-16 18:18:24 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10809

State: closed
Merged: Yes


Closes #10810

Summary

  • Add Thai (ไทย) locale support for the OpenCode UI
  • Add Thai translations for all UI strings in both app and ui packages
  • Update language selection to include Thai across all existing locale files
  • Auto-detect Thai locale from browser language settings
  • Add Thai README (README.th.md)
  • Ensure Thai language option displays "ไทย" consistently across all languages

Changes

  • Created packages/app/src/i18n/th.ts with complete Thai translations
  • Created packages/ui/src/i18n/th.ts with UI-specific Thai translations
  • Updated packages/app/src/context/language.tsx to:
    • Import Thai locale dictionaries
    • Add "th" to Locale type
    • Add Thai detection in detectLocale() function
    • Add Thai to LOCALES array and labelKey mapping
  • Updated all locale files (en, zh, zht, ko, de, es, fr, da, ja, pl, ru, ar, no, br) to include "language.th": "ไทย"
  • Created README.th.md with Thai documentation
  • Updated main README.md to include Thai language link

Testing

  • Verified locale detection for th-TH and other Thai language codes
  • Confirmed Thai language option displays correctly as "ไทย" regardless of current language
  • Checked all locale files include the Thai language entry

Screenshots

2569-01-27-15 55 45
2569-01-27-16 08 45
2569-01-27-16 10 10
2569-01-27-16 10 20
2569-01-27-16 10 29

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10809 **State:** closed **Merged:** Yes --- Closes #10810 ## Summary - Add Thai (ไทย) locale support for the OpenCode UI - Add Thai translations for all UI strings in both `app` and `ui` packages - Update language selection to include Thai across all existing locale files - Auto-detect Thai locale from browser language settings - Add Thai README (README.th.md) - Ensure Thai language option displays "ไทย" consistently across all languages ## Changes - Created `packages/app/src/i18n/th.ts` with complete Thai translations - Created `packages/ui/src/i18n/th.ts` with UI-specific Thai translations - Updated `packages/app/src/context/language.tsx` to: - Import Thai locale dictionaries - Add "th" to Locale type - Add Thai detection in `detectLocale()` function - Add Thai to LOCALES array and labelKey mapping - Updated all locale files (en, zh, zht, ko, de, es, fr, da, ja, pl, ru, ar, no, br) to include `"language.th": "ไทย"` - Created `README.th.md` with Thai documentation - Updated main `README.md` to include Thai language link ## Testing - Verified locale detection for `th-TH` and other Thai language codes - Confirmed Thai language option displays correctly as "ไทย" regardless of current language - Checked all locale files include the Thai language entry ## Screenshots ![2569-01-27-15 55 45](https://github.com/user-attachments/assets/27f71ac9-c931-4b24-a2d0-83bfb82944fb) ![2569-01-27-16 08 45](https://github.com/user-attachments/assets/09ed9a35-be98-4b8f-86bc-f28d867e463d) ![2569-01-27-16 10 10](https://github.com/user-attachments/assets/28eb3804-e7b3-412e-887f-7a56d08c7afa) ![2569-01-27-16 10 20](https://github.com/user-attachments/assets/de3fea0e-0a86-4e8d-b9dc-f967f6477f73) ![2569-01-27-16 10 29](https://github.com/user-attachments/assets/30dc0bc9-e226-4721-bf6a-81d3a6c6ce9b)
yindo added the pull-request label 2026-02-16 18:18:24 -05:00
yindo closed this issue 2026-02-16 18:18:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13566