The internationalization of element-ui

  1. internationalization uses i18n so that static fonts can be switched in multiple languages after configuration.
  2. I made i18n compatible according to element-ui "s official website.
  3. the question is, how can I switch the words in element-ui components, such as messageBox, to English when I am using them?
            this.$prompt("", "", {
              confirmButtonText: "",
              cancelButtonText: "",
              inputValue: ""
            }).then(({ value }) => {
              this.$message({
                type: "success",
                message: ": " + value
              });

take the above code as an example, I would like to ask you how to switch the language of the content of the messageBox pop-up box.


this.$t ('message.logout')

Menu