@lokse/plugin-prettier

Plugin used to format output translations file using Prettier.

Installation

$ yarn add -D @lokse/plugin-prettier

Usage

Add it into plugins section of lokse config

{
    "plugins": ["@lokse/plugin-prettier"]
}

If you have Prettier config in your project it will be automatically loaded, otherwise default prettier config is used. The file where translations are outputed into is then formatted with Prettier.

Prettier plugin currently supports only JSON output format. If you need other format, please make a Feature request or better implement it and make pull request 🙂

Options

Plugin has no configuration options.