We have to manually pass DASHBOARD_FRONTEND_LANGS to the build command of the
dashboard.
This was a regression introduced in
1a6a8381a55e59a3c5e6b7fbc6c525f0cac2b854.
Fixes: https://tracker.ceph.com/issues/45720
Signed-off-by: Tiago Melo <tmelo@suse.com>
add_npm_command(
OUTPUT "${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend/dist"
- COMMAND npm run build:localize -- ${npm_args}
+ COMMAND DASHBOARD_FRONTEND_LANGS="${DASHBOARD_FRONTEND_LANGS}" npm run build:localize -- ${npm_args}
DEPENDS ${frontend_src} frontend/node_modules
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend
COMMENT "dashboard frontend is being created"