Multi-language Conversion via Dynamic Template Matching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional methods fail to effectively convert language fields in dynamic data and cannot shield the impact on business logic during webpage language conversion.
Innovation Solution
A multi-language conversion device and method that automatically matches a corresponding multi-language template based on the API type requested by a webpage, enabling dynamic conversion of fields to generate converted data.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If conventional language conversion methods are used, then language conversion can be performed for static data, but dynamic data fields cannot be effectively converted and business logic is impacted
Solution Approach 1:
The patent introduces a language conversion intermediary layer between the data layer and the presentation layer. This intermediary automatically converts language fields in dynamic data based on the user's language preferences without requiring changes to business logic, thus resolving the contradiction between language conversion capability and business logic stability
Solution Approach 2:
The patent segments the language conversion function from the core business logic by extracting it into a separate conversion layer. This segmentation allows language conversion to be performed independently on specific fields (such as converting 'item_name' from English to local language) while leaving the underlying business logic unchanged, thereby maintaining reliability while improving adaptability
2Adaptability or versatility
If language conversion is performed on all data fields, then complete language localization is achieved, but conversion complexity and processing time increase
Solution Approach 1:
The patent applies local quality by selectively converting only specific language fields (such as display names, descriptions, and labels) while leaving other fields (such as item codes, identifiers, and technical parameters) unchanged. This selective approach achieves effective language localization without the complexity of converting all data fields, thus resolving the contradiction between localization completeness and conversion complexity
3Ease of manufacture
If static converted data is used, then language conversion is simple, but dynamic data changes cannot be reflected in real-time
Solution Approach 1:
The patent implements a dynamic language conversion mechanism that automatically adapts to data changes. When dynamic data is updated, the conversion layer automatically re-applies language conversion based on current user preferences, ensuring real-time reflection of changes. This dynamic approach maintains simplicity by using the same conversion logic while improving responsiveness to data updates
Data Source
AI summary
A multi-language conversion device and a multi-language conversion method are provided. The multi-language conversion device includes a storage device and a processor. The storage device is configured to store a multi-language template configuration. The processor is coupled to the storage device and configured to receive a request instruction. The processor obtains aggregated data corresponding to the request instruction according to the request instruction. The processor performs type matching on a calling type and the multi-language template configuration according to the calling type of the request instruction, so as to obtain a corresponding multi-language template. The processor performs multi-language conversion on the aggregated data according to the multi-language template to obtain converted data. The multi-language conversion device and the multi-language conversion method of the disclosure are adapted to automatically perform multi-language conversion according to the corresponding multi-language template.


