How does the vue-i18n multilingual plug-in handle the text from the js request

I want to use vue-i18n to implement multiple languages, but those key of it are all configured. What if the text requested by js

Jun.13,2022

put the request text and the local merge on the line, if only on the network, then set it directly, and then pay attention to control the i18n configuration request before the completion of the content do not display the need for copywriting, you can add a loading animation to the entire site.

// localCN  fetchedCN
i18n.setLocaleMessage('zh-CN', {
    ...localCN,
    ...fetchedCN,
  })
Menu