Skip to content
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

Added interpolateSelector option #16

Merged
merged 2 commits into from
Dec 6, 2017
Merged

Conversation

alvarotrigo
Copy link
Contributor

Fixing problems reported in https://github.com/claudetech/node-static-i18n/issues and #15

It allows to do something like:

<div data-t-interpolate data-t>
    {{Download}} <a href="whate">whatever</a> {{file}}
</div>

As well as use indentation such as

<div data-t-interpolate data-t>
    {{Download}} 
</div>

Or translating text without direct wrapper:

<div class="demo" data-t-interpolate>
    <div class="loading"></div>
    {{My text here}}
</div>

Fixing problems reported in https://github.com/claudetech/node-static-i18n/issues and  claudetech#15

It allows to do something like:

```html
<div data-t-interpolate data-t>
    {{Download}} <a href="whate">whatever</a> {{file}}
</div>
```

As well as use indentation such as 
```html 
<div data-t-interpolate data-t>
    {{Download}} 
</div>
```

Or translating text without direct wrapper:

```html
<div class="demo" data-t-interpolate>
    <div class="loading"></div>
    {{My text here}}
</div>
```
Copy link
Contributor Author

@alvarotrigo alvarotrigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fixed typo

@danhper danhper merged commit ad91ad3 into claudetech:master Dec 6, 2017
@danhper
Copy link
Member

danhper commented Dec 6, 2017

Great, thank you!

@danhper
Copy link
Member

danhper commented Dec 6, 2017

I just published a new version to npm, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants