Code multi-language conversion method and device, computer equipment and storage medium

Generating initial common language code through preset code entry processing tools and databases, the problems of complexity and low maintenance efficiency of existing multilingual libraries are solved, and code quality and development efficiency are improved.

CN119292602APending Publication Date: 2025-01-10XIAMEN LENZ COMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411296439.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

When realizing multilingual internationalization, existing multilingual libraries have high development complexity, poor code readability, low maintenance efficiency, and complex troubleshooting.

Method used

The initial language code is obtained through the preset code entry processing tool, generate the code to be uploaded, and generate the initial common language code based on the preset code database, reducing code redundancy and errors, and improving code maintenance and readability.

Benefits of technology

Improves the quality and readability of the code, reduces development complexity, and improves development efficiency and code stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292602A_ABST
    Figure CN119292602A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a multi-language conversion method and device of a code, computer equipment and a storage medium, the method comprises the following steps: obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a to-be-uploaded code; generating an initial universal language code according to the code database and the to-be-uploaded code; and determining the initial universal language code passing the verification as a target universal language code. In this way, the initial language code is obtained through the preset code entry processing tool, and the quality and readability of the code are improved. According to the preset code database and the to-be-uploaded code, the initial universal language code is generated, redundancy and errors of the code are reduced, and maintainability and readability of the code are improved. And the initial universal language code passing the verification is determined as the target universal language code, so that the stability of the code is improved, and the development efficiency is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for multi-language conversion of codes. Background Art

[0002] With the acceleration of globalization, software products need to support multiple languages ​​to meet the needs of users in different countries and regions. At present, front-end web projects mainly rely on some popular JavaScript libraries to achieve multi-language internationalization, such as react-i18next commonly used in React projects, vue-i18n commonly used in Vue.js projects, etc. These libraries enable developers to localize applications to different languages ​​by providing APIs. Although the existing multi-language libraries provide convenience, there are still some problems and challenges in practical applications: developers need to pre-define texts in different language versions, and then call them through key values ​​in business codes, which increases development complexity and time cost; the extensive use of key-value calls in business codes makes the code difficult to understand intuitively, reducing the readability and maintenance efficiency of the code; when locating problematic texts, it is necessary to find and map them to specific content through key values, which increases the complexity of troubleshooting. Therefore, how to optimize the process and maintenance of multi-language support and improve development efficiency has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides a method, apparatus, computer device and storage medium for converting a code into multiple languages ​​to improve development efficiency.

[0004] In a first aspect, the present application provides a method for multi-language conversion of a code, the method comprising: Obtaining the initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; Generate an initial universal language code according to a preset code database and the code to be uploaded; The initial universal language code that passes the verification is determined as the target universal language code.

[0005] Furthermore, before generating the initial universal language code according to the preset code database and the code to be uploaded, the following steps are included: Obtaining a historical code database, and adding a code label to each historical code in the historical code database; Classifying each of the historical codes according to the code label, and translating the classified historical codes into a historical code set in at least one language; Each of the historical code sets is aggregated to generate the preset code database.

[0006] Furthermore, the initial language code is obtained by a preset code entry processing tool, and the initial language code is processed by entry processing to generate a code to be uploaded, including: Determining a local relevant code from a local code library by using the preset code entry processing tool and the initial language code; The code tag of the local related code is packaged with the initial language code to generate the code to be uploaded.

[0007] Further, determining the local relevant code from the local code library by using the preset code entry processing tool and the initial language code includes: Calculate the similarity between the initial language code and each local code in the local code database; A local code whose similarity to the initial language code is less than a preset similarity threshold is determined as the local related code.

[0008] Further, encapsulating the code tag of the local related code with the initial language code to generate the code to be uploaded includes: Based on the code tag, determining a preset entry processing plug-in; A preset packaging function is determined through the preset entry processing plug-in, and the initial language code is packaged based on the packaging function to generate the code to be uploaded.

[0009] Furthermore, after the code tag of the local related code is encapsulated with the initial language code to generate the code to be uploaded, the following steps are included: The packaged code to be uploaded is stored in the local code database and the preset code database respectively.

[0010] Further, determining the verified initial universal language code as a target universal language code includes: Obtaining a platform identifier and a current language identifier of the initial universal language code; In a case where the platform identifier matches the current language identifier, the initial universal language code is determined to be the target universal language code.

[0011] In a second aspect, the present application also provides a device for converting a code into multiple languages, the device comprising: A module for generating codes to be uploaded, used for obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; An initial universal language code generation module, used to generate an initial universal language code according to a preset code database and the code to be uploaded; The target universal language code generating module is used to determine the initial universal language code that passes the verification as the target universal language code.

[0012] In a third aspect, the present application also provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the multi-language conversion method of the code as described above when executing the computer program.

[0013] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the multi-language conversion method of the code as described above.

[0014] The present application discloses a method, device, computer equipment and storage medium for multi-language conversion of codes. The method for multi-language conversion of codes includes obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; generating an initial universal language code based on a preset code database and the code to be uploaded; and determining the initial universal language code that has passed verification as a target universal language code. In the above manner, the present application obtains the initial language code through a preset code entry processing tool to improve the quality and readability of the code. The initial universal language code is generated based on the preset code database and the code to be uploaded, reducing the redundancy and errors of the code and improving the maintainability and readability of the code. The initial universal language code that has passed verification is determined as the target universal language code to improve the stability of the code, thereby improving the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 is a schematic flow chart of a method for converting a code into multiple languages ​​provided in an embodiment of the present application; Figure 2 A schematic block diagram of a multi-language conversion device for a code provided in an embodiment of the present application; Figure 3 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0019] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0020] It should also be understood that the term “and / or” used in the specification and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0021] The embodiments of the present application provide a method, device, computer equipment and storage medium for converting a code into multiple languages. The method for converting a code into multiple languages ​​can be applied to a server, and the initial language code is obtained by a preset code entry processing tool to improve the quality and readability of the code. The initial universal language code is generated based on the preset code database and the code to be uploaded, reducing the redundancy and errors of the code and improving the maintainability and readability of the code. The initial universal language code that has passed the verification is determined as the target universal language code, improving the stability of the code, thereby improving the development efficiency. The server can be an independent server or a server cluster.

[0022] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0023] See also Figure 1 , Figure 1This is a schematic flow chart of a method for converting a code into multiple languages ​​provided in an embodiment of the present application. The method for converting a code into multiple languages ​​can be applied to a server to obtain an initial language code through a preset code entry processing tool to improve the quality and readability of the code. An initial universal language code is generated based on a preset code database and the code to be uploaded, thereby reducing redundancy and errors in the code and improving the maintainability and readability of the code. The initial universal language code that has passed verification is determined as the target universal language code to improve the stability of the code, thereby improving development efficiency.

[0024] like Figure 1 As shown, the multi-language conversion method of the code specifically includes steps S10 to S30.

[0025] Step S10: obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; Step S20: Generate an initial universal language code according to the preset code database and the code to be uploaded; Step S30: Determine the initial universal language code that passes the verification as the target universal language code.

[0026] In one embodiment, a preset code database is established to store, update and retrieve text resources in all languages, provide unified copy management for all end applications, support batch data import and export through Excel, and facilitate professional translators to verify and modify translation data. Professional translation services are integrated. After extracting entries, this translation service can be used to batch translate untranslated entries to improve translation efficiency and quality. Use a version control system to manage internationalized texts and ensure copy tracking and history.

[0027] Extract the code in the original language (usually the native language of the development team, such as Chinese or English) from the existing front-end project. Analyze the text content in the code and identify all text that needs to be internationalized. Use the preset tools to wrap the text content in the code into a word form, such as wrapping "Hello" into t('Hello', '@@Hello'). Store the wrapped words in a local word file for subsequent management and content traceability.

[0028] Replace the wrapped terms with the corresponding key-value pairs in the code to generate the code to be uploaded. Perform syntax and logic checks on the generated code to be uploaded to ensure the correctness and completeness of the code. According to the preset code database, map the terms in the code to be uploaded to the corresponding entries in the database. Based on the mapping results, generate the initial universal language code, which should contain key-value pairs for all languages.

[0029] The present embodiment discloses a method, device, computer equipment and storage medium for multi-language conversion of codes. The method for multi-language conversion of codes includes obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; generating an initial universal language code based on a preset code database and the code to be uploaded; and determining the initial universal language code that has passed verification as a target universal language code. In the above manner, the present application obtains the initial language code through a preset code entry processing tool to improve the quality and readability of the code. The initial universal language code is generated based on the preset code database and the code to be uploaded, reducing the redundancy and errors of the code and improving the maintainability and readability of the code. The initial universal language code that has passed verification is determined as the target universal language code to improve the stability of the code, thereby improving the development efficiency.

[0030] based on Figure 1 In the embodiment shown, in this embodiment, before step S20, the following steps are included: Obtaining a historical code database, and adding a code label to each historical code in the historical code database; Classifying each of the historical codes according to the code label, and translating the classified historical codes into a historical code set in at least one language; Each of the historical code sets is aggregated to generate the preset code database.

[0031] In one embodiment, a historical code database is obtained from a version control system or code repository, which usually includes multiple versions of source code. To prevent data corruption or loss, the obtained historical code database is backed up, and rules for code tags are defined based on the functions, modules or other features of the code.

[0032] Develop or use existing automated tools to add labels to historical codes according to defined rules. For situations that automated tools cannot accurately judge, perform manual review and label addition. Develop classification standards based on business logic, functional modules or other standards, use automated tools to classify historical codes according to code labels, and manually check and adjust the results of automated classification to ensure the accuracy of classification.

[0033] Determine the target languages ​​to be translated into, including at least one language, prepare the resources required for translation, such as dictionaries, translation memories, etc., use machine translation tools or manual translation to translate the classified historical codes into the target language, and proofread the results of the automatic translation to ensure the accuracy and consistency of the translation.

[0034] Define historical code collections in different languages. Each collection contains the translated versions of all historical codes for the same function or module. Aggregate historical codes and their translated versions of the same category to form a complete historical code collection. Design the structure of the preset code database to ensure that the historical codes and all their translated versions can be stored.

[0035] Migrate the aggregated historical code collection to the preset code database, and optimize the preset code database, including index creation, query optimization, etc., to improve access and retrieval efficiency.

[0036] The present embodiment discloses a method, device, computer equipment and storage medium for converting codes into multiple languages. The method for converting codes into multiple languages ​​includes obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; obtaining a historical code database, and adding a code tag to each historical code in the historical code database; classifying each historical code according to the code tag, and translating the classified historical code into a historical code set of at least one language; performing aggregation processing on each historical code set to generate the preset code database; generating an initial universal language code according to the preset code database and the code to be uploaded; and determining the initial universal language code that has passed the verification as the target universal language code. In the above manner, the present application obtains the initial language code through the preset code entry processing tool to improve the quality and readability of the code. Generate the initial universal language code according to the preset code database and the code to be uploaded, reduce the redundancy and errors of the code, and improve the maintainability and readability of the code. Determine the initial universal language code that has passed the verification as the target universal language code, improve the stability of the code, and thus improve the development efficiency.

[0037] based on Figure 1 In the embodiment shown, in this embodiment, step S10 includes: Determining a local relevant code from a local code library by using the preset code entry processing tool and the initial language code; The code tag of the local related code is packaged with the initial language code to generate the code to be uploaded.

[0038] Specifically, select or develop a code entry processing tool suitable for front-end projects, which can recognize and process text content in the code. Configure the tool according to project requirements, including setting the entry wrapping function (such as t('key')), initial text prefix identifier (such as @@), etc.

[0039] Connect to the local code base, use tools or command-line tools to retrieve code files containing text in the original language, analyze the search results, and determine the relevant code files containing text that needs to be internationalized.

[0040] Define the rules for code tags according to the functions, modules or other features of the code, and use automated tools or manual methods to extract code tags from local related codes. Use the preset code entry processing tool to encapsulate the text content in the local related code according to the preset rules, for example, encapsulate the text "Hello" into t('Hello', '@@Hello').

[0041] In a more preferred embodiment, determining the local relevant code from the local code library by using the preset code entry processing tool and the initial language code includes: Calculate the similarity between the initial language code and each local code in the local code database; A local code whose similarity to the initial language code is less than a preset similarity threshold is determined as the local related code.

[0042] Specifically, code label association: associate the extracted code label with the encapsulated terms to ensure that each term has corresponding label information. Replace the encapsulated terms with the local relevant code to generate new code files, which are the codes to be uploaded. Perform syntax and logic checks on the generated codes to be uploaded to ensure the correctness and completeness of the code.

[0043] Test the code to be uploaded in the local environment to ensure that the text can be displayed correctly in a multi-language environment, and conduct code review to ensure that the code to be uploaded meets the project specifications and quality standards.

[0044] In a more preferred embodiment, the code tag of the local related code is packaged with the initial language code to generate the code to be uploaded, including: Based on the code tag, determining a preset entry processing plug-in; A preset packaging function is determined through the preset entry processing plug-in, and the initial language code is packaged based on the packaging function to generate the code to be uploaded.

[0045] In a more preferred embodiment, after the code tag of the local related code is packaged with the initial language code to generate the code to be uploaded, the following steps are included: The packaged code to be uploaded is stored in the local code database and the preset code database respectively.

[0046] Determine the platform for uploading and managing internationalized code and upload the code to be uploaded to the internationalization management platform for further management and translation.

[0047] Based on any of the above embodiments, in this embodiment, step S30 includes: Obtaining a platform identifier and a current language identifier of the initial universal language code; In a case where the platform identifier matches the current language identifier, the initial universal language code is determined to be the target universal language code.

[0048] Specifically, the generated initial universal language code is reviewed in detail to ensure that all entries are correct. The code is tested in different language environments to ensure the correct implementation of multilingual functions.

[0049] See also Figure 2 , Figure 2 The embodiment of the present application provides a schematic block diagram of a device for converting a code into multiple languages, wherein the device for converting a code into multiple languages ​​is used to execute the aforementioned method for converting a code into multiple languages, wherein the device for converting a code into multiple languages ​​can be configured on a server.

[0050] like Figure 2 As shown, the multi-language conversion device 400 of the code includes: The module 410 for generating the code to be uploaded is used to obtain the initial language code through a preset code entry processing tool, and perform entry processing on the initial language code to generate the code to be uploaded; An initial universal language code generating module 420 is used to generate an initial universal language code according to a preset code database and the code to be uploaded; The target universal language code generating module 430 is used to determine the initial universal language code that passes the verification as the target universal language code.

[0051] Furthermore, the multi-language conversion device 400 of the code further includes: A code label adding module is used to obtain a historical code database and add a code label to each historical code in the historical code database; A historical code set generating module, used for classifying each of the historical codes according to the code label, and translating the classified historical codes into a historical code set in at least one language; The preset code database generation module is used to aggregate the historical code sets to generate the preset code database.

[0052] Furthermore, the to-be-uploaded code generation module 410 includes: A local relevant code determination unit, configured to determine a local relevant code from a local code library by using the preset code entry processing tool and the initial language code; The code to be uploaded generating unit is used to encapsulate the code label of the local related code and the initial language code to generate the code to be uploaded.

[0053] Furthermore, the local correlation code determination unit includes: A similarity calculation subunit, used for calculating the similarity between the initial language code and each local code in a local code database; The local relevant code determination subunit is used to determine a local code whose similarity with the initial language code is less than a preset similarity threshold as the local relevant code.

[0054] Furthermore, the code to be uploaded generation unit includes: A preset entry processing plug-in determining subunit, used to determine a preset entry processing plug-in based on the code tag; The code to be uploaded generating subunit is used to determine a preset packaging function through the preset entry processing plug-in, and encapsulate the initial language code based on the packaging function to generate the code to be uploaded.

[0055] Furthermore, the module 410 for generating the code to be uploaded further includes: The code storage unit is used to store the packaged code to be uploaded in the local code database and the preset code database respectively.

[0056] Furthermore, the target universal language code generation module 430 includes: An identification acquisition unit, used to acquire a platform identification and a current language identification of the initial universal language code; The target universal language code generating unit is used to determine that the initial universal language code is the target universal language code when the platform identifier matches the current language identifier.

[0057] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0058] The above-mentioned device can be implemented in the form of a computer program. Figure 3 Runs on the computer device shown.

[0059] See also Figure 3 , Figure 3 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.

[0060] See also Figure 3 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0061] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute a multi-language conversion method of any code.

[0062] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0063] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute the multi-language conversion method of any code.

[0064] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0065] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0066] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps: Obtaining the initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; Generate an initial universal language code according to a preset code database and the code to be uploaded; The initial universal language code that passes the verification is determined as the target universal language code.

[0067] In one embodiment, before generating the initial universal language code according to the preset code database and the code to be uploaded, it is used to implement: Obtaining a historical code database, and adding a code label to each historical code in the historical code database; Classifying each of the historical codes according to the code label, and translating the classified historical codes into a historical code set in at least one language; Each of the historical code sets is aggregated to generate the preset code database.

[0068] In one embodiment, the initial language code is obtained through a preset code entry processing tool, and the initial language code is processed to generate a code to be uploaded, which is used to achieve: Determining a local relevant code from a local code library by using the preset code entry processing tool and the initial language code; The code tag of the local related code is packaged with the initial language code to generate the code to be uploaded.

[0069] In one embodiment, the preset code entry processing tool and the initial language code are used to determine the local relevant code from the local code library to achieve: Calculate the similarity between the initial language code and each local code in the local code database; A local code whose similarity to the initial language code is less than a preset similarity threshold is determined as the local related code.

[0070] In one embodiment, the code tag of the local related code is packaged with the initial language code to generate the code to be uploaded, which is used to implement: Based on the code tag, determining a preset entry processing plug-in; A preset packaging function is determined through the preset entry processing plug-in, and the initial language code is packaged based on the packaging function to generate the code to be uploaded.

[0071] In one embodiment, the code tag of the local related code is packaged with the initial language code to generate the code to be uploaded, which is used to implement: The packaged code to be uploaded is stored in the local code database and the preset code database respectively.

[0072] In one embodiment, the initial universal language code that passes the verification is determined as the target universal language code, so as to implement: Obtaining a platform identifier and a current language identifier of the initial universal language code; In a case where the platform identifier matches the current language identifier, the initial universal language code is determined to be the target universal language code.

[0073] A computer-readable storage medium is also provided in an embodiment of the present application. The computer-readable storage medium stores a computer program. The computer program includes program instructions. The processor executes the program instructions to implement a multi-language conversion method of any code provided in an embodiment of the present application.

[0074] The computer-readable storage medium may be an internal storage unit of the computer device described in the above embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device.

[0075] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for converting a code into multiple languages, characterized in that: include: Obtaining the initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; Generate an initial universal language code according to a preset code database and the code to be uploaded; The initial universal language code that passes the verification is determined as the target universal language code.

2. The multi-language conversion method of code according to claim 1, characterized in that: Before generating the initial universal language code according to the preset code database and the code to be uploaded, the method includes: Obtaining a historical code database, and adding a code label to each historical code in the historical code database; Classifying each of the historical codes according to the code label, and translating the classified historical codes into a historical code set in at least one language; Each of the historical code sets is aggregated to generate the preset code database.

3. The multi-language conversion method of code according to claim 1, characterized in that: The method of obtaining the initial language code by using a preset code entry processing tool and performing entry processing on the initial language code to generate a code to be uploaded includes: Determine the local relevant code from the local code library by using the preset code entry processing tool and the initial language code; The code tag of the local related code is packaged with the initial language code to generate the code to be uploaded.

4. The multi-language conversion method of code according to claim 3, characterized in that: The step of determining the local relevant code from the local code library by using the preset code entry processing tool and the initial language code comprises: Calculate the similarity between the initial language code and each local code in the local code database; A local code whose similarity to the initial language code is less than a preset similarity threshold is determined as the local related code.

5. The multi-language conversion method of code according to claim 3, characterized in that: The step of encapsulating the code tag of the local related code with the initial language code to generate the code to be uploaded includes: Based on the code tag, determining a preset entry processing plug-in; A preset packaging function is determined through the preset entry processing plug-in, and the initial language code is packaged based on the packaging function to generate the code to be uploaded.

6. The method for converting codes into multiple languages ​​according to claim 5, characterized in that: After encapsulating the code tag of the local related code with the initial language code to generate the code to be uploaded, the method includes: The packaged code to be uploaded is stored in the local code database and the preset code database respectively.

7. The method for converting a code into multiple languages ​​according to any one of claims 1 to 6, characterized in that: The step of determining the initial universal language code that passes verification as a target universal language code comprises: Obtaining a platform identifier and a current language identifier of the initial universal language code; In a case where the platform identifier matches the current language identifier, the initial universal language code is determined to be the target universal language code.

8. A multi-language conversion device for codes, characterized in that: include: A module for generating codes to be uploaded, used for obtaining an initial language code through a preset code entry processing tool, and performing entry processing on the initial language code to generate a code to be uploaded; An initial universal language code generation module, used to generate an initial universal language code according to a preset code database and the code to be uploaded; The target universal language code generating module is used to determine the initial universal language code that passes the verification as the target universal language code.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the multi-language conversion method of codes according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to implement the method for converting codes into multiple languages ​​according to any one of claims 1 to 7.