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

Add number formatting missing type definition #541

Merged
merged 1 commit into from Jun 18, 2021

Conversation

yannbriancon
Copy link
Contributor

@yannbriancon yannbriancon commented Jun 17, 2021

Fix typing to match usage in examples https://github.com/intlify/vue-i18n-next/blob/master/docs/guide/essentials/number.md

<p>{{ $n(10000, 'currency') }}</p>
<p>{{ $n(10000, 'currency', 'ja-JP') }}</p>
<p>{{ $n(10000, 'currency', 'ja-JP', { useGrouping: false }) }}</p>
<p>{{ $n(987654321, 'currency', { notation: 'compact' }) }}</p>
<p>{{ $n(0.99123, 'percent') }}</p>
<p>{{ $n(0.99123, 'percent', { minimumFractionDigits: 2 }) }}</p>
<p>{{ $n(12.11612345, 'decimal') }}</p>
<p>{{ $n(12145281111, 'decimal', 'ja-JP') }}</p>

Linked issue: #540

@kazupon kazupon added the Type: Documentation A documetation fixes label Jun 18, 2021
@kazupon
Copy link
Member

kazupon commented Jun 18, 2021

@yannbriancon
Thank you for your contribution ✨

Oh, I'd forgotten about that. 😅
Thank you!

@kazupon kazupon merged commit b64ee7c into intlify:master Jun 18, 2021
@yannbriancon yannbriancon deleted the fix/number-formatting-typing branch June 18, 2021 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation A documetation fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants