AJAX Mail Translation problem

If that’s the culprit, could you source the language file in the route?

E.g.

$file = $this->roots()->languages() . DS . $_POST["lang"] . '.php';
// load the file if it exists
if(file_exists($file)) include_once($file);
1 Like