Update Component.js

Added support for template localization.
Couldn't find a better way to update the template other than setting the data again...