mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
14 lines
635 B
Markdown
14 lines
635 B
Markdown
|
`svelte-i18n` provides a command-line interface to extract all your messages to the `stdout` or to a specific JSON file.
|
||
|
|
||
|
```bash
|
||
|
$ svelte-i18n extract [options] <glob-pattern> [output-file]
|
||
|
```
|
||
|
|
||
|
### Options
|
||
|
|
||
|
- `-s, --shallow` - extract all messages to a shallow object, without creating nested objects. Default: `false`.
|
||
|
|
||
|
- `--overwrite` - overwrite the content of the `output` file instead of just appending missing properties. Default: `false`.
|
||
|
|
||
|
- `-c, --configDir` - define the directory of a [`svelte.config.js`](https://github.com/UnwrittenFun/svelte-vscode#generic-setup) in case your svelte components need to be preprocessed.
|