Skip to content

Commit d32fbc9

Browse files
committed
Copyedited changelog and readme
1 parent 3684ed3 commit d32fbc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. For change
33

44
## Master
55

6-
- Added `getBestMatchingLanguage` for determining the best language when it's unknown if the users locale is supported.
6+
- Added `getBestMatchingLanguage` for determining the closest available language. Pass a user locale into this method before passing the return value into `compile`. [#168](https://github.com/Project-OSRM/osrm-text-instructions/pull/168)
77

88
## 0.8.0 2017-10-04
99

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Grammatical cases and other translated strings customization after [Transifex](h
2727
var version = 'v5';
2828
var osrmTextInstructions = require('osrm-text-instructions')(version);
2929

30-
// If you are unsure if the users locale is supported, use `getBestMatchingLanguage` method to find an appropriate language.
31-
var language = osrmTextInstructions.getBestMatchingLanguage('en');
30+
// If you’re unsure if the user’s locale is supported, use `getBestMatchingLanguage` method to find an appropriate language.
31+
var language = osrmTextInstructions.getBestMatchingLanguage('en-US');
3232

3333
response.legs.forEach(function(leg) {
3434
leg.steps.forEach(function(step) {

0 commit comments

Comments
 (0)