Fill in th.js missing keys and fix a mismatched key

- check-locales.mjs was failing: th.js had 628/741 keys. One key
  ('...rest after both') didn't match the source string used in code
  ('...rest when done'), and 112 keys were missing outright — most of
  them the whole tail block (equipment profiles, mobile-app pairing,
  session notes) that never made it into th.js.
- Renamed the mismatched key and added Thai translations for the 112
  missing keys, preserving {n} placeholders and section comments to
  match the other locale files.
- Workout.remove.test.jsx hardcoded 12 locale packs; bumped to 13 now
  that th.js is a complete pack.

npm test / npm run build / node scripts/check-locales.mjs all pass now.
This commit is contained in:
Suthep committed 2026-08-29 19:12:49 +07:00
1 parent 241b036fe4
commit ce0e5d4aef
2 files changed
+123 -3

No files matched your search

+2 -2
View File
@@ -110,8 +110,8 @@ describe('remove-exercise locale coverage', () => {
]
const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' })
it('defines every new prompt in all twelve locale packs', () => {
expect(Object.keys(packs)).toHaveLength(12)
it('defines every new prompt in all thirteen locale packs', () => {
expect(Object.keys(packs)).toHaveLength(13)
Object.entries(packs).forEach(([path, pack]) => {
required.forEach(key => expect(pack, `${path} is missing ${key}`).toHaveProperty(key))
})