Some checks failed
📦 Build / build (push) Has been cancelled
🧪 CI Test / test shard (1/4) (push) Has been cancelled
🧪 CI Test / test shard (2/4) (push) Has been cancelled
🧪 CI Test / test shard (3/4) (push) Has been cancelled
🧪 CI Test / test shard (4/4) (push) Has been cancelled
🧪 CI Test / test (push) Has been cancelled
🧪 CI Test / eslint (push) Has been cancelled
🧪 CI Test / typecheck (push) Has been cancelled
🔫 Sync to Pro / dispatch-sync (push) Has been cancelled
🔮 Sync Mirror / sync (push) Has been cancelled
42 lines
1.4 KiB
Markdown
42 lines
1.4 KiB
Markdown
# @univerjs/find-replace
|
|
|
|
[](https://npmjs.com/package/@univerjs/find-replace)
|
|
[](https://npmjs.com/package/@univerjs/find-replace)
|
|
[](https://npmjs.com/package/@univerjs/find-replace)
|
|
|
|
`@univerjs/find-replace` provides shared find and replace services and UI infrastructure that product-specific packages can extend.
|
|
|
|
## Package Overview
|
|
|
|
| Package | UMD global | CSS | Locales | Facade entry |
|
|
| --- | --- | :---: | :---: | :---: |
|
|
| `@univerjs/find-replace` | `UniverFindReplace` | Yes | Yes | No |
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pnpm add @univerjs/find-replace
|
|
# or
|
|
npm install @univerjs/find-replace
|
|
```
|
|
|
|
Keep all `@univerjs/*` packages on the same version.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import '@univerjs/find-replace/lib/index.css';
|
|
import EnUS from '@univerjs/find-replace/locale/en-US';
|
|
import { UniverFindReplacePlugin } from '@univerjs/find-replace';
|
|
|
|
univer.registerPlugin(UniverFindReplacePlugin);
|
|
|
|
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://docs.univer.ai)
|
|
- [NPM package](https://npmjs.com/package/@univerjs/find-replace)
|
|
- [GitHub repository](https://github.com/dream-num/univer)
|