I have code and want to change language on click, there is code:
// define('APP_LANG', 'en');
// setlocale(LC_ALL, 'en_EN');
define('APP_LANG', 'ka');
setlocale(LC_ALL, 'en_EN');
// define('APP_LANG', 'fr');
// setlocale(LC_ALL, 'fr_FR');
I want to change app_lang and setLocale on click.
How can I do that with also html toggle button?