@chenchaolong/plugin-trade-compliance-workbench 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { createUniver } from '@univerjs/presets'
2
2
  import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core'
3
+ import zhCN from '@univerjs/preset-sheets-core/locales/zh-CN'
3
4
  import '@univerjs/preset-sheets-core/lib/index.css'
4
5
  import ExcelJS from 'exceljs'
5
6
 
@@ -8,7 +9,7 @@ window.TradeComplianceExcelEditor = {
8
9
  const original = new ExcelJS.Workbook()
9
10
  await original.xlsx.load(base64ToBytes(base64))
10
11
  const snapshot = toUniverSnapshot(original)
11
- const { univer, univerAPI } = createUniver({ presets: [UniverSheetsCorePreset({ container, header: true, toolbar: true, footer: true, formulaBar: true })] })
12
+ const { univer, univerAPI } = createUniver({ locale: 'zhCN', locales: { zhCN }, presets: [UniverSheetsCorePreset({ container, header: true, toolbar: true, footer: true, formulaBar: true })] })
12
13
  univerAPI.createWorkbook(snapshot)
13
14
  return {
14
15
  async save() {