fix(locale): improve Thai translation accuracy and consistency#6509
Conversation
Changed 'การเปรียบเทียบราคาสินค้า' (product price comparison) to 'การเปรียบเทียบราคา' (price comparison).
Reason: The previous translation was too specific to physical goods ('สินค้า' = products/merchandise), while the PricingTable component is typically used for SaaS pricing tiers/plans. The new translation is more generic and works across all contexts — whether comparing software plans, services, or physical products. This better aligns with the English source 'Pricing plan comparison' which doesn't specify goods.
…h source Moved the chatReasoning block from between chatPromptSubmit and colorMode to between prose and sidebar, matching the key order in en.ts. Reason: Consistent key ordering across locale files makes it easier for contributors to compare translations against the English source. When keys are in the same order, maintainers can scroll both files side-by-side and quickly spot missing or mismatched entries without hunting for keys.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates the Thai locale file with two changes: it reorganizes the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/runtime/locale/th.tsParsing error: Unexpected token { Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
🔗 Linked issue
No linked issue — this is a minor translation improvement PR.
❓ Type of change
📚 Description
This PR improves the Thai locale file with two focused changes:
1. Fixed pricingTable caption translation
Changed
การเปรียบเทียบราคาสินค้า(product price comparison) toการเปรียบเทียบราคา(price comparison).Why: The previous translation was too specific to physical goods (
สินค้า= products/merchandise), while the PricingTable component is typically used for SaaS pricing tiers and plans. The new translation is more generic and works across all contexts — whether comparing software plans, services, or physical products. This better aligns with the English source text "Pricing plan comparison" which doesn't specify goods.2. Reordered chatReasoning keys to match English source
Moved the
chatReasoningblock from betweenchatPromptSubmitandcolorModeto betweenproseandsidebar, matching the key order inen.ts.Why: Consistent key ordering across locale files makes it easier for contributors to compare translations against the English source. When keys are in the same order, maintainers can scroll both files side-by-side and quickly spot missing or mismatched entries without hunting for keys across the file.
📝 Checklist