How to get locale code from translations interface

I have json field used inside translations interface as interface that reqires locale code to know in which localized form im working, but i cant find any info about that. Best option i have found right now is to do hacky extraction from span that has value, but its not reliable.