As everyone knows, Computer is created based on English language. Other Languages are involved later. There are some issues when working on an application which is used in Non English languages like Persian language which is my Native language.
One of the small issues is about numbers. When a system user enters numbers by keyboard, saving characters will be different based on keyboard layout configuration. Therefore, texts displayed on your application will in good format if all of numbers are displayed in English or Persian format.
I have had this problem all the times. The simple way to solve this is just converting Array of numbers in two language format together. Take below Ruby code as an example.
This issue appears on every project. Therefore, I made a simple gem called nums2fa to do it more easily.
Previous code is rewritten below With nums2fa