Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrii Bodnar <andrii.bodnar@crowdin.com>
  • Loading branch information
timofei-iatsenko and andrii-bodnar committed Mar 20, 2023
1 parent 2a705eb commit 2a07bfd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/format-json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ export type JsonFormatterOptions = {
* @default true
*/
lineNumbers?: boolean

/**
* Different styles how information could be printed.
* Different styles of how information could be printed
*
* @default "lingui"
*/
Expand Down
3 changes: 2 additions & 1 deletion packages/format-json/src/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export type JsonFormatterOptions = {
* @default true
*/
lineNumbers?: boolean

/**
* Different styles how information could be printed.
* Different styles of how information could be printed
*
* @default "lingui"
*/
Expand Down
9 changes: 4 additions & 5 deletions website/docs/ref/conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,9 @@ If `fallbackLocales` is `false` default message or message ID is used instead.

Default: `po`

Format of message catalogs. By default `po` formatter is used. Other formats available as separate packages.
Message catalog format. The `po` formatter is used by default. Other formats are available as separate packages.

```js
// lingui.config.{js,ts}
```js title="lingui.config.{js,ts}"
import { formatter } from "@lingui/format-po"

export default {
Expand All @@ -320,9 +319,9 @@ Official LinguiJS format packages:
- [@lingui/format-json](https://www.npmjs.com/package/@lingui/format-json) Different JSON format
- [@lingui/format-csv](https://www.npmjs.com/package/@lingui/format-csv) CSV format

Please see individual packages readme for configuration parameters.
See the individual packages README for configuration parameters.

Visit [Advanced: Custom Formatter](/guides/custom-formatter.md) to learn how to create custom formatter.
Visit [Advanced: Custom Formatter](/docs/guides/custom-formatter.md) to learn how to create custom formatter.

## locales

Expand Down

0 comments on commit 2a07bfd

Please sign in to comment.