Change language of texts in Previewer in DevEco

106 Views Asked by At

How do we change the language of the texts in the previewer ? Its Chinese for me at present and if I try to change it by Preview -> Language -> Select Language (eng_US) then I find a timeout error each time. PLease help me here.

Error Code after i change language:

enter image description here

2

There are 2 best solutions below

0
On BEST ANSWER

If it's just language, what you did should fix it. Please check to see if the previewer is up-to-date:

enter image description here

Also, there are some previews that are not supported, please check out Previewer's details: https://developer.harmonyos.com/en/docs/documentation/doc-guides/previewer-0000001054328973

Previewer FAQ: https://developer.harmonyos.com/en/docs/documentation/doc-guides/faq-previewer-operating-0000001056617760

If the error still exists, please share the error log for further investigation.

1
On

Or you could just hardcode the text and ignore the warnings Eg: In this line -> ohos:text="$string:entry_MainAbility" Change the content between the "" into whatever you like

Say like ohos:text="Hello Rohan"