From 913b52d6eefc1c1c763c03f2e6e54cceae5601ff Mon Sep 17 00:00:00 2001 From: TomNewChao Date: Fri, 26 Jan 2024 11:49:05 +0800 Subject: fix review about mgr/dashboard/frontend:Ceph dashboard supports multiple languages 1.Set the default value of DASHBOARD_FRONTEND_LANGS to 'ALL'. 2.Fix bug about receive the `"ALL"` or `'ALL'`from process.env.DASHBOARD_FRONTEND_LANGS that is not equal 'ALL' in cd.js. 3.When we use the make-dist script to build the front-end UI to release the ceph, we should add DASHBOARD_FRONTEND_LANGS="ALL" to support multiple languages. Signed-off-by: TomNewChao --- make-dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make-dist') diff --git a/make-dist b/make-dist index 0ed52e57364..6fb8609bd8b 100755 --- a/make-dist +++ b/make-dist @@ -140,7 +140,7 @@ build_dashboard_frontend() { echo "Building ceph-dashboard frontend with build:localize script"; # we need to use "--" because so that "--configuration production" # survives accross all scripts redirections inside package.json - npm run build:localize -- --configuration production + DASHBOARD_FRONTEND_LANGS="ALL" npm run build:localize -- --configuration production deactivate cd $CURR_DIR rm -rf $TEMP_DIR -- cgit v1.2.3