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 69b3c1a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/format-csv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ This package is licensed under [MIT][license] license.
[license]: https://github.com/lingui/js-lingui/blob/main/LICENSE
[linguijs]: https://github.com/lingui/js-lingui
[documentation]: https://lingui.dev
[reference]: https://lingui.dev/ref/loader
[package]: https://www.npmjs.com/package/@lingui/format-csv
[badge-downloads]: https://img.shields.io/npm/dw/@lingui/format-csv.svg
[badge-version]: https://img.shields.io/npm/v/@lingui/format-csv.svg
Expand Down
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 69b3c1a

Please sign in to comment.