Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: fix i18n in example (#1887)
白熱673be3dd5e9c
diff --git a/eslint.config.js b/eslint.config.jsindex 34b48a463b..007cc2a4a0 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -25,6 +25,7 @@ export default antfu({files: ['**/*.ts', '**/*.tsx'],ignores: ['packages/engine-render/src/components/docs/**/*.ts',+ '**/*.tsx','**/*.d.ts','**/vite.config.ts','playwright.config.ts',diff --git a/examples/src/sheets/locales.ts b/examples/src/sheets/locales.tsindex 5d5d80a821..8a98f07d1d 100644--- a/examples/src/sheets/locales.ts+++ b/examples/src/sheets/locales.ts@@ -14,25 +14,29 @@* limitations under the License.*/-import { LocaleType } from '@univerjs/core';+import { LocaleType, Tools } from '@univerjs/core';import { enUS as UniverDesignEnUS } from '@univerjs/design';import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';import { enUS as UniverSheetsEnUS } from '@univerjs/sheets';import { enUS as UniverSheetsUIEnUS } from '@univerjs/sheets-ui';+import { enUS as UniverFindReplaceEnUS } from '@univerjs/find-replace';import { enUS as UniverSheetsFormulaEnUS } from '@univerjs/sheets-formula';import { enUS as UniverSheetsDataValidationEnUS } from '@univerjs/sheets-data-validation';import { enUS as UniverSheetsConditionalFormattingUIEnUS } from '@univerjs/sheets-conditional-formatting-ui';+import { enUS as UniverSheetsZenEditorEnUS } from '@univerjs/sheets-zen-editor';import { enUS as UniverUiEnUS } from '@univerjs/ui';export const locales = {- [LocaleType.EN_US]: {- ...UniverSheetsEnUS,- ...UniverDocsUIEnUS,- ...UniverSheetsUIEnUS,- ...UniverSheetsFormulaEnUS,- ...UniverSheetsDataValidationEnUS,- ...UniverSheetsConditionalFormattingUIEnUS,- ...UniverUiEnUS,- ...UniverDesignEnUS,- },+ [LocaleType.EN_US]: Tools.deepMerge(+ UniverSheetsEnUS,+ UniverDocsUIEnUS,+ UniverFindReplaceEnUS,+ UniverSheetsUIEnUS,+ UniverSheetsFormulaEnUS,+ UniverSheetsDataValidationEnUS,+ UniverSheetsConditionalFormattingUIEnUS,+ UniverSheetsZenEditorEnUS,+ UniverUiEnUS,+ UniverDesignEnUS+ ),};