From 263d20d79925389d9a2bfc0f6ff3740f686532fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E6=80=80?= Date: Thu, 18 Apr 2024 14:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=BBWeb=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E9=A2=84=E8=A7=88i18n=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇怀 --- frameworks/bridge/js_frontend/frontend_delegate_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/bridge/js_frontend/frontend_delegate_impl.cpp b/frameworks/bridge/js_frontend/frontend_delegate_impl.cpp index 4c10d9f902e..3be346aab9a 100644 --- a/frameworks/bridge/js_frontend/frontend_delegate_impl.cpp +++ b/frameworks/bridge/js_frontend/frontend_delegate_impl.cpp @@ -220,11 +220,12 @@ void FrontendDelegateImpl::GetConfigurationCommon(const std::string& filePath, s for (const auto& fileName : priorityFileName) { auto fileFullPath = filePath + fileName + std::string(FILE_TYPE_JSON); +#if !defined(PREVIEW) if (filePath.compare(I18N_FOLDER) == 0) { GetAssetFromI18n(fileFullPath, data); continue; } - +#endif std::string content; if (GetAssetContent(fileFullPath, content)) { auto fileData = ParseFileData(content); -- Gitee