Read the original article:How to adapt to multi-language release of third-party apps?
Problem Description
Third-party wearable applications need to support multi-language environments during global deployment.
Background Knowledge
HarmonyOS wearable apps can be developed using two models:
- FA (Feature Ability) model: App name and strings are stored separately in different directories.
- Stage model: Resources are organized under a unified resources directory.
Implementation Steps
1. FA Model
- The application name is stored in the resources directory.
- The application text is stored in the i18n directory as language-specific JSON files.
Example structure:
2. Stage Model
- Localized text is placed entirely in the resources directory, categorized by language region.
Example structure:
Test Results
Multi-language switching is successful when configured correctly using the above folder structure. Text content is automatically displayed in the selected system language.
Limitations or Considerations
- Ensure correct language-region folder naming (e.g., en_US, zh_CN).
- Verify language support in the device settings.
- Validate translations and display format for each locale.


Top comments (0)