Add localization to client scripts and templates