From 64b1ec0fabbf7328a79a20ff58502ebfa80fad8b Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 10 Oct 2024 17:33:13 +0200
Subject: Break up actions into individual files

---
 src/application/actions/ji18n/get.php | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 src/application/actions/ji18n/get.php

(limited to 'src/application/actions/ji18n/get.php')

diff --git a/src/application/actions/ji18n/get.php b/src/application/actions/ji18n/get.php
new file mode 100644
index 0000000..e92b181
--- /dev/null
+++ b/src/application/actions/ji18n/get.php
@@ -0,0 +1,4 @@
+<?php
+
+header("Content-Type: application/javascript; charset=UTF-8");
+echo 'var I18N_MESSAGES = ' . json_encode(i18n_get_message_store(i18n_get_current_locale()), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . ";\n";
-- 
cgit v1.2.3