202202 <q-btn flat id =" subm" @click =" Add(Keyword.Print + '()')" >{{
203203 Keyword.Print
204204 }}</q-btn >
205- <q-btn flat id =" subm" @click =" Add('इनपुट ()')" >इनपुट </q-btn >
205+ <q-btn flat id =" subm" @click =" Add(Keyword.Input + ' ()')" >{{Keyword.Input}} </q-btn >
206206
207207 <q-btn flat id =" subm" @click =" Add(Keyword.If + '()')" >{{
208208 Keyword.If
209209 }}</q-btn >
210210
211- <q-btn flat id =" subm" @click =" Add('दुहराओ x को y मे' )" >दुहराओ </q-btn >
211+ <q-btn flat id =" subm" @click =" Add(Keyword.For )" >{{Keyword.For}} </q-btn >
212212 <q-btn flat id =" subm" @click =" Add(Keyword.While + '()')" >{{
213213 Keyword.While
214214 }}</q-btn >
215- <q-btn flat id =" subm" @click =" Add('.संख्या ()')" >.संख्या </q-btn >
216- <q-btn flat id =" subm" @click =" Add('.पुश()') " >.पुश </q-btn >
217- <q-btn flat id =" subm" @click =" Add('रचना' )" >रचना </q-btn >
215+ <q-btn flat id =" subm" @click =" Add(Keyword.Length + ' ()')" >{{Keyword.Length}} </q-btn >
216+ <q-btn flat id =" subm" @click =" Add(Keyword.Push) " >{{Keyword.Push}} </q-btn >
217+ <q-btn flat id =" subm" @click =" Add(Keyword.Function )" >{{Keyword.Function}} </q-btn >
218218 </div >
219219 </div >
220220
244244<script >
245245// This is our header file AKA Navigation bar located in components folder.
246246
247- import { KalaamKeywords } from " ../lib/Compiler/constants" ;
247+ // import { KalaamKeywords } from "../lib/Compiler/constants";
248248
249- // import { KalaamKeywords } from "kalaam";
249+ import { KalaamKeywords } from " kalaam" ;
250250
251251// CodeMirror is an npm package whcih provides rich code editors
252252import { codemirror } from " vue-codemirror" ;
@@ -360,7 +360,7 @@ export default {
360360
361361 model: null ,
362362
363- options: [" Hindi" , " Marathi" ],
363+ options: [" Hindi" , " Marathi" , " Bengali " ],
364364 };
365365 },
366366
@@ -383,6 +383,11 @@ export default {
383383
384384 this .Keyword = KalaamKeywords .Marathi ;
385385 }
386+ else if (this .ActiveLanguage == " Bengali" ) {
387+ localStorage .setItem (" ActiveLangugae" , this .ActiveLanguage );
388+
389+ this .Keyword = KalaamKeywords .Bengali ;
390+ }
386391 },
387392 },
388393
@@ -495,7 +500,7 @@ export default {
495500 output,
496501 error,
497502 ExecutionStack,
498- } = Compile (this .code , this .ActiveLanguage );
503+ } = Compile (this .code , this .Keyword );
499504
500505 this .linebylineOutput = linebylineOutput;
501506 this .TimeTaken = TimeTaken;
0 commit comments