c6e2e001创建于 2024年5月24日历史提交

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

  1. Switch to the target locale for pseudo-localization testing, for example, ar-XB.

    You can switch the locale through the code (system permission required):

    import { i18n } from '@kit.LocalizationKit';
    i18n.System.setSystemLanguage('ar-XB')
    
  2. Traverse the applications to be tested.

Test Item

  1. Check whether the UI layout, text direction, and UI control logic comply with the reading habit of the target locale. For details, see UI Mirroring.

  2. Check whether related functions are normal.