Menu

I made a script that fails my deploy if any English is left in my Arabic, Thai or Turkish pages
πŸ“°

I made a script that fails my deploy if any English is left in my Arabic, Thai or Turkish pages

DEV Community: webdevΒ·Abdul Wasay LodhiΒ·3 days ago
#7ZuGVM1l
#devtowebdev#devto#dev#i18n#rtl
Reading 0:00
15s threshold

Nov 10. 25 commits.

Regista XI is in 8 languages. Translating once isn't the hard part. Keeping all 8 true as the site changes is.

Problem: pages kept shipping with English left in them, and Arabic numbers broke inside right-to-left text.

Fix: npm run check:i18n. It audits dictionaries, rendered server pages, React pages and hard-coded strings. I run it before every deploy. Then all 7 other languages got a full pass: game text (PlayStyles, traits, skills, nations), one term per concept, no English left.

Then two QA passes (board#82), one on card and tool pages, one on Squad Reader, Builder and Codes:

β†’ The advisor rank table now fits phones.

β†’ Arabic point plurals fixed.

β†’ Tap targets at least 44px.

β†’ Wrong-player guesses in the Reader are sensible, with a bottom sheet to fix one.

β†’ A shared squad opens as a full read-only page.

Search got faster to use too.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.