Commit beef49a9 authored by David Gonçalves's avatar David Gonçalves 📖

select language

parent e99c6ae2
......@@ -53,6 +53,10 @@ class Languages {
if (i === len) return;
this._lang = this._lang_arr[i];
window.lang = this._lang;
if (window.editor) {
window.editor.setLines();
}
$("title").text(this._lang.title);
$("#title").text(this._lang.title);
......
......@@ -14,10 +14,9 @@ $(document).ready(function () {
window.lang_obj.loadLanguages();
window.lang_obj.listLanguages();
window.lang_obj.setLanguage("English");
window.lang = window.lang_obj.lang;
// Initialize editor
var editor = new Editor(ace);
window.editor = new Editor(ace);
// Events
$('#fileInput').on('change', function(e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment