Skip to content

Commit

Permalink
fix typo, adjust rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
genox committed Jan 27, 2024
1 parent 280ffd3 commit 3ce0ff5
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 129 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Translate qwik-speak extracted JSON files using the DeepL API
- Detects source and target languages automatically based on qwikSpeakInline() vite plugin configuration
- Matches the source/target language to the DeepL API language codes as best as possible and tells you if there is no match available
- Preserves dynamic placeholders like `{{name}}` and `{{count}}` withour relying on `preserverFormatting`
- Preserves dynamic placeholders like `{{name}}` and `{{count}}` withour relying on `preserveFormatting`
- Caches each translated string in a local file to avoid unnecessary API calls
- Backups previous translations before writing the new string set
- Shows differences between the previous and the new string set
Expand All @@ -15,7 +15,7 @@

```bash
npm add -D @tegonal/qwik-speak-deepl
yaml add -D @tegonal/qwik-speak-deepl
yarn add -D @tegonal/qwik-speak-deepl
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
"translator"
],
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.11.7",
"@types/yargs": "^17.0.32",
Expand All @@ -46,8 +48,6 @@
"lodash-es": "^4.17.21",
"prettier": "^3.2.4",
"rollup": "^4.9.6",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"ts-command-line-args": "^2.5.1",
"typescript": "^5.3.3"
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import commonjs from 'rollup-plugin-commonjs';
import commonjs from '@rollup/plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import typescript from 'rollup-plugin-typescript2';
import json from "@rollup/plugin-json";

Expand Down
Loading

0 comments on commit 3ce0ff5

Please sign in to comment.