Skip to content
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
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ The library consists of two modules:

Both modules provide the `best_matching_locale` function.

### Usage

To use `locale-match` in your project, add it to your `Cargo.toml`:

```toml
# Both modules are included by default.
locale-match = "x.y.z"

# Include only the `bcp47` module.
locale-match = { version = "x.y.z", default-features = false, features = ["bcp47"] }

# Include only the `posix` module.
locale-match = { version = "x.y.z", default-features = false, features = ["posix"] }
```

## Examples

### BCP 47
Expand Down