[angular] Rewrote languageInput logic in OOP