Kepler.gl3.0设置默认显示中文语言
修改ui-state-updaters.ts文件内容
文件路径
kepler.gl/src/reducers/src/ui-state-updaters.ts
把locale: LOCALE_CODES.en,改成locale: LOCALE_CODES.cn
// An highlighted block
export const INITIAL_UI_STATE: UiState = {
readOnly: false,
activeSidePanel: DEFAULT_ACTIVE_SIDE_PANEL,
currentModal: DEFAULT_MODAL,
datasetKeyToRemove: null,
visibleDropdown: null,
// export image modal ui
exportImage: DEFAULT_EXPORT_IMAGE,
// export data modal ui
exportData: DEFAULT_EXPORT_DATA,
// html export
exportMap: DEFAULT_EXPORT_MAP,
// map control panels
mapControls: DEFAULT_MAP_CONTROLS,
// ui notifications
notifications: DEFAULT_NOTIFICATIONS,
// load files
loadFiles: DEFAULT_LOAD_FILES,
// Locale of the UI
locale: LOCALE_CODES.cn, // 此处改成en改为cn
layerPanelListView: 'list',
filterPanelListView: 'list',
isSidePanelCloseButtonVisible: true
};