diff --git a/lib/ajax.php b/lib/ajax.php
index 9be8da82a32dd5b65502e97a5ad64d5f4500a25c..f0d00229240e0828be9ef21cdfae515f3e264d7b 100644
--- a/lib/ajax.php
+++ b/lib/ajax.php
@@ -18,12 +18,19 @@
     QUI::getLocale()->setCurrent($User->getLang());
 }
 
+// @todo dies muss wirklich getestet werden
+// @todo falls sprachen chaos erscheint
+if (defined('QUIQQER_FRONTEND')
+    && isset($_REQUEST['lang'])
+    && (strlen($_REQUEST['lang']) === 2 || strlen($_REQUEST['lang']) === 5)) {
+    QUI::getLocale()->setCurrent($_REQUEST['lang']);
+}
 
 // required ajax files
 $_rf_files = json_decode($_REQUEST['_rf'], true);
 
 if (!is_array($_rf_files)) {
-    $_rf_files = array($_rf_files);
+    $_rf_files = [$_rf_files];
 }
 
 QUI::getAjax();