added localization support for preview & embed