Skip to content

Commit

Permalink
adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
tikiatua committed Jan 9, 2018
1 parent e412a7c commit f6f31fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,22 @@ <h2>Render list with translations and options</h2>
<p>Second item of list {{$t('listing')}}
</div>

<h2>Render translation with pluralization</h2>
<h2>Render translation with pluralization (specified with :::)</h2>
<div class="block">
Number of Blocks: <input type="text" v-model.number="count">
<p>
{{ $t('plural', {count: count}, count) }}
</p>
</div>

<h2>Render translation with pluralization (specified as array)</h2>
<div class="block">
Number of Blocks: <input type="text" v-model.number="count">
<p>
{{ $t('plural_from_array', {count: count}, count) }}
</p>
</div>

<h2>Use default values and identifier keys</h2>
<div class="block">
<strong>Show the specified default value if the key does not exist in the current and the fallback locale:</strong><br />
Expand Down Expand Up @@ -253,6 +261,7 @@ <h2>Load missing translations asynchronously</h2>
'option2': 'test2'
},
'plural': 'We have one block ::: We have {count} blocks ::: We have no blocks',
'plural_from_array': ['We have one block', 'We have {count} blocks', 'We have no blocks'],
'pluralization_singular': 'We have one block',
'pluralization_plural': 'We have {count} blocks',
'pluralization_none': 'We have no blocks'
Expand Down

0 comments on commit f6f31fa

Please sign in to comment.