Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add info about TS based config #943

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/ref/conf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Configuration is read from 3 different sources (the first found wins):
- from ``lingui`` section in ``package.json``
- from ``.linguirc``
- from ``lingui.config.js``
- from ``lingui.config.ts`` _(since 3.4.0)_

You can also define environment variable ``LINGUI_CONFIG`` with path to your config file.

In the case of TypeScript based config you can use ESM format and `export default`.

Default config:

Expand Down