message(FATAL_ERROR "Can't find npm.")
endif()
endif()
-set(DASHBOARD_FRONTEND_LANGS "" CACHE STRING
+set(DASHBOARD_FRONTEND_LANGS "ALL" CACHE STRING
"List of comma separated ceph-dashboard frontend languages to build. \
Use value `ALL` to build all languages")
CMAKE_DEPENDENT_OPTION(WITH_MGR_ROOK_CLIENT "Enable the mgr's Rook support" ON
%bcond_with make_check
%bcond_with cmake_verbose_logging
%bcond_without ceph_test_package
-%bcond_without mgr_dashboard_frontend_support_multi_language
%ifarch s390
%bcond_with tcmalloc
%else
%if 0%{?rhel} >= 8
BuildRequires: /usr/bin/pathfix.py
%endif
-%if 0%{with mgr_dashboard_frontend_support_multi_language}
-BuildRequires: npm
-%endif
%description
Ceph is a massively scalable, open-source, distributed storage system that runs
-DSYSTEMD_SYSTEM_UNIT_DIR:PATH=%{_unitdir} \
-DWITH_MANPAGE:BOOL=ON \
-DWITH_PYTHON3:STRING=%{python3_version} \
-%if 0%{with mgr_dashboard_frontend_support_multi_language}
- -DWITH_MGR_DASHBOARD_FRONTEND:BOOL=ON \
- -DDASHBOARD_FRONTEND_LANGS:STRING="cs,de,es,fr,id,it,ja,ko,pl,zh-Hans,zh-Hant,pt" \
- -DWITH_SYSTEM_NPM:BOOL=ON \
-%else
-DWITH_MGR_DASHBOARD_FRONTEND:BOOL=OFF \
-%endif
%if 0%{?suse_version}
-DWITH_RADOSGW_SELECT_PARQUET:BOOL=OFF \
%endif
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
it('should check all available languages', () => {
language.getLanguageBtn().click();
- language.getAllLanguages().should('have.length', 1).should('contain.text', 'English');
+ language.getAllLanguages().should('have.length', 13).should('contain.text', 'English');
});
});