We need to replace all String literals of the alerts with calls to alert(getTextById(...)) Corresponding new text-ids need to be created in localizations.js