From f13a08ca6d2f4e975ef6e4299d266f40a9bff5dc Mon Sep 17 00:00:00 2001
From: 1zumii <524123601@qq.com>
Date: Tue, 5 Mar 2024 11:11:51 +0800
Subject: [PATCH] =?UTF-8?q?fix(plugin-locale):=20=E4=BF=AE=E5=A4=8D=20win?=
 =?UTF-8?q?=20=E7=8E=AF=E5=A2=83=E5=A4=84=E7=90=86=E6=96=87=E4=BB=B6?=
 =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 packages/fes-plugin-locale/src/utils/index.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/packages/fes-plugin-locale/src/utils/index.js b/packages/fes-plugin-locale/src/utils/index.js
index e80bde1d..1f2f0e32 100644
--- a/packages/fes-plugin-locale/src/utils/index.js
+++ b/packages/fes-plugin-locale/src/utils/index.js
@@ -23,11 +23,9 @@ export function getLocales(cwd) {
 
 export function getLocalesJSON(cwd) {
     const locales = getLocales(cwd);
-    return JSON.stringify(locales, null, 2)
+    return JSON.stringify(locales)
         .replace(
             /"message": ("(.+?)")/g,
             (global, m1, m2) => `"message": ${m2.replace(/\^/g, '"')}`
-        )
-        .replace(/\\r\\n/g, '\r\n')
-        .replace(/\\n/g, '\r\n');
+        );
 }