mirror of
https://github.com/dream-num/univer.git
synced 2026-09-24 15:32:18 +08:00
build: fix lodash's globalName (#2651)
* build: fix lodash's globalName * chore(data-validation): update index.ts
This commit is contained in:
@@ -45,7 +45,7 @@ exports.autoExternalizeDependency = function autoExternalizeDependency() {
|
||||
version: '>=1.11.0',
|
||||
},
|
||||
lodash: {
|
||||
global: 'lodash',
|
||||
global: '_',
|
||||
name: 'lodash',
|
||||
version: '>=4.0.0',
|
||||
},
|
||||
|
||||
@@ -74,7 +74,7 @@ export class LocaleService extends Disposable {
|
||||
* t('foo.bar', 'World') => 'Hello World'
|
||||
*/
|
||||
t = (key: string, ...args: string[]): string => {
|
||||
if (!this._locales) throw new Error('Locale not initialized');
|
||||
if (!this._locales) throw new Error('[LocaleService]: Locale not initialized');
|
||||
|
||||
const keys = key.split('.');
|
||||
const resolvedValue = this.resolveKeyPath(this._locales[this._currentLocale], keys);
|
||||
|
||||
@@ -18,24 +18,6 @@ export { UniverDataValidationPlugin } from './plugin';
|
||||
export { DataValidatorRegistryService, DataValidatorRegistryScope } from './services/data-validator-registry.service';
|
||||
export { DataValidationModel } from './models/data-validation-model';
|
||||
|
||||
export type {
|
||||
IRemoveDataValidationCommandParams,
|
||||
IAddDataValidationCommandParams,
|
||||
IRemoveAllDataValidationCommandParams,
|
||||
} from './commands/commands/data-validation.command';
|
||||
|
||||
export {
|
||||
AddDataValidationMutation,
|
||||
RemoveDataValidationMutation,
|
||||
UpdateDataValidationMutation,
|
||||
} from './commands/mutations/data-validation.mutation';
|
||||
|
||||
export type {
|
||||
IAddDataValidationMutationParams,
|
||||
IRemoveDataValidationMutationParams,
|
||||
IUpdateDataValidationMutationParams,
|
||||
} from './commands/mutations/data-validation.mutation';
|
||||
|
||||
export {
|
||||
createDefaultNewRule,
|
||||
getRuleOptions,
|
||||
@@ -66,6 +48,18 @@ export {
|
||||
UpdateDataValidationSettingCommand,
|
||||
RemoveAllDataValidationCommand,
|
||||
removeDataValidationUndoFactory,
|
||||
type IRemoveDataValidationCommandParams,
|
||||
type IAddDataValidationCommandParams,
|
||||
type IRemoveAllDataValidationCommandParams,
|
||||
} from './commands/commands/data-validation.command';
|
||||
|
||||
export {
|
||||
AddDataValidationMutation,
|
||||
RemoveDataValidationMutation,
|
||||
UpdateDataValidationMutation,
|
||||
type IAddDataValidationMutationParams,
|
||||
type IRemoveDataValidationMutationParams,
|
||||
type IUpdateDataValidationMutationParams,
|
||||
} from './commands/mutations/data-validation.mutation';
|
||||
|
||||
// #endregion
|
||||
|
||||
Reference in New Issue
Block a user