1diff --git a/src/core/api/CMakeLists.txt b/src/core/api/CMakeLists.txt
2index dbe881ecf..9ba6ceffe 100644
3--- a/src/core/api/CMakeLists.txt
4+++ b/src/core/api/CMakeLists.txt
5@@ -214,7 +214,7 @@ if(QT_FEATURE_framework)
6 )
7
8 else()
9- set(locale_install_path "${INSTALL_TRANSLATIONSDIR}/qtwebengine_locales")
10+ set(locale_install_path "${INSTALL_DATADIR}/qtwebengine_locales")
11 install(FILES ${localeFiles}
12 DESTINATION ${locale_install_path}
13 CONFIGURATIONS ${config}
14diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp
15index ef88a59b8..d63de34c8 100644
16--- a/src/core/web_engine_library_info.cpp
17+++ b/src/core/web_engine_library_info.cpp
18@@ -198,7 +198,8 @@ QString localesPath()
19 candidatePaths << getResourcesPath(frameworkBundle()) % QDir::separator()
20 % "qtwebengine_locales"_L1;
21 #endif
22- candidatePaths << QLibraryInfo::path(QLibraryInfo::TranslationsPath) % QDir::separator()
23+ // Nixpkgs: match the changes made in CMakeLists.txt
24+ candidatePaths << QLibraryInfo::path(QLibraryInfo::DataPath) % QDir::separator()
25 % "qtwebengine_locales"_L1;
26 candidatePaths << fallbackDir();
27 } else {