How to get current variant culture in Tiptap extension?

Think this issue might be related to the one I am battling with: