Skip to content

Commit

Permalink
Merge pull request #1 from sergey-dryabzhinsky/update-examples-docs-o…
Browse files Browse the repository at this point in the history
…pt-change-lang-locale

Fix js error: 'locale' property not defined
  • Loading branch information
hcodes authored Mar 14, 2017
2 parents 446ff6e + 8da9480 commit 7b25eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
...
<input type="text" val=""/>
<script>
$('input').autotypograf({lang: 'ru'});
$('input').autotypograf({locale: ['ru', 'en-US']});
</script>
```

Expand All @@ -21,7 +21,7 @@
...
<input type="text" val="" id="text" />
<script>
autotypograf(document.getElementById('text'), {lang: 'ru'});
autotypograf(document.getElementById('text'), {locale: ['ru', 'en-US']});
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion example.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>Типографика на лету</h1>

$(document).ready(function() {
textarea.autotypograf({
lang: 'ru'
locale: ['ru', 'en-US']
});
})

Expand Down

0 comments on commit 7b25eed

Please sign in to comment.