Place variable declarations above the blocks and avoid the problem. If you program in any language, you declare the variable first and then use it. By changing the language, you are changing the name of this variable.
Not only the Korean language has this problem. I have noticed this error in my language once, so I stopped using a language other than English in the app inventor to maintain compatibility.
I think only @ewpatton can help here.
As you can see, there is no error. However, the ending of the name global is different. It is "globalną" in the declaration, and "globalna" in blocks.
Maybe there is a problem here and you should not change the word ending in the translation? The change of the ending in Polish occurs when the noun is inflected by cases.
I believe that I have a fix for this issue. I have set up a test server where you can import your projects to test the fix. Please let me know whether or not it works for you.