Multi-language resource file loading method and device, equipment and storage medium

The invention relates to the technical field of front-end development, and provides a multi-language resource file loading method, device and equipment and a storage medium, and the method comprises the following steps: constructing a multi-language resource file through an automatic construction to...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI GUANGXIN, SUN SHUAI, LIN QUNHE, LI YATANG, ZHANG YUCHENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to the technical field of front-end development, and provides a multi-language resource file loading method, device and equipment and a storage medium, and the method comprises the following steps: constructing a multi-language resource file through an automatic construction tool, adding addressing logic of a target language resource file through a page tag, and loading the target language resource file according to the addressing logic. The target language resource file is obtained from the multi-language resource file, content initialization is carried out on the target language resource file to obtain an initialized language resource file, logic initialization is carried out on the initialized language resource file, and then rendering is carried out on a page. According to the method and the device, the pre-loading of the multi-language resources is completed when the project is loaded and executed, and a later network request and resource loading process is avoided, so that the resp