中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
当对朗读内容进行标注时,须对标注字符串进行多语种翻译,具体支持的语种和应用本身界面支持的语种保持一致。若采用多个字符串进行朗读内容的拼接,需考虑多语种的情况,避免拼接后朗读错误,例如阿拉伯语从右到左。
@Component export struct Rule_2_1_16 { title: string = 'Rule 2.1.16' private multilingual: string = 'It is convenient: 屏幕朗读已开启 and use' build() { NavDestination() { Column() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center, }) { Row() { Text(this.multilingual) .fontSize(30) .fontColor(Color.Blue) } .width('80%') } .width('100%') .height('100%') .backgroundColor(Color.White) } }.title(this.title) } }
本文主要引用官方文档材料基API 12 Release
微信扫码分享