I think the fundamental problem is you have two applications, the primary application and google translate altering the application state of the primary application at the same time, without any possible communication between the two regarding locking or alterations or anything.
I'm pretty sure most applications in the history of computing would not fare any better if you constructed that situation.
I'm pretty sure most applications in the history of computing would not fare any better if you constructed that situation.