Skip to content

Commit 1c6af4d

Browse files
committed
fix(#621): update config options and validator docs
1 parent 032601c commit 1c6af4d

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

docs/docs/getting-started/config-options.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ translocoConfig({
106106
```
107107

108108
### `interpolation`
109-
The start and end markings for parameters: (defaults to `['{{', '}}']`)
109+
The start and end markings for parameters and forbidden characters for parameter names: (defaults to `['{{', '}}', '{}']`)
110110
```ts
111111
translocoConfig({
112112
// This will enable you to specify parameters as such: `"Hello <<<value>>>"`
113-
interpolation: ['<<<', '>>>']
113+
interpolation: ['<<<', '>>>', '<>']
114114
})
115115
```

docs/docs/tools/validator.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,20 @@ This package provides validation for translation files. It validates that the JS
1919
}
2020
},
2121
"lint-staged": {
22-
"src/assets/i18n/*.json": ["transloco-validator"]
22+
"src/assets/i18n/*.json": ["transloco-validator [options]"]
2323
}
2424
}
2525
```
2626

2727
This will make sure no one accidentally pushes an invalid translation file.
28+
29+
30+
### Options
31+
32+
#### Interpolation forbidden characters for parameter names.
33+
34+
- `--interpolationForbiddenChars`
35+
36+
`type`: `string`
37+
38+
`default`: `{}`

0 commit comments

Comments
 (0)