When you will unlock your bootloader, all your data will be erased.
I suggest you to backup your files before doing anything.
You'll also should search the official chinese ROM installed on your phone on Internet to reinstall it if your have any problems after installing MIUI 12.
You can try to...