Unable to change the language of the Terminal

I have been searching for a way to change the language of writing in the Terminal but none worked. The reason all of them didn’t work is that I forgot the password for my admin account and the input language of the terminal is stil Arabic.

I tried entering root through recovery mode to change the language from there…however all of my inputs were identefied as symbols and the terminal couln’t understand me.

I tried to do the same thing through the terminal before logging in, and what I write kept appearing as symbols. also it kept asking me for the password -which i forgotten-.

Is there anyway I can change the language of inputting without logging in?

Note: I changed the language from the log in screen to en, but the terminal kept showing symbols and refused to execute any command without the password entered.

I tried pressing super + space to change the language but it didn’t work.