How to get current selected locale from plugin-i18n in custom field

I am trying to create a custom field, but when I change the locale on the right side, my custom field still shows the same value. I want to use the currently selected locale to set my field to null.

This topic has been created from a Discord post (1290208781371838495) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Having the same issue, have you found a solution? <@307207094828924938>

Discord :frowning_with_open_mouth:

Found a sollution:
import { useQueryParams } from "@strapi/helper-plugin"
Use this to get the current locale from the query params