Skip to content

Commit

Permalink
add Telugu
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Dec 9, 2023
1 parent 014defb commit a994f6b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/languagebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ class LanguageBox {
this._language = "he";
this.hide();
}
/**
* @public
* @returns {void}
*/
te_onclick() {
this._language = "te";
this.hide();
}

/**
* @public
Expand Down
8 changes: 8 additions & 0 deletions js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class Toolbar {
["hi", _("हिंदी"), "innerHTML"],
["ibo", _("igbo"), "innerHTML"],
["ar", _("عربى"), "innerHTML"],
["te", _("తెలుగు"), "innerHTML"],
["he", _("עִברִית"), "innerHTML"]
];

Expand Down Expand Up @@ -191,6 +192,7 @@ class Toolbar {
["hi", _("हिंदी"), "innerHTML"],
["ibo", _("igbo"), "innerHTML"],
["ar", _("عربى"), "innerHTML"],
["te", _("తెలుగు"), "innerHTML"],
["he", _("עִברִית"), "innerHTML"]
];

Expand Down Expand Up @@ -893,6 +895,12 @@ class Toolbar {
languageBox.ar_onclick(this.activity);
};

const te = docById("te");

te.onclick = () => {
languageBox.te_onclick(this.activity);
};

const he = docById("he");

he.onclick = () => {
Expand Down

0 comments on commit a994f6b

Please sign in to comment.