Answer the question
In order to leave comments, you need to log in
Translate special characters in JavaScript?
The country uses a double alphabet (Cyrillic and English letters).
Both have special characters. I tried to make it easier for myself to enter / translate these characters.
I decided to use objects for this. A key-value is good as long as one character "spits out" a single character in response.
For example , How can I make sure that when I type "G," (the letter G followed by a comma ), it is treated as one "ғ" (this specific language letter) and returns the value for the same "ғ" from the object?
Answer the question
In order to leave comments, you need to log in
What is the question?
Everything has long been implemented without you. For example: https://www.npmjs.com/package/urlify
store in the key not one letter but two.
const mySuperTranslateMap = {
'Г,': 'ғ'
}
Doesn't work how? Mistakes?
and your submission should only go through if
your form A doesn't show that something like that would be sent, so most likely you get a funny word 'fasle' in response to your ajax, I think you wanted to write 'false'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question