DEV Community

Cover image for Changed Nonenglishtext to English.
Weird Codes
Weird Codes

Posted on • Originally published at weirdcodes.itch.io

Changed Nonenglishtext to English.

🎮 MOKSHA Devlog — Commit db000bac

Author: pj90 (@weirdcodesofficial)

Date: August 9, 2026

Changes: 110 lines (73 additions, 37 deletions)


📝 Commit Message

Text-fix: Changed Nonenglishtext to English.


🔧 What Changed

This commit standardizes English transliteration throughout the game's UI, documentation, and game mechanics. The goal is to improve accessibility and readability by replacing diacritical Sanskrit transliterations with their common English equivalents.

Key Updates:

  1. Emoji UI Corrections (index.html)
  • Updated touch-screen button icons for consistency

  • Changed 🌿 → 🙏 for the "s" key

  • Changed 🙏 → 🙌 for the "w" key

  1. Internationalization (i18n) Expansion (src/i18n.js)
  • Added 8 new UI strings in both Hindi and English:

    • Pause menu: title, resume, restart, quit
    • Shastra (knowledge) overlay: title and subtitle
    • Tutorial dismiss prompt
    • Loading screen text
  • Fixed Sanskrit diacritics → English:

    • Yogavasiṣṭha → Yogavashishtha
    • Vikshepa (fixed acute accent)
  1. Language System Updates (src/main.js)
  • Implemented dynamic language switching for:

    • Pause overlay (stambhana/स्तम्भन)
    • Shastra knowledge overlay
    • Loading screen text
  • Ensures UI responds instantly to language preference changes

  1. Game Documentation Overhaul (src/shastra.js)
  • Replaced all Sanskrit diacritical marks with English equivalents:

    • ĀtmanAtman
    • MāyāMaya
    • Puṇya / PāpaPunya / Papa
    • NāmaNaama
    • ChetanāChetana
    • KṛpāKripa
    • PrārabdhaPrarabdha
    • Śāstra / ŚaṅkhaShastra / Shankha
  • Updated Bhagavad Gita reference: 4.37 (now without diacritic)

  • Updated Upanishad citations: Katha, Brihadaranyaka

  1. UI Rendering (src/render.js)
  • Tutorial dismiss button now uses the new i18n system instead of hardcoded text

🎯 Impact

  • Improved Accessibility: English-speaking players can more easily read and understand game terminology

  • Internationalization-Ready: Proper i18n system now manages all UI strings, making future language additions seamless

  • Better Consistency: Standardized transliteration across all game elements (UI, docs, and mechanics)

  • User Experience: Pause menu and shastra overlay now properly update when players switch languages mid-game


📊 Files Modified

  • index.html (2 additions, 2 deletions)

  • src/i18n.js (18 additions, 2 deletions)

  • src/main.js (20 additions, 0 deletions)

  • src/render.js (1 addition, 1 deletion)

  • src/shastra.js (32 additions, 32 deletions)


🎭 Thematic Note

Despite the technical simplification to Roman script, the commit preserves the deep philosophical essence of the game—blending Vedantic concepts (Moksha, Atman, Karma, Maya) with modern game design. The accessibility improvement ensures more players can engage with MOKSHA's rich spiritual narrative without linguistic barriers.

Top comments (0)