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 Englis
๐ฎ 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:
-
Emoji UI Corrections (
index.html)
Updated touch-screen button icons for consistency
Changed ๐ฟ โ ๐ for the "s" key
Changed ๐ โ ๐ for the "w" key
-
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)
-
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
-
Game Documentation Overhaul (
src/shastra.js)
-
Replaced all Sanskrit diacritical marks with English equivalents:
- ฤtman โ Atman
- Mฤyฤ โ Maya
- Puแนya / Pฤpa โ Punya / Papa
- Nฤma โ Naama
- Chetanฤ โ Chetana
- Kแนpฤ โ Kripa
- Prฤrabdha โ Prarabdha
- ลฤstra / ลaแน kha โ Shastra / Shankha
Updated Bhagavad Gita reference: 4.37 (now without diacritic)
Updated Upanishad citations: Katha, Brihadaranyaka
-
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.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.