Skip to content

feat(i18n): implement Thai localization and extract hardcoded strings#795

Open
ArthitDev wants to merge 4 commits intodifferent-ai:devfrom
ArthitDev:feat/localization-thai
Open

feat(i18n): implement Thai localization and extract hardcoded strings#795
ArthitDev wants to merge 4 commits intodifferent-ai:devfrom
ArthitDev:feat/localization-thai

Conversation

@ArthitDev
Copy link

  • Replaced hardcoded UI text and error messages with translation helpers in app.tsx, pages, and components.

  • Added new translation keys to English (en.ts) and Chinese (zh.ts) locales.

  • Introduced complete Thai translation dictionary in th.ts.

  • Setup i18n structure to support future localization updates.

Summary

Implemented comprehensive Thai (th) localization for the OpenWork UI. Extracted all hardcoded English strings from components and pages into translation
keys. Added complete Thai translation dictionary covering all UI elements, status messages, and user-facing text.

Why

To support Thai-speaking users and establish a scalable i18n foundation for future language additions.

Issue

  • Closes # (add issue number if applicable)

Scope

  • Thai localization (th.ts)
  • English locale updates (en.ts)
  • Component translation integration
  • Test script cross-platform fix (Windows)

Out of scope

  • RTL language support
  • Dynamic language switching without reload
  • Third-party service localization

Testing

Ran

  • pnpm build
  • pnpm --filter @different-ai/openwork-ui typecheck
  • node scripts/e2e.mjs --dir=.

Result

  • pass: All tests passed
  • Build successful with no i18n-related errors

CI status

  • pass: Build and typecheck passing
  • code-related failures: None
  • external/env/auth blockers: None

Manual verification

  1. Verified Thai translations display correctly in UI
  2. Tested e2e suite passes with opencode binary
  3. Confirmed no console errors from missing translation keys

Evidence

N/A (localization feature)

Risk

Low - additive changes only, no breaking changes to existing functionality.

Rollback

  • Revert commit e1da81c
  • Remove th.ts locale file
  • Restore hardcoded strings if needed

New files

  • packages/app/src/app/data/commands/browser-setup.th.md
  • packages/app/src/app/data/commands/give-me-a-soul.th.md
  • packages/app/src/i18n/locales/th.ts

- Replaced hardcoded UI text and error messages with translation helpers in app.tsx, pages, and components.

- Added new translation keys to English (en.ts) and Chinese (zh.ts) locales.

- Introduced complete Thai translation dictionary in th.ts.

- Setup i18n structure to support future localization updates.
- Replaced hardcoded UI text and error messages with translation helpers in app.tsx, pages, and components.

- Added new translation keys to English (en.ts) and Chinese (zh.ts) locales.

- Introduced complete Thai translation dictionary in th.ts.

- Setup i18n structure to support future localization updates.

## Summary
Implemented comprehensive Thai (th) localization for the OpenWork UI. Extracted all hardcoded English strings from components and pages into translation keys. Added complete Thai translation dictionary covering all UI elements, status messages, and user-facing text.

## Why
To support Thai-speaking users and establish a scalable i18n foundation for future language additions.

## Issue
- Closes # (add issue number if applicable)

## Scope
- Thai localization (th.ts)
- English locale updates (en.ts)
- Component translation integration
- Test script cross-platform fix (Windows)

## Out of scope
- RTL language support
- Dynamic language switching without reload
- Third-party service localization

## Testing
### Ran
- pnpm build
- pnpm --filter @different-ai/openwork-ui typecheck
- node scripts/e2e.mjs --dir=.

### Result
- pass: All tests passed
- Build successful with no i18n-related errors

## CI status
- pass: Build and typecheck passing
- code-related failures: None
- external/env/auth blockers: None

## Manual verification
1. Verified Thai translations display correctly in UI
2. Tested e2e suite passes with opencode binary
3. Confirmed no console errors from missing translation keys

## Evidence
N/A (localization feature)

## Risk
Low - additive changes only, no breaking changes to existing functionality.

## Rollback
- Revert commit e1da81c
- Remove th.ts locale file
- Restore hardcoded strings if needed
@vercel
Copy link

vercel bot commented Mar 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Mar 8, 2026 8:53am

@vercel
Copy link

vercel bot commented Mar 8, 2026

@Arthit-EPIT is attempting to deploy a commit to the 0 Finance Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

The following comment was made by an LLM, it may be inaccurate:

Fix session loss during workspace switches and improve sidebar handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants