Abstract
In this paper, we design a cross-platform minority language translation system based on HTML5, combining CSS, JavaScript, and other modern web development techniques. By leveraging the Alibaba open-source framework Weex, the system achieves cross-platform operation from a single codebase. We designed an Entry database using MySQL to facilitate two-way translation between minority languages and Chinese. This system aims to solve communication barriers in ethnic minority areas and support language enthusiasts through a practical, high-performance application.
Introduction
China is a multi-ethnic nation characterized by a vast array of minority languages. Despite this diversity, traditional translation work remains largely manual, laborious, and slow. For tourists, residents, and language enthusiasts, the lack of real-time digital tools creates significant social and economic barriers.
Technically, developing separate native applications for iOS and Android is resource-intensive. While standard Web Apps offer cross-platform compatibility, they often suffer from poor performance and limited access to local device hardware. This research addresses the need for a high-performance, low-cost, and easily maintainable translation system that operates seamlessly across all mobile ecosystems.
System Architecture and Methodology
The proposed system utilizes a Browser/Server (B/S) model to ensure centralized data management and broad accessibility. The core of the technical stack is the Weex framework, which bridges the gap between web flexibility and native performance.
The Weex Framework
Unlike standard hybrid applications that run inside a mobile browser (WebView), Weex allows developers to write code in HTML, CSS, and JavaScript, which is then converted into a "JS Bundle." This bundle is executed by a native rendering engine on the device. This approach provides the execution speed of a native app while maintaining the development efficiency of the web.
Frontend and Backend Integration
The system employs Vue.js for its frontend, utilizing responsive data-binding to ensure the user interface remains synchronized with underlying data models without manual DOM manipulation. The backend is supported by a MySQL database that manages the translation entries.
Key Features and Implementation
To ensure practical utility, the system integrates several advanced modules:
- Multi-Modal Input: Users can interact with the system via manual text entry, voice input, and camera-based image recognition (OCR). These features are handled through third-party APIs and local device drivers.
- Crowdsourced Lexicography: Recognizing that minority languages are dynamic, the system adopts a "Universal Participation" model. Users can submit new entries or corrections, which are audited by administrators before being added to the official MySQL database. This ensures the lexicon grows organically and remains accurate.
- Cultural Integration: Beyond utility, the app includes a "Folk Culture Push" module, serving as a portal for news and tourism resources related to minority regions.
Results and Discussion
The research successfully realized a system that maintains a single source code while deploying to Web, Android, and iOS. By utilizing the Weex SDK, the system achieves native-level rendering and interaction, which is critical for real-time features like voice and camera recognition. The two-way translation (Chinese to Minority Language and vice versa) effectively addresses the identified communication gaps.
Conclusion and Future Work
While the current architecture is robust, future iterations will explore offline translation capabilities to support users in remote areas with limited internet connectivity. Additionally, as mobile operating systems evolve, maintaining the compatibility of local device drivers for OCR and voice recognition will be a priority. Future research could also provide quantitative evaluations, such as BLEU scores, to benchmark translation accuracy against existing machine translation frameworks.
Summary updated