Skip to content

Localize from object #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Minor changes in readme file
  • Loading branch information
LonelyPrincess committed Jul 9, 2017
commit 56ffb48b72aed1192c95aede9b909c3e941fb32d
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ var myTexts = {
$("[data-localize]").localize(myTexts);
```

The way of referencing the different object properties from the html file is exactly the same as before.
The way of referencing the different object properties from the html file is exactly the same as before. In the following example, the 'p' tag content will be replaced with the value of the 'app.name' property inside our 'myTexts' object:

```html
<!-- The 'p' tag content will be replaced with the value of the 'app.name' property inside our 'myTexts' object -->
<p data-localize="app.name">(text to replace)</p>
```

Expand Down