added support for translations in create_component_json