Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question. not an issue #10

Open
MohammedAlrozzi opened this issue Jan 26, 2022 · 1 comment
Open

Question. not an issue #10

MohammedAlrozzi opened this issue Jan 26, 2022 · 1 comment

Comments

@MohammedAlrozzi
Copy link

Thanks for developing this. Although I have no background in coding, I managed to create an Italian version of it and it worked perfectly. This is quite easy for the latin languages. I wonder if there is a way to develop it in Arabic. I know that I have to change the list of words, and the keyboard, but it is not that straight-forward as Arabic is right-to-left language. I appreciate your advice on this.

cheers,
m.

@DeruytterA
Copy link

DeruytterA commented Jan 29, 2022

I am not the original author but I just quickly looked at the code and it seems pretty easy to change it so that it works for right-to-left languages.
I would suggest that you edit the function FillTile on line 55 in the Game.vue file.

There you'll see that the current row gets traversed from left to right to find the first location where there is no current letter.
You could do the same thing but traverse the row from right to left. You can do this for example with an iterator variable that starts at 4 and goes down with each loop until it's at 0.

You can do the same thing for the ClearTile function at line 64. Because otherwise backspace will remove the letters in the wrong places.

I hope this helps you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants