Pseudo-Localization Testing for UI Mirroring
Application Scenario
The pseudo-localization testing for UI mirroring aims to check whether the text reading direction is correct. In some languages, the text is not read from left to right. For example, in Arabic, text is read from right to left.
Test Process
-
Switch to the target locale for pseudo-localization testing, for example, ar-XB.
NOTE
The setSystemLanguage API is a system API and needs to be called by the system applications. Once the target locale is successfully set, non-system applications can then perform pseudo-localization testing.
import { i18n } from '@kit.LocalizationKit'; i18n.System.setSystemLanguage('ar-XB'); -
Traverse the applications to be tested.
Test Item
-
Check whether the UI layout, text direction, and control logic comply with the reading habit of the target locale. For details, see UI Mirroring.
-
Check whether related functions are normal.