How to check windows language?

I have seen topic:
In my case it returns error:

How to check windows language?

I have seen topic:
In my case it returns error:

@idol
show full expression which you write in Assign Activity.
Hi @idol ,
Could you let us know what is the error message received ?
Hello @idol,
Your shared post’s code worked for me.
strLanguge = InputLanguage.CurrentInputLanguage.Culture.Name
![]()
Can you share the error?
Regards
Ömer
InputLanguage.CurrentInputLanguage.LayoutName

Declaring InputLanguage is not helping…
@idol ,
Could you check with the below :
System.Windows.Forms.InputLanguage.CurrentInputLanguage.LayoutName
Hello @idol,
I checked your shared post’s, it says you need to import System.Windows.Forms. Do you have it? Kindly check please.
Regards
Ömer
Can you try like in @supermanPunch 's post.
Regard
Ömer
@idol
Try this one:
@idol
Second One:
Thanks. It works ![]()
@idol Welcome. Happy Automation