I would like to ask you the react question.

reat-redux so far I can only get the process through, a simple demo;

I have a problem now. When I create a multilingual pack, I pull the language pack through the interface to store, and then render the interface.

the problem now is that when the interface data has not yet been returned, react will render a page, resulting in the language pack undefined.

how to deal with such a situation?

Mar.21,2021

there is no need to put the language into store, it should be placed in the json file or js file under the language folder, and import can be used directly. You are complicating things, the language pack is not a variable, and once it is loaded into it, it will not change. You will also slow down the performance of the website if you deal with it that way.

Menu