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

Composer doesn't support formatting in static mode #2437

Closed
fos7er opened this issue Sep 22, 2023 · 3 comments
Closed

Composer doesn't support formatting in static mode #2437

fos7er opened this issue Sep 22, 2023 · 3 comments

Comments

@fos7er
Copy link

fos7er commented Sep 22, 2023

Environment

Linux, windows or freebsd

Reproduction

https://stackblitz.com/edit/github-at1ynv-hufjge?file=pages%2Findex.vue

Describe the bug

If you use composer like this:
<div v-for="item in tm('array')">
<span>{{ rt(item, ['Alex']) }}</span>
</div>
It works good on dev, but after generate it ignores additional locale parameters. It won't print 'Alex' on production in static mode.
BTW it works fine if you use Named formatting https://kazupon.github.io/vue-i18n/guide/formatting.html#named-formatting

Additional context

No response

Logs

No response

@fos7er fos7er changed the title Composer dosent support formatting in static mode Composer doesn'tsupport formatting in static mode Sep 22, 2023
@fos7er fos7er changed the title Composer doesn'tsupport formatting in static mode Composer doesn't support formatting in static mode Sep 22, 2023
@Luffyyy
Copy link

Luffyyy commented Sep 28, 2023

Having the same issue, did you find a solution?

Copy link
Collaborator

kazupon commented Sep 28, 2023

Thank you for your reporting!

This issue is upstream issue.
so, I'll try to fix this issue.

Copy link
Collaborator

kazupon commented Oct 3, 2023

This issue was fixed by intlify/vue-i18n#1571
Thanks!

@kazupon kazupon closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants