Skip to content

Commit

Permalink
chore: add missing supported languages (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
olebedev authored Nov 6, 2023
1 parent 368ad26 commit 86e97da
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- drop me a line **next wednesday at 2:25 p.m**
- it could be done at **11 am past tuesday**

Check [EN](https://github.com/olebedev/when/blob/master/rules/en), [RU](https://github.com/olebedev/when/blob/master/rules/ru) and [BR](https://github.com/olebedev/when/blob/master/rules/br) rules and tests for them, for more examples.
Check [EN](https://github.com/olebedev/when/blob/master/rules/en) rules and tests of them, for more examples.

**Needed rule not found?**
Open [an issue](https://github.com/olebedev/when/issues/new) with the case and it will be added asap.
Expand All @@ -29,6 +29,14 @@ So, we have a cluster of matched rules - `"next wednesday at 2:25 p.m."` in the

After that, each rule is applied to the context. In order of definition or in match order, if [`options.MatchByOrder`](https://github.com/olebedev/when/blob/master/when.go#L141-L144) is set to `true`(which it is by default). Each rule could be applied with given merge strategy. By default, it's an [Override](https://github.com/olebedev/when/blob/master/rules/rules.go#L13) strategy. The other strategies are not implemented yet in the rules. **Pull requests are welcome.**

### Supported Languages

- [EN](https://github.com/olebedev/when/blob/master/rules/en) - English
- [RU](https://github.com/olebedev/when/blob/master/rules/ru) - Russian
- [BR](https://github.com/olebedev/when/blob/master/rules/br) - Brazilian Portuguese
- [ZH](https://github.com/olebedev/when/blob/master/rules/zh) - Chinese
- [NL](https://github.com/olebedev/when/blob/master/rules/nl) - Dutch

### Install

The project follows the official [release workflow](https://go.dev/doc/modules/release-workflow). It is recommended to refer to this resource for detailed information on the process.
Expand Down Expand Up @@ -99,12 +107,6 @@ fmt.Printf(r.Time.String())

The project is in a more-or-less complete state. It's used for one project already. Bugs will be fixed as soon as they will be found.

### Supported Languages

- English
- Russian
- Brazilian Portuguese (#18)

### TODO

- [ ] readme: describe all the existing rules
Expand Down

0 comments on commit 86e97da

Please sign in to comment.