Updated to add i18n interpolation support. Changed how metadata is supplied and returned.