Translate website in other languages using PHP, ajex, jQuery, JavaScript

  Kiến thức lập trình

I have a dynamic website in which I want a drop-down in my website with 15 languages options, when I click an option my website should be translate in that language.

According to my research their are two ways to do this task first is using APIs which are paid I don’t want to go for that and second way is we create a function in JS and store my complete webpage content in all languages in variables or array and than that variable will call on drop down options this way is too much length and complicated.

Is their any other why which will be easy and free to translate my website? Any function or logic ?

New contributor

Shabhi Naqvi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT