Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucie Daeye committed May 30, 2017
1 parent f923a06 commit b4cdbf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. For change

- put future changes here

- Breaking API change: move language selection from module loading to `compile(language, step)`

# 0.2.1 2017-04-05

- Add Spanish translation (thanks @josek5494)
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ parameter | required? | values | description
---|----|----|---
`version` | required | `v5` | Major OSRM version
`options.hooks.tokenizedInstruction` | optional | `function(instruction)` | A function to change the raw instruction string before tokens are replaced. Useful to inject custom markup for tokens
`options.languages` | optional | `en` `de` `zh-Hans` `fr` `nl` `ru` [`etc`](https://github.com/Project-OSRM/osrm-text-instructions/tree/master/languages/translations/) | Array of language identifiers that should be supported. Default is loading all language files, which can be huge on websites
`language` | required | `en` `de` `zh-Hans` `fr` `nl` `ru` [and more](https://github.com/Project-OSRM/osrm-text-instructions/tree/master/languages/translations/) | Compiling instructions for the selected language code.

### Development
#### Architecture
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var languages = require('./languages');
var instructions = languages.instructions;

module.exports = function(version, _options) {
// load instructions
var options = {};
options.hooks = {};
options.hooks.tokenizedInstruction = ((_options || {}).hooks || {}).tokenizedInstruction;
Expand Down

0 comments on commit b4cdbf5

Please sign in to comment.