mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
Remove extra parenthesis
This commit is contained in:
parent
051c53458f
commit
cec700af53
26
README.md
26
README.md
@ -69,7 +69,7 @@ store.i18n.setLocale('en-US')
|
||||
|
||||
```html
|
||||
<div>
|
||||
{$_('message')}: {$_('messages.success'))}
|
||||
{$_('message')}: {$_('messages.success')}
|
||||
<!-- Message: SUCCESS-->
|
||||
</div>
|
||||
```
|
||||
@ -83,11 +83,11 @@ The current locale is available via `this.store.get().locale`.
|
||||
```html
|
||||
<div>
|
||||
<!-- Named interpolation -->
|
||||
{$_('greeting', { name: 'John' }))}
|
||||
{$_('greeting', { name: 'John' })}
|
||||
<!-- Hello John, how are you?-->
|
||||
|
||||
<!-- List interpolation -->
|
||||
{$_('greetingIndex', ['John']))}
|
||||
{$_('greetingIndex', ['John'])}
|
||||
<!-- Hello John, how are you?-->
|
||||
</div>
|
||||
```
|
||||
@ -96,22 +96,22 @@ The current locale is available via `this.store.get().locale`.
|
||||
|
||||
```html
|
||||
<div>
|
||||
0 {$_.plural('meter', 0))}
|
||||
0 {$_.plural('meter', 0)}
|
||||
<!-- 0 meters -->
|
||||
|
||||
1 {$_.plural('meter', 1))}
|
||||
1 {$_.plural('meter', 1)}
|
||||
<!-- 1 meter -->
|
||||
|
||||
100 {$_.plural('meter', 100))}
|
||||
100 {$_.plural('meter', 100)}
|
||||
<!-- 100 meters -->
|
||||
|
||||
0 {$_.plural('book', 0))}
|
||||
0 {$_.plural('book', 0)}
|
||||
<!-- 0 books -->
|
||||
|
||||
1 {$_.plural('book', 1))}
|
||||
1 {$_.plural('book', 1)}
|
||||
<!-- 1 book -->
|
||||
|
||||
10 {$_.plural('book', 10))}
|
||||
10 {$_.plural('book', 10)}
|
||||
<!-- 10 books -->
|
||||
</div>
|
||||
```
|
||||
@ -120,16 +120,16 @@ The current locale is available via `this.store.get().locale`.
|
||||
|
||||
```html
|
||||
<div>
|
||||
{$_.upper('message'))}
|
||||
{$_.upper('message')}
|
||||
<!-- MESSAGE -->
|
||||
|
||||
{$_.lower('message'))}
|
||||
{$_.lower('message')}
|
||||
<!-- message -->
|
||||
|
||||
{$_.capital('message'))}
|
||||
{$_.capital('message')}
|
||||
<!-- Message -->
|
||||
|
||||
{$_.title('greeting', { name: 'John' }))}
|
||||
{$_.title('greeting', { name: 'John' })}
|
||||
<!-- Hello John, How Are You?-->
|
||||
</div>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user