Skip to content

Commit

Permalink
feat: use locales from locale package
Browse files Browse the repository at this point in the history
  • Loading branch information
siam-ese committed Jan 16, 2025
1 parent 9796e13 commit bcf76a7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@laynezh/vite-plugin-lib-assets": "^0.5.21",
"@types/pako": "^2.0.3",
"@types/ws": "^8.5.10",
"@univer-clipsheet-core/locale": "workspace:*",
"@univer-clipsheet-core/scraper": "workspace:*",
"@univer-clipsheet-core/shared": "workspace:*",
"@univer-clipsheet-core/table": "workspace:*",
Expand Down
10 changes: 0 additions & 10 deletions chrome-extension/public/_locales/en/messages.json

This file was deleted.

4 changes: 4 additions & 0 deletions chrome-extension/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import process from 'node:process';
import { defineConfig } from 'vite';
import libAssetsPlugin from '@laynezh/vite-plugin-lib-assets';
import { watchRebuildPlugin } from '@univer-clipsheet/hmr';
import { copyLocalesPlugin } from '@univer-clipsheet-core/locale';
import makeManifestPlugin from './utils/plugins/make-manifest-plugin';

const rootDir = resolve(__dirname);
Expand All @@ -21,6 +22,9 @@ export default defineConfig({
},
},
plugins: [
copyLocalesPlugin({
packageName: '@univer-clipsheet-core/locale',
}),
libAssetsPlugin({
outputPath: outDir,
}),
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcf76a7

Please sign in to comment.