Skip to content

Commit

Permalink
Merge pull request #4 from rimiti/darqs-language_config
Browse files Browse the repository at this point in the history
Darqs language config
  • Loading branch information
rimiti authored Jan 12, 2018
2 parents 4232736 + 44294d5 commit f48b28b
Show file tree
Hide file tree
Showing 4 changed files with 941 additions and 408 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,22 @@ invoice.getInvoice().toPDF().toFile('./invoice.pdf')
});
```

### i18n

To add more language:

```js
import invoiceIt from 'invoice-it';

invoiceIt.configure({
language: {
locales: ['en', 'pl'],
directory: `${__dirname}/path/to/locales`,
defaultLocale: 'en'
}
});
```

## Scripts

Run using npm run <script> command.
Expand Down
Loading

0 comments on commit f48b28b

Please sign in to comment.