Multi-language adaptation method and device of application, client and storage medium
A multi-language, client-side technology, applied in the field of Internet multi-language page display, can solve the multi-language conversion function that the multi-language configuration scheme does not support special character naming, cannot clarify the multi-language conversion function, cannot realize the dynamic call of the initial string, etc. problem, to achieve the effect of improving accuracy
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2020-06-05
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The embodiment of the present invention relates to the field of Internet multilingual page display, and in particular to an application multilingual adaptation method, device, client and storage medium. Background technique
[0002] At present, in response to the design requirements of different pages contained in various native applications under the Internet, Flutter technology can be used to pre-develop sub-applications corresponding to different pages in the native application, and then embed the sub-applications into the native application to achieve Different page design under native application.
[0003] Since the native application is allowed to be configured on terminals in different regions, the native application also supports the optional configuration in multiple languages. At this time, it is required that each sub-application embedded in the native application can also support multilingual configuration, so as to display the content of t...
Examples
Embodiment 1
[0032] Figure 1A It is a flow chart of an application multilingual adaptation method provided by Embodiment 1 of the present invention, and this embodiment is applicable to any situation of performing multilingual adaptation on a sub-application in a native application. An application multilingual adaptation method provided in this embodiment can be executed by an application multilingual adaptation device provided in an embodiment of the present invention. The device can be realized by software and / or hardware, and integrated in the implementation In the client of the method, the client may be a terminal configured with a native application.
[0033] Specifically, refer to Figure 1A , the method may include the following steps:
[0034] S110. When accessing the target sub-application in the native application, determine a character string that requires multi-language adaptation in the target sub-application.
[0035] Specifically, the native application in this embodiment ...
Embodiment 2
[0044] Figure 2A It is a flow chart of an application multilingual adaptation method provided by Embodiment 2 of the present invention, Figure 2B It is a schematic diagram of the principle of multilingual adaptation for each character string in the target sub-application in the method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. Specifically, such as Figure 2A As shown, in this embodiment, a detailed explanation will be given for the process of determining the character strings requiring multi-language adaptation in the target sub-application and the process of multi-language adaptation for each character string.
[0045] optional, such as Figure 2A As shown, the following steps may be included in this embodiment:
[0046] S210. When accessing the target sub-application in the native application, determine a character string that requires multi-language adaptation in the code file of the targ...
Embodiment 3
[0059] Figure 3A It is a flow chart of the multilingual adaptation method for an application provided in Embodiment 3 of the present invention, Figure 3B It is a schematic diagram of the principle of constructing the key-value pair sets of each sub-application under different language codes in the method provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. Specifically, this embodiment explains in detail the specific process of determining the adapted language code of the target sub-application and constructing a set of key-value pairs under different language codes.
[0060] optional, such as Figure 3A As shown, the following steps may be included in this embodiment:
[0061] S310. Pre-configure key-value pair sets of the target sub-application under different language codes according to the code file of the target sub-application.
[0062] Optionally, in order to ensure multilingual adaptation when ...