- internationalization uses i18n so that static fonts can be switched in multiple languages after configuration.
- I made i18n compatible according to element-ui "s official website.
- 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.