diff --git a/frameworks/bridge/js_frontend/frontend_delegate_impl.cpp b/frameworks/bridge/js_frontend/frontend_delegate_impl.cpp index 4c10d9f902eb48fe41be6b001cb105fc2e46f8f9..3be346aab9a42f21d2380d4931688988b72bdd89 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);