translate.language.setLocal('Chinese_simplified'); Set the local language (the language of the current web page). If this parameter is not set, the language in which the text is displayed on the current web page is automatically recognized by default. You can fill in such as 'english', 'Chinese_simplified', etc., please refer to the instructions below the document.
translate.service.use('client.edge'); Set up a machine translation service channel, directly on the client itself, without relying on the server side.
translate.execute(); Translate