Language package setting method and device, computer device and storage medium

By obtaining language setting data from the user terminal and matching language pack fragments with the server, the problems of slow loading speed and large storage space are solved, realizing the fragmented splitting and on-demand loading of language packs, thus improving loading speed and flexibility.

CN122195552APending Publication Date: 2026-06-12BEIJING BAIJU YIXING TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING BAIJU YIXING TECH CO LTD
Filing Date
2026-01-29
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Existing technologies for setting language packs in applications suffer from slow loading speeds and high storage space consumption.

Method used

By acquiring the user terminal's language settings data, generating a language matching request and matching it with the target server, receiving and caching basic language pack fragments, parsing them, and loading the initial interface resources, the fragmented splitting and on-demand loading of language packs are realized.

Benefits of technology

It improves loading speed, reduces storage space usage, and enhances the flexibility and accuracy of language pack matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122195552A_ABST
    Figure CN122195552A_ABST
Patent Text Reader

Abstract

The application relates to a language package setting method and device, computer equipment and a storage medium. The method comprises the following steps: obtaining language setting data of a user terminal; generating a language matching request according to the language setting data, and sending the language matching request to a target server; in response to receiving a target language identifier, generating a basic language package slice request according to the target language identifier, a preset first language package type and a preset initial language package slice serial number range, and sending the basic language package slice request to the target server; in response to receiving each target basic language package slice, generating an initial basic language package file according to each basic language package slice, obtaining first text resources of an initial common interface of a target application program after analyzing the initial basic language package file, and loading the first text resources to display the initial common interface on the user terminal. The method can improve loading speed and reduce storage space occupation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a language pack setting method, apparatus, computer device, and storage medium. Background Technology

[0002] As globalization accelerates, applications are increasingly being used by users in different regions and speaking different languages ​​around the world. To meet the needs of multilingual users, applications must have international multilingual support capabilities, which means enabling the switching of the interface language by loading text resources in the corresponding language.

[0003] Currently, the multilingual implementation of applications mainly relies on language packs: during the development phase, text resources of different languages ​​are organized into independent language packs, and during application installation or runtime, the corresponding language pack is loaded to achieve interface language adaptation.

[0004] However, the current method of setting up language packs has problems such as slow loading speed or large storage space consumption. Summary of the Invention

[0005] Therefore, it is necessary to provide a language pack setting method, apparatus, computer device, and storage medium that can improve loading speed and reduce storage space usage in response to the above-mentioned technical problems.

[0006] Firstly, a method for setting a language pack is provided, the method being applied to a user terminal where a target application is installed; the method includes: Obtain the user terminal's language settings data; the language settings data includes the user terminal's system settings language, the target application's language settings priority list, and the user terminal's current region; A language matching request is generated based on the language settings data and sent to the target server. The target server then performs language matching based on the language matching request and preset language matching rules to obtain the target language identifier and sends the target language identifier back to the user terminal. The target server is a server within a preset distance from the current location of the user terminal. In response to receiving a target language identifier, a basic language pack fragmentation request is generated based on the target language identifier, a preset first language pack type, and a preset initial language pack fragmentation number range. This request is then sent to the target server, enabling the target server to match each target basic language pack fragment according to the request and to return each target basic language pack fragment to the user terminal. The first language pack type is the basic language pack type; the target basic language pack fragments are the language pack fragments within the initial language pack fragmentation number range of the basic language pack corresponding to the target language identifier. In response to receiving each target base language pack fragment, an initial base language pack file is generated based on each base language pack fragment, the initial base language pack file is cached, and the first text resource of the initial public interface of the target application is obtained after parsing the initial base language pack file. The first text resource is then loaded to display the initial public interface on the user terminal.

[0007] In one embodiment, generating an initial basic language pack file based on each basic language pack fragment includes: performing integrity verification on each basic language pack fragment to obtain an integrity verification result; merging the basic language pack fragments in response to a successful integrity verification result to obtain an initial basic language pack file; and returning to and sending a basic language pack fragment request to the target server in response to a failed integrity verification result.

[0008] In one embodiment, the method further includes: in response to triggering an operation on a target functional module of the initial public interface, generating a functional module language pack fragment request based on a target language identifier, a preset second language pack type, a functional module identifier of the target functional module, and a preset range of initial functional module pack fragment numbers, and sending the functional module language pack fragment request to a target server, so that the target server matches each target functional module language pack fragment according to the functional module language pack fragment request, and feeds back each target functional module language pack fragment to the user terminal; the second language pack type is a functional module language pack type; the target functional module language pack fragment is a language pack fragment within the range of initial functional module pack fragment numbers in the functional module language pack corresponding to the target language identifier; in response to receiving each target functional module language pack fragment, generating an initial functional module language pack file based on each target functional module language pack fragment, caching the initial functional module language pack file, parsing the initial functional module language pack file to obtain a second text resource of the initial functional module interface of the target functional module, and loading the second text resource to display the initial functional module interface on the user terminal.

[0009] In one embodiment, the method further includes: in response to selecting a target language in the language settings interface of the target application, checking whether the user terminal has cached the initial functional module language pack file; in response to the user terminal having cached the initial functional module language pack file, generating a functional module language pack remaining fragment request based on the target language identifier, the second language pack type, the functional module identifier, and the functional module pack remaining fragment sequence number range, so that the target server matches each target functional module language pack remaining fragment according to the functional module language pack remaining fragment request, and feeds back each target functional module language pack remaining fragment to the user terminal; functional module pack remaining fragment sequence number. The range is determined based on the initial functional module package fragment number range; the remaining fragments of the target functional module language package are the language package fragments within the remaining fragment number range of the functional module package corresponding to the target language identifier; in response to receiving each target functional module language package remaining fragment, a complete functional module language package file is generated based on each target functional module language package remaining fragment and the initial functional module language package file, the complete functional module language package file is cached, and the third text resource of the complete functional module interface of the target application is obtained after parsing the complete functional module language package file, and the third text resource is loaded to display the complete functional module interface on the user terminal.

[0010] In one embodiment, the method further includes: in response to launching the target application, obtaining the current version of the complete functional module language pack file, generating a version check request based on the current version, sending the version check request to the target server, so that the target server checks whether the target application has a version update, and provides feedback on the application pending update prompt when the target application has a version update; the pending update prompt includes the incremental package fragment address of the target application.

[0011] In one embodiment, the method further includes: receiving an update prompt message, parsing the update prompt message to obtain an incremental packet fragment address, generating an incremental packet fragment request based on the target language identifier, the second language pack type, the functional module identifier, and the incremental packet fragment address, and sending the incremental packet fragment request to the target server so that the target server matches the incremental language pack fragments of each target functional module according to the incremental packet fragment request, and feeding back the incremental language pack fragments of each target functional module to the user terminal; the incremental language pack fragment of the target functional module is the language pack fragment with the incremental packet fragment address in the functional module language pack corresponding to the target language identifier; in response to receiving the incremental language pack fragments of each target functional module, generating a complete functional module language pack incremental file based on the incremental language pack fragments of each target functional module, caching the complete functional module language pack incremental file, parsing the complete functional module language pack incremental file to obtain a fourth text resource of the updated complete functional module interface, updating the third text resource based on the fourth text resource to obtain a fifth text resource, and loading the fifth text resource to display the updated complete functional module interface on the user terminal.

[0012] In one embodiment, the method further includes: in response to selecting a target language in the language settings interface of the target application, checking whether the user terminal has cached the initial base language pack file; in response to the user terminal having cached the initial base language pack file, generating a base language pack remaining fragment request based on the target language identifier, the first language pack type, and the range of remaining fragment numbers for the language pack, and sending the base language pack remaining fragment request to the target server, so that the target server matches each target base language pack remaining fragment according to the base language pack remaining fragment request, and feeds back each target base language pack remaining fragment to the user terminal; the range of remaining fragment numbers for the language pack is determined based on the range of initial language pack fragment numbers; the target base language pack remaining fragment is the language pack fragment within the range of remaining fragment numbers for the language pack in the base language pack corresponding to the target language identifier; in response to receiving each target base language pack remaining fragment, generating a complete base language pack file based on each target base language pack remaining fragment and the initial base language pack file, caching the complete base language pack file, parsing the complete base language pack file to obtain a sixth text resource of the complete public interface of the target application, and loading the sixth text resource to display the complete public interface on the user terminal.

[0013] Secondly, a language pack setting device is provided, which is applied to a user terminal where a target application is installed; the device includes a data acquisition module, a language matching module, a language pack segmentation request module, and an interface display module.

[0014] The data acquisition module is used to acquire the user terminal's language setting data. This data includes the user terminal's system language settings, the target application's language setting priority list, and the user terminal's current location. The language matching module generates a language matching request based on the language setting data and sends it to the target server. The target server then performs language matching according to the request and preset language matching rules to obtain the target language identifier and sends it back to the user terminal. The target server is a server within a preset distance of the user terminal's current location. The language packet fragmentation request module, in response to receiving the target language identifier, generates a language packet fragmentation request based on the target language identifier, a preset first language packet type, and a preset initial language packet fragmentation sequence number range. A basic language pack fragmentation request is generated and sent to the target server, so that the target server matches each target basic language pack fragment according to the basic language pack fragmentation request and returns each target basic language pack fragment to the user terminal; the first language pack type is the basic language pack type; the target basic language pack fragment is the language pack fragment within the initial language pack fragmentation sequence number range of the basic language pack corresponding to the target language identifier; the interface display module responds to receiving each target basic language pack fragment, generates an initial basic language pack file according to each basic language pack fragment, caches the initial basic language pack file, parses the initial basic language pack file to obtain the first text resource of the initial public interface of the target application, and loads the first text resource to display the initial public interface on the user terminal.

[0015] Thirdly, a computer device is provided, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods described in the above method embodiments.

[0016] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the methods described in the above method embodiments.

[0017] The aforementioned language pack setting method, apparatus, computer equipment, and storage medium acquire language setting data from a user terminal. This language setting data includes the user terminal's system setting language, a language setting priority list for the target application, and the user terminal's current location. Then, a language matching request is generated based on the language setting data and sent to a target server. The target server performs language matching according to the request and preset language matching rules to obtain a target language identifier and sends the target language identifier back to the user terminal. The target server is a server within a preset distance from the user terminal's current location. Next, in response to receiving the target language, a basic language pack fragmentation request is generated based on the target language identifier, a preset first language pack type, and a preset initial language pack fragmentation number range. This basic language pack fragmentation request is then sent to the target server. This allows the target server to match each target basic language pack fragment according to the basic language pack fragmentation request and return each target basic language pack fragment to the user terminal; the first language pack type is the basic language pack type; the target basic language pack fragment is the language pack fragment within the initial language pack fragment sequence number range of the basic language pack corresponding to the target language identifier; and, in response to receiving each target basic language pack fragment, an initial basic language pack file is generated according to each basic language pack fragment, the initial basic language pack file is cached, the initial basic language pack file is parsed to obtain the first text resource of the initial public interface of the target application, and the first text resource is loaded to display the initial public interface on the user terminal. This achieves on-demand loading after language pack fragmentation, improves loading speed, reduces storage space occupation, automatically selects the most suitable language pack, and improves the flexibility of language pack matching. Attached Figure Description

[0018] Figure 1 This is an application environment diagram of a language pack setting method in one embodiment; Figure 2 This is a schematic diagram of the first process of a language pack setting method in one embodiment; Figure 3 This is a schematic diagram of the process for generating an initial base language pack file based on each base language pack fragment in one embodiment. Figure 4 This is a schematic diagram of the second process of a language pack setting method in one embodiment; Figure 5 This is a structural block diagram of a language pack setting device in one embodiment; Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0020] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings, which illustrate embodiments of the present application. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of this application will be thorough and complete.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.

[0022] It is understood that the terms "first," "second," etc., used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0023] It is understood that the term "connection" in the following embodiments should be understood as "electrical connection," "communication connection," etc., if the connected circuits, modules, units, etc., have electrical signal or data transmission with each other.

[0024] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising,” “including,” or “having,” etc., specify the presence of the stated feature, whole, step, operation, component, part, or combination thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof.

[0025] The language pack setting method provided in this application can be applied to, for example... Figure 1 In the application environment shown, user terminal 102 communicates with server 104 via a network. User terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Server 104 can be a standalone server or a server cluster consisting of multiple servers.

[0026] Firstly, such as Figure 2 As shown, a method for setting a language pack is provided, which can be applied to... Figure 1 The following steps are used as an example to illustrate the process, which includes steps 201 to 204.

[0027] Step 201: Obtain the language settings data of the user terminal.

[0028] The language setting data includes the user terminal's system language settings, the target application's language setting priority list, and the user terminal's current region. Specifically, user terminal 102 acquires the user terminal's language setting data.

[0029] In a specific example, the target application is any application configured on the user's terminal. Language settings data include the user's terminal's system language being Chinese, the target application's language setting priority list being Chinese > English > Spanish, and the user's terminal's current region being China. Furthermore, if the target application's language setting priority list is not set, the default language setting priority list is used; for example, system language > English > Spanish. The above is merely a specific example; in actual applications, settings should be flexibly configured according to user needs, and no restrictions are imposed here.

[0030] Step 202: Generate a language matching request based on the language setting data and send the language matching request to the target server so that the target server can obtain the target language after performing language matching based on the language matching request and the preset language matching rules, and then send the target language identifier back to the user terminal.

[0031] The target server is a server within a preset distance from the current location of the user terminal. Specifically, server 104 generates a language matching request based on language setting data and sends the request to the target server. The target server then performs language matching based on the request and preset language matching rules to obtain the target language identifier and sends the target language identifier back to the user terminal.

[0032] In a specific example, the target server performs language matching based on the language matching request and preset language matching rules to obtain the target language identifier, and then sends the target language identifier back to the user terminal.

[0033] The target application's language setting priority list is Chinese > English > Spanish; the target application only supports Chinese and English, and the target language is matched to Chinese using language matching rules, represented as zh-CN. When the target language identifier is sent to the user's terminal, a language matching result prompt message is also sent. The above is only a specific example; in actual applications, settings can be flexibly adjusted according to user needs, and no restrictions are imposed here.

[0034] Step 203: In response to receiving the target language, generate a basic language pack fragmentation request based on the target language identifier, the preset first language pack type, and the preset initial language pack fragmentation number range, and send the basic language pack fragmentation request to the target server so that the target server matches each target basic language pack fragment according to the basic language pack fragmentation request and feeds back each target basic language pack fragment to the user terminal.

[0035] The first language pack type is the basic language pack type; the target basic language pack fragment is the language pack fragment within the initial language pack fragment number range of the basic language pack corresponding to the target language identifier. Specifically, in response to receiving a target language, the user terminal 102 generates a basic language pack fragment request based on the target language identifier, the preset first language pack type, and the preset initial language pack fragment number range, and sends the basic language pack fragment request to the target server, so that the target server matches each target basic language pack fragment according to the basic language pack fragment request and feeds back each target basic language pack fragment to the user terminal.

[0036] In a specific example, a basic language pack fragment request is generated based on the target language identifier zh-CN, the preset first language pack type as the base language pack type, and the preset initial language pack fragment number range of 1-8. The target server matches each target basic language pack fragment into target basic language pack fragment 1 to target basic language pack fragment 8 based on the basic language pack fragment request, and then sends the target basic language pack fragments 1 to 8 back to the user terminal. The above is only a specific example; in actual applications, it can be flexibly configured according to user needs, and no restrictions are imposed here.

[0037] Step 204: In response to receiving each target base language pack fragment, generate an initial base language pack file based on each base language pack fragment, cache the initial base language pack file, parse the initial base language pack file to obtain the first text resource of the initial public interface of the target application, and load the first text resource to display the initial public interface on the user terminal.

[0038] Specifically, in response to receiving each target basic language pack fragment, the user terminal 102 generates an initial basic language pack file based on each basic language pack fragment, caches the initial basic language pack file, parses the initial basic language pack file to obtain the first text resource of the initial public interface of the target application, and loads the first text resource to display the initial public interface on the user terminal. This realizes on-demand loading after language pack fragmentation, improves loading speed, reduces storage space occupation, automatically selects the most suitable language pack, and improves the flexibility of language pack matching.

[0039] In one embodiment, such as Figure 3As shown, the initial basic language pack file is generated according to each basic language pack fragment, including steps 301 to 303.

[0040] Step 301: Perform integrity verification on each basic language package fragment to obtain the integrity verification results; Step 302: In response to the integrity verification result being successful, the fragments of each basic language pack are merged to obtain the initial basic language pack file; Step 303: In response to the integrity verification result being a verification failure, return to the step of sending a basic language pack fragmentation request to the target server.

[0041] Specifically, user terminal 102 performs integrity verification on each basic language pack fragment and obtains the integrity verification result; then, in response to the integrity verification result being successful, it merges each basic language pack fragment to obtain an initial basic language pack file; next, in response to the integrity verification result being unsuccessful, it returns to the step of sending a basic language pack fragment request to the target server, thereby improving the integrity of the language pack and the accuracy of its subsequent use.

[0042] In a specific example, integrity verification can be, but is not limited to, MD5 checksum. The above is just a specific example. In actual applications, it can be flexibly set according to user needs, and there are no restrictions here.

[0043] In this embodiment, integrity verification is performed on each basic language pack fragment to obtain an integrity verification result. Then, in response to a successful integrity verification result, the basic language pack fragments are merged to obtain an initial basic language pack file. Next, in response to a failed integrity verification result, the process returns to the step of sending a basic language pack fragment request to the target server, thereby improving the integrity of the language pack and the accuracy of its subsequent use.

[0044] Based on this, the above language pack setting method obtains the user terminal's language setting data; the language setting data includes the user terminal's system setting language, the target application's language setting priority list, and the user terminal's current location; then, a language matching request is generated based on the language setting data, and sent to the target server, so that the target server performs language matching according to the language matching request and preset language matching rules to obtain the target language identifier, and then sends the target language identifier back to the user terminal; the target server is a server within a preset distance from the user terminal's current location; next, in response to receiving the target language, a basic language pack fragmentation request is generated based on the target language identifier, a preset first language pack type, and a preset initial language pack fragmentation number range, and sent to the target server, so that the target server... The server matches each target basic language pack fragment according to the basic language pack fragmentation request and feeds back each target basic language pack fragment to the user terminal; the first language pack type is the basic language pack type; the target basic language pack fragment is the language pack fragment within the initial language pack fragment sequence number range of the basic language pack corresponding to the target language identifier; and, in response to receiving each target basic language pack fragment, an initial basic language pack file is generated according to each basic language pack fragment, the initial basic language pack file is cached, the initial basic language pack file is parsed to obtain the first text resource of the initial public interface of the target application, and the first text resource is loaded to display the initial public interface on the user terminal. This realizes on-demand loading after language pack fragmentation, improves loading speed, reduces storage space occupation, automatically selects the most suitable language pack, and improves the flexibility of language pack matching.

[0045] In one embodiment, such as Figure 4 As shown, the method further includes steps 401 to 402.

[0046] Step 401: In response to the triggering operation of the target functional module of the initial public interface, generate a functional module language pack fragmentation request based on the target language identifier, the preset second language pack type, the functional module identifier of the target functional module, and the preset initial functional module pack fragmentation number range, and send the functional module language pack fragmentation request to the target server so that the target server matches each target functional module language pack fragment according to the functional module language pack fragmentation request and feeds back each target functional module language pack fragment to the user terminal.

[0047] Step 402: In response to receiving language pack fragments of each target functional module, generate an initial functional module language pack file based on each target functional module language pack fragment, cache the initial functional module language pack file, parse the initial functional module language pack file to obtain the second text resource of the initial functional module interface of the target functional module, and load the second text resource to display the initial functional module interface on the user terminal.

[0048] The second language pack type is the functional module language pack type; the target functional module language pack fragment is the language pack fragment within the initial functional module pack fragment number range of the functional module language pack corresponding to the target language identifier. Specifically, in response to triggering an operation on the target functional module of the initial public interface, the user terminal 102 generates a functional module language pack fragmentation request based on the target language identifier, the preset second language pack type, the functional module identifier of the target functional module, and the preset initial functional module pack fragmentation sequence number range. This request is then sent to the target server, enabling the target server to match each target functional module language pack fragment according to the request and to return each target functional module language pack fragment to the user terminal. Subsequently, in response to receiving each target functional module language pack fragment, the user terminal generates an initial functional module language pack file based on the fragments, caches the initial functional module language pack file, parses the file to obtain the second text resource of the initial functional module interface, and loads the second text resource to display the initial functional module interface on the user terminal. This achieves on-demand loading of language packs after fragmentation, improving loading speed, reducing storage space usage, automatically selecting the most suitable language pack, and enhancing the flexibility of language pack matching.

[0049] In a specific example, a function module language pack fragmentation request is generated based on the target language identifier zh-CN, the preset second language pack type being the function module language pack type (module type), the target function module's function module identifier being home, and the preset initial function module pack fragmentation number range being 1-2. This request is then sent to the target server, enabling the server to match target function module language pack fragments 1 through 2 and provide feedback to the user terminal. This is merely a specific example; in actual applications, the settings can be flexibly configured according to user needs, and no restrictions are imposed here.

[0050] In this embodiment, in response to a trigger operation on the target functional module of the initial public interface, a functional module language pack fragmentation request is generated based on the target language identifier, a preset second language pack type, the functional module identifier of the target functional module, and a preset range of initial functional module pack fragmentation numbers. This request is then sent to the target server, enabling the target server to match each target functional module language pack fragment according to the request and to send each target functional module language pack fragment back to the user terminal. Subsequently, in response to receiving each target functional module language pack fragment, an initial functional module language pack file is generated based on each fragment. This initial functional module language pack file is cached, and after parsing, the second text resource of the initial functional module interface of the target functional module is obtained. This second text resource is then loaded to display the initial functional module interface on the user terminal. This achieves on-demand loading of language packs after fragmentation, improving loading speed, reducing storage space usage, automatically selecting the most suitable language pack, and improving the flexibility of language pack matching.

[0051] In one embodiment, the method further includes: In response to the selection of the target language in the target application's language settings interface, check whether the user terminal has cached the initial function module language pack file; In response to the user terminal having cached the initial functional module language pack file, a functional module language pack remaining fragment request is generated based on the target language identifier, the second language pack type, the functional module identifier, and the functional module pack remaining fragment sequence number range. This allows the target server to match each target functional module language pack remaining fragment according to the functional module language pack remaining fragment request and to feed back each target functional module language pack remaining fragment to the user terminal. In response to receiving the remaining fragments of the language packs of each target functional module, a complete functional module language pack file is generated based on the remaining fragments of the language packs of each target functional module and the initial functional module language pack file. The complete functional module language pack file is cached. After parsing the complete functional module language pack file, the third text resource of the complete functional module interface of the target application is obtained, and the third text resource is loaded to display the complete functional module interface on the user terminal.

[0052] The remaining fragment number range of the functional module package is determined based on the initial functional module package fragment number range; the remaining fragments of the target functional module language package are the language package fragments within the remaining fragment number range of the functional module package in the functional module language package corresponding to the target language identifier.

[0053] Specifically, in response to selecting a target language in the language settings interface of the target application, user terminal 104 checks whether the user terminal has cached the initial functional module language pack file; then, in response to the user terminal having cached the initial functional module language pack file, it generates a functional module language pack remaining fragment request based on the target language identifier, the second language pack type, the functional module identifier, and the functional module pack remaining fragment sequence number range, so that the target server matches each target functional module language pack remaining fragment according to the functional module language pack remaining fragment request and feeds back each target functional module language pack remaining fragment to the user terminal; then, in response to receiving each target functional module language pack remaining fragment, Based on the remaining fragments of each target functional module language pack and the initial functional module language pack file, a complete functional module language pack file is generated. The complete functional module language pack file is cached. After parsing the complete functional module language pack file, the third-party text resource of the complete functional module interface of the target application is obtained and loaded to display the complete functional module interface on the user terminal. This facilitates the target application's language settings interface to set the target language and generate the complete functional module language pack file, which facilitates the display of the complete functional module interface. This delays the storage space occupation of the complete functional module language pack file, realizes on-demand loading after language pack fragmentation, and improves loading speed.

[0054] In a specific example, the target language is the language to be switched in the target application. The above is just a specific example. In actual applications, it can be flexibly set according to user needs, and there are no restrictions here.

[0055] In this embodiment, in response to selecting a target language in the language settings interface of the target application, it is checked whether the user terminal has cached the initial functional module language pack file; then, in response to the user terminal having cached the initial functional module language pack file, a functional module language pack remaining fragment request is generated based on the target language identifier, the second language pack type, the functional module identifier, and the functional module pack remaining fragment sequence number range, so that the target server matches each target functional module language pack remaining fragment according to the functional module language pack remaining fragment request and feeds back each target functional module language pack remaining fragment to the user terminal; next, in response to receiving each target functional module language pack remaining fragment, according to The remaining fragments of the language packs for each target functional module and the initial language pack file are used to generate a complete functional module language pack file. This complete functional module language pack file is cached. After parsing the complete functional module language pack file, the third-party text resource of the complete functional module interface of the target application is obtained and loaded. This allows the complete functional module interface to be displayed on the user terminal. This facilitates the language settings interface of the target application to set the target language and generate the complete functional module language pack file, which is convenient for displaying the complete functional module interface. This process delays the storage space occupation of the complete functional module language pack file, realizes on-demand loading after language pack fragmentation, and improves loading speed.

[0056] In one embodiment, the method further includes: In response to launching the target application, the system obtains the current version of the complete functional module language pack file, generates a version check request based on the current version, and sends the version check request to the target server. This allows the target server to check whether there is a version update for the target application and, if there is, provide a notification message indicating that the application needs to be updated. The notification message includes the address of the incremental package fragment of the target application.

[0057] The update notification includes the incremental package fragment address of the target application. Specifically, in response to launching the target application, the user terminal 102 obtains the current version of the complete functional module language pack file, generates a version check request based on the current version, and sends the version check request to the target server. This allows the target server to check whether the target application has a version update and, if so, provides an update notification when an update is found, facilitates language pack version detection and upgrades.

[0058] In a specific example, in response to launching the target application, the current version of the complete function module language pack file is obtained as V2.4.0. A version check request is generated based on the current version and sent to the target server. The target server checks whether there is a version update for the target application. At this time, the latest version of the complete function module language pack file on the target server is V2.5.0. The target server compares the latest version V2.5.0 with the current version V2.4.0 of the complete function module language pack file, identifies that there is a version update for the target application, and returns an application update prompt message, which is the address of the incremental package fragment of the latest version V2.5.0.

[0059] In this embodiment, in response to launching the target application, the current version of the complete functional module language pack file is obtained, a version check request is generated based on the current version, and a version check request is sent to the target server so that the target server checks whether the target application has a version update, and provides feedback on the application pending update when the target application has a version update, which facilitates the version detection and upgrade of the language pack.

[0060] In one embodiment, the method further includes: Upon receiving the update notification, the system parses the notification to obtain the incremental packet fragment address. Based on the target language identifier, the second language pack type, the functional module identifier, and the remaining fragment request of the functional module language pack, the system generates an incremental packet fragment request and sends it to the target server. This allows the target server to match the incremental language pack fragments of each target functional module according to the incremental packet fragment request and then feeds back the incremental language pack fragments of each target functional module to the user terminal. In response to receiving incremental language pack fragments of each target functional module, an incremental language pack file of the complete functional module is generated based on the incremental language pack fragments of each target functional module. The incremental language pack file of the complete functional module is cached. After parsing the incremental language pack file of the complete functional module, the fourth text resource of the updated complete functional module interface is obtained. The third text resource is updated based on the fourth text resource to obtain the fifth text resource. The fifth text resource is then loaded to display the updated complete functional module interface on the user terminal.

[0061] Among them, the incremental language pack fragment of the target functional module is the language pack fragment of the incremental packet fragment address in the language pack of the functional module corresponding to the target language identifier. Specifically, user terminal 102 receives an update notification message, parses the message to obtain the incremental packet fragment address, generates an incremental packet fragment request based on the target language identifier, second language pack type, functional module identifier, and the remaining fragment request for the functional module language pack according to the incremental packet fragment address, and sends the request to the target server so that the target server matches the incremental language pack fragments of each target functional module according to the request and feeds back the incremental language pack fragments of each target functional module to the user terminal. Then, in response to receiving the incremental language pack fragments of each target functional module, it generates a complete functional module language pack incremental file based on the fragments, caches the complete functional module language pack incremental file, parses the file to obtain the fourth text resource of the updated complete functional module interface, updates the third text resource to obtain the fifth text resource based on the fourth text resource, and loads the fifth text resource to display the updated complete functional module interface on the user terminal. This improves the incremental update mechanism, eliminates the need to re-download the complete language pack, and reduces update costs and bandwidth consumption.

[0062] In this embodiment, upon receiving an update notification, the incremental package fragment address is obtained after parsing the notification. An incremental package fragment request is generated based on the target language identifier, the second language pack type, the functional module identifier, and the remaining fragment request for the functional module language pack. This request is then sent to the target server, enabling the server to match incremental language pack fragments for each target functional module and to provide feedback on these fragments to the user terminal. Subsequently, in response to receiving the incremental language pack fragments for each target functional module, a complete functional module language pack incremental file is generated based on these fragments. This complete functional module language pack incremental file is cached. Parsing this file yields the fourth text resource for the updated complete functional module interface. The third text resource is then updated using this fourth text resource to obtain the fifth text resource, which is then loaded to display the updated complete functional module interface on the user terminal. This improves the incremental update mechanism, eliminating the need to re-download the complete language pack and reducing update costs and bandwidth consumption.

[0063] In one embodiment, the method further includes: In response to the selection of a target language in the target application's language settings interface, check whether the user terminal has cached the initial base language pack file; In response to the user terminal having cached the initial basic language pack file, a basic language pack remaining fragment request is generated based on the target language identifier, the first language pack type, and the range of remaining fragment sequence numbers of the language pack. The basic language pack remaining fragment request is then sent to the target server so that the target server can match each target basic language pack remaining fragment according to the basic language pack remaining fragment request and return each target basic language pack remaining fragment to the user terminal. In response to receiving the remaining fragments of each target base language pack, a complete base language pack file is generated based on the remaining fragments of each target base language pack and the initial base language pack file. The complete base language pack file is cached. After parsing the complete base language pack file, the sixth text resource of the complete public interface of the target application is obtained, and the sixth text resource is loaded to display the complete public interface on the user terminal.

[0064] The remaining fragment number range of the language pack is determined based on the initial language pack fragment number range; the remaining fragments of the target base language pack are the language pack fragments within the remaining fragment number range of the base language pack corresponding to the target language identifier. Specifically, in response to the user terminal 102 selecting a target language in the language settings interface of the target application, it checks whether the user terminal has cached the initial basic language pack file. Then, in response to the user terminal caching the initial basic language pack file, it generates a basic language pack remaining fragment request based on the target language identifier, the first language pack type, and the range of remaining language pack fragment numbers, and sends the basic language pack remaining fragment request to the target server. This allows the target server to match each target basic language pack remaining fragment according to the basic language pack remaining fragment request and return each target basic language pack remaining fragment to the user terminal. Next, in response to receiving each target basic language pack remaining fragment, it generates a complete basic language pack file based on each target basic language pack remaining fragment and the initial basic language pack file, caches the complete basic language pack file, parses the complete basic language pack file to obtain the sixth text resource of the complete public interface of the target application, and loads the sixth text resource to display the complete public interface on the user terminal. This facilitates the display of the complete functional module interface, delays the storage space occupation of the complete functional module language pack file, realizes on-demand loading after language pack fragmentation, and improves loading speed.

[0065] In a specific example, the method further includes: In response to the user terminal not caching the initial base language pack file, the process returns to the steps described above and sends a base language pack fragment request to the target server. The above is only a specific example, and in actual applications, it can be flexibly set according to user needs, and there are no restrictions here.

[0066] In this embodiment, in response to selecting a target language in the language settings interface of the target application, it is checked whether the user terminal has cached the initial basic language pack file. Then, in response to the user terminal having cached the initial basic language pack file, a request for remaining basic language pack fragments is generated based on the target language identifier, the first language pack type, and the range of remaining language pack fragment numbers. This request is then sent to the target server, enabling the target server to match the remaining fragments of each target basic language pack according to the request and to return the remaining fragments of each target basic language pack to the user terminal. The range of remaining language pack fragment numbers is determined based on the range of initial language pack fragment numbers. The remaining fragments are language pack fragments within the range of remaining fragment numbers in the basic language pack corresponding to the target language identifier. Next, in response to receiving each target basic language pack remaining fragment, a complete basic language pack file is generated based on each target basic language pack remaining fragment and the initial basic language pack file. The complete basic language pack file is cached, and after parsing the complete basic language pack file, the sixth text resource of the complete public interface of the target application is obtained. This sixth text resource is then loaded to display the complete public interface on the user terminal, facilitating the display of the complete functional module interface, delaying the storage space occupation of the complete functional module language pack file, realizing on-demand loading after language pack fragmentation, and improving loading speed.

[0067] In a specific example, the target server belongs to a CDN server cluster. The target server stores the complete base language pack file for the corresponding target language. This complete base language pack file is then fragmented to obtain language pack fragments within the complete fragment sequence range of the base language pack for each target language identifier. The sixth text resource for the complete public interface of the target application may, but is not limited to, include settings, help, logout, and login. Furthermore, the language pack fragments within the complete fragment sequence range of the base language pack for each target language identifier are stored in JSON format.

[0068] The target server stores the complete functional module language pack file corresponding to the target language's functional module identifier. This complete functional module language pack file is then fragmented to obtain language pack fragments within the complete fragment sequence range of each functional module language pack corresponding to the target language identifier. The third-party text resources of the complete functional module interface of the target application may include, but are not limited to, the home (homepage) module, product (product) module, order (order) module, and customer (customer service) module. The above is merely a specific example; in actual applications, it should be flexibly set according to user needs, and no restrictions are imposed here.

[0069] It should be understood that, although Figures 2-4The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 2-4 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0070] Secondly, such as Figure 5 As shown, a language pack setting device is provided, which is applied to a user terminal with a target application installed; the device includes a data acquisition module 510, a language matching module 520, a language pack fragment request module 530, and an interface display module 540.

[0071] The data acquisition module 510 is used to acquire the language setting data of the user terminal; the language setting data includes the system setting language of the user terminal, the language setting priority list of the target application, and the current location of the user terminal; the language matching module 520 is used to generate a language matching request based on the language setting data and send the language matching request to the target server, so that the target server performs language matching according to the language matching request and the preset language matching rules to obtain the target language identifier, and then feeds back the target language identifier to the user terminal; the target server is a server within a preset distance from the current location of the user terminal; the language packet fragment request module 530 is used to respond to the receipt of the target language identifier by, according to the target language identifier, the preset first language packet type, and the preset initial language packet fragment sequence number. The system generates basic language pack fragment requests and sends them to the target server. The target server then matches each target basic language pack fragment according to the requests and sends each target basic language pack fragment back to the user terminal. The first language pack type is the basic language pack type. The target basic language pack fragments are language pack fragments within the initial language pack fragment sequence number range of the basic language pack corresponding to the target language identifier. The interface display module 540, upon receiving each target basic language pack fragment, generates an initial basic language pack file based on each fragment, caches the initial basic language pack file, parses the initial basic language pack file to obtain the first text resource of the initial public interface of the target application, and loads the first text resource to display the initial public interface on the user terminal.

[0072] In one embodiment, the interface display module 540 includes an initial base language pack file generation unit.

[0073] The initial basic language pack file generation unit is used to perform integrity verification on each basic language pack fragment and obtain the integrity verification result; the initial basic language pack file generation unit is used to merge each basic language pack fragment in response to the integrity verification result being successful, to obtain the initial basic language pack file; the initial basic language pack file generation unit is used to return to the step of sending a basic language pack fragment request to the target server in response to the integrity verification result being unsuccessful.

[0074] In one embodiment, the interface display module 540 is further configured to, in response to a trigger operation on a target functional module of the initial public interface, generate a functional module language pack fragment request based on the target language identifier, a preset second language pack type, the functional module identifier of the target functional module, and a preset range of initial functional module pack fragment numbers, and send the functional module language pack fragment request to the target server, so that the target server matches each target functional module language pack fragment according to the functional module language pack fragment request and feeds back each target functional module language pack fragment to the user terminal; the second language pack type is the functional module language pack type; the target functional module language pack fragment is the language pack fragment within the range of initial functional module pack fragment numbers in the functional module language pack corresponding to the target language identifier; the interface display module 640 is further configured to, in response to receiving each target functional module language pack fragment, generate an initial functional module language pack file based on each target functional module language pack fragment, cache the initial functional module language pack file, parse the initial functional module language pack file to obtain the second text resource of the initial functional module interface of the target functional module, and load the second text resource to display the initial functional module interface on the user terminal.

[0075] In one embodiment, the device further includes a language selection module.

[0076] The language selection module is used to check whether the user terminal has cached the initial functional module language pack file in response to a target language selection operation in the target application's language settings interface. In response to the user terminal having cached the initial functional module language pack file, the language selection module generates a functional module language pack remaining fragment request based on the target language identifier, second language pack type, functional module identifier, and the functional module pack remaining fragment sequence number range. This allows the target server to match the remaining fragments of each target functional module language pack according to the remaining fragment request and to return the remaining fragments of each target functional module language pack to the user terminal. The functional module pack remaining fragment sequence number range is rooted in... The initial functional module package fragment number range is used to determine the remaining fragments of the target functional module language package. The remaining fragments of the target functional module language package are the language package fragments within the remaining fragment number range of the functional module package corresponding to the target language identifier. The language selection module is used to respond to the received remaining fragments of each target functional module language package, generate a complete functional module language package file based on the remaining fragments of each target functional module language package and the initial functional module language package file, cache the complete functional module language package file, parse the complete functional module language package file to obtain the third text resource of the complete functional module interface of the target application, and load the third text resource to display the complete functional module interface on the user terminal.

[0077] In one embodiment, the device further includes a version detection module.

[0078] The language selection module is used to respond to the startup operation of the target application, obtain the current version of the language pack file of the complete function module, generate a version check request based on the current version, and send the version check request to the target server so that the target server can check whether there is a version update for the target application, and provide feedback on the application pending update when there is a version update for the target application; the pending update prompt information includes the incremental package fragment address of the target application.

[0079] In one embodiment, the device further includes a version detection module.

[0080] The version detection module receives an update notification, parses it to obtain the incremental package fragment address, generates an incremental package fragment request based on the target language identifier, second language pack type, functional module identifier, and incremental package fragment address, and sends the request to the target server. The target server then matches the incremental language pack fragments of each target functional module according to the request and sends the incremental language pack fragments of each target functional module back to the user terminal. The incremental language pack fragments of each target functional module are the language pack fragments with the incremental package fragment address corresponding to the target language identifier. In response to receiving the incremental language pack fragments of each target functional module, the version detection module generates a complete functional module language pack incremental file based on the fragments, caches the complete functional module language pack incremental file, parses the file to obtain the fourth text resource of the updated complete functional module interface, updates the third text resource to obtain the fifth text resource, and loads the fifth text resource to display the updated complete functional module interface on the user terminal.

[0081] In one embodiment, the language selection module is configured to check whether the user terminal has cached the initial basic language pack file in response to a target language selection operation in the language settings interface of the target application; the language selection module is configured to generate a basic language pack remaining fragment request based on the target language identifier, the first language pack type, and the range of remaining language pack fragment numbers in response to the user terminal having cached the initial basic language pack file, and send the basic language pack remaining fragment request to the target server, so that the target server matches each target basic language pack remaining fragment according to the basic language pack remaining fragment request, and feeds back each target basic language pack remaining fragment to the user terminal. The remaining language pack fragment number range is determined based on the initial language pack fragment number range; the remaining fragments of the target base language pack are the language pack fragments within the remaining fragment number range of the base language pack corresponding to the target language identifier; the language selection module is used to respond to the received remaining fragments of each target base language pack, generate a complete base language pack file based on each remaining fragment of the target base language pack and the initial base language pack file, cache the complete base language pack file, parse the complete base language pack file to obtain the sixth text resource of the complete public interface of the target application, and load the sixth text resource to display the complete public interface on the user terminal.

[0082] Specific limitations regarding the language pack setting device can be found in the limitations of the language pack setting method described above, and will not be repeated here. Each module in the aforementioned language pack setting device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0083] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a language pack setting method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0084] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0085] Thirdly, a computer device is provided, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods described in the above method embodiments.

[0086] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the methods described in the above method embodiments.

[0087] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0088] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0089] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A language pack setting method, the method being applied to a user terminal with a target application installed; the method comprising: Obtain the language settings data of the user terminal; The language setting data includes the system setting language of the user terminal, the language setting priority list of the target application, and the current region of the user terminal; A language matching request is generated based on the language setting data and sent to the target server, so that the target server performs language matching according to the language matching request and the preset language matching rules to obtain the target language identifier and feeds back the target language identifier to the user terminal. The target server is a server within a preset distance from the current location of the user terminal; In response to receiving the target language, a basic language pack fragmentation request is generated based on the target language identifier, a preset first language pack type, and a preset initial language pack fragmentation number range. The basic language pack fragmentation request is then sent to the target server so that the target server matches each target basic language pack fragment according to the basic language pack fragmentation request and feeds back each target basic language pack fragment to the user terminal. The first language pack type is the base language pack type; The target base language pack segment is a language pack segment within the initial language pack segment sequence number range of the base language pack corresponding to the target language identifier; In response to receiving each of the target base language pack fragments, an initial base language pack file is generated based on each of the base language pack fragments, the initial base language pack file is cached, the initial base language pack file is parsed to obtain a first text resource of the initial public interface of the target application, and the first text resource is loaded to display the initial public interface on the user terminal.

2. The method according to claim 1, characterized in that, The step of generating an initial base language pack file based on each of the base language pack fragments includes: The integrity of each of the aforementioned basic language package fragments is verified to obtain the integrity verification results. In response to the integrity verification result being successful, the fragments of each basic language pack are merged to obtain the initial basic language pack file; In response to the integrity verification result being a verification failure, the process returns to the step of sending the basic language pack fragment request to the target server.

3. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation on the target functional module of the initial public interface, a functional module language pack fragmentation request is generated based on the target language identifier, a preset second language pack type, the functional module identifier of the target functional module, and a preset initial functional module pack fragmentation number range. This request is then sent to the target server, enabling the target server to match each target functional module language pack fragment according to the request and to return each target functional module language pack fragment to the user terminal. The second language pack type is the functional module language pack type; the target functional module language pack fragment is the language pack fragment within the initial functional module pack fragmentation number range of the functional module language pack corresponding to the target language identifier. In response to receiving each of the target functional module language pack fragments, an initial functional module language pack file is generated based on each of the target functional module language pack fragments, the initial functional module language pack file is cached, and a second text resource of the initial functional module interface of the target functional module is obtained by parsing the initial functional module language pack file, and the second text resource is loaded to display the initial functional module interface on the user terminal.

4. The method according to claim 3, characterized in that, The method further includes: In response to the selection of the target language in the language settings interface of the target application, check whether the user terminal has cached the initial function module language pack file; In response to the user terminal having cached the initial functional module language pack file, a functional module language pack remaining fragment request is generated based on the target language identifier, the second language pack type, the functional module identifier, and the remaining fragment sequence number range of the functional module pack. This allows the target server to match each target functional module language pack remaining fragment according to the remaining fragment request and to return each target functional module language pack remaining fragment to the user terminal. The remaining fragment sequence number range of the functional module pack is determined based on the initial functional module pack fragment sequence number range. The target functional module language pack remaining fragment is the language pack fragment within the remaining fragment sequence number range of the functional module pack corresponding to the target language identifier. In response to receiving the remaining fragments of each target functional module language pack, a complete functional module language pack file is generated based on the remaining fragments of each target functional module language pack and the initial functional module language pack file. The complete functional module language pack file is cached. After parsing the complete functional module language pack file, a third text resource of the complete functional module interface of the target application is obtained. The third text resource is then loaded to display the complete functional module interface on the user terminal.

5. The method according to claim 4, characterized in that, The method further includes: In response to launching the target application, the current version of the complete functional module language pack file is obtained, a version check request is generated based on the current version, and the version check request is sent to the target server so that the target server checks whether there is a version update for the target application, and provides feedback on the application pending update when there is a version update for the target application; the pending update prompt information includes the incremental package fragment address of the target application.

6. The method according to claim 5, characterized in that, The method further includes: Upon receiving the update notification, the system parses the update notification to obtain the incremental packet fragment address. Based on the target language identifier, the second language pack type, the functional module identifier, and the remaining fragment request for the functional module language pack at the incremental packet fragment address, an incremental packet fragment request is generated. This request is then sent to the target server, enabling the target server to match incremental language pack fragments for each target functional module according to the incremental packet fragment request. The server then feeds back each incremental language pack fragment for the target functional module to the user terminal. The incremental language pack fragment for each target functional module is the language pack fragment at the incremental packet fragment address within the functional module language pack corresponding to the target language identifier. In response to receiving incremental language pack fragments of each target functional module, a complete functional module language pack incremental file is generated based on each incremental language pack fragment. The complete functional module language pack incremental file is cached. After parsing the complete functional module language pack incremental file, a fourth text resource of the updated complete functional module interface is obtained. The third text resource is updated based on the fourth text resource to obtain a fifth text resource. The fifth text resource is then loaded to display the updated complete functional module interface on the user terminal.

7. The method according to claim 1, characterized in that, The method further includes: In response to a selection of the target language in the language settings interface of the target application, check whether the user terminal has cached the initial base language pack file; In response to the user terminal having cached the initial base language pack file, a base language pack remaining fragment request is generated based on the target language identifier, the first language pack type, and the range of remaining language pack fragment numbers. This request is then sent to the target server, enabling the target server to match each target base language pack remaining fragment according to the request and to return each target base language pack remaining fragment to the user terminal. The range of remaining language pack fragment numbers is determined based on the initial language pack fragment number range. The target base language pack remaining fragments are the language pack fragments within the range of remaining language pack fragment numbers in the base language pack corresponding to the target language identifier. In response to receiving the remaining fragments of each of the target base language packs, a complete base language pack file is generated based on the remaining fragments of each of the target base language packs and the initial base language pack file. The complete base language pack file is cached. After parsing the complete base language pack file, a sixth text resource of the complete public interface of the target application is obtained. The sixth text resource is then loaded to display the complete public interface on the user terminal.

8. A language pack setting device, characterized in that, The device is used on a user terminal where the target application is installed; the device includes: The data acquisition module is used to acquire the language setting data of the user terminal; the language setting data includes the system setting language of the user terminal, the language setting priority list of the target application, and the current region of the user terminal; The language matching module is used to generate a language matching request based on the language setting data and send the language matching request to the target server, so that the target server performs language matching according to the language matching request and the preset language matching rules to obtain the target language identifier and feeds back the target language identifier to the user terminal; the target server is a server within a preset distance from the current location of the user terminal; A language pack fragmentation request module is used to, in response to receiving the target language, generate a basic language pack fragmentation request based on the target language identifier, a preset first language pack type, and a preset initial language pack fragmentation number range, and send the basic language pack fragmentation request to the target server, so that the target server matches each target basic language pack fragment according to the basic language pack fragmentation request, and feeds back each target basic language pack fragment to the user terminal; the first language pack type is a basic language pack type; the target basic language pack fragments are language pack fragments within the initial language pack fragmentation number range of the basic language pack corresponding to the target language identifier; The interface display module is used to respond to receiving each of the target base language pack fragments, generate an initial base language pack file according to each of the base language pack fragments, cache the initial base language pack file, parse the initial base language pack file to obtain a first text resource of the initial public interface of the target application, and load the first text resource to display the initial public interface on the user terminal.

9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.