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

Doesn't render "%" character #79

Closed
beytarovski opened this issue Aug 1, 2020 · 0 comments · Fixed by #80
Closed

Doesn't render "%" character #79

beytarovski opened this issue Aug 1, 2020 · 0 comments · Fixed by #80
Labels
Type: Bug Bug or Bug fixes

Comments

@beytarovski
Copy link

beytarovski commented Aug 1, 2020

vue-18n: v9.0.0.-alpha.11
vue: 3.0.0-rc.5

I use dayjs and i should return my string similar to this:

messages: {
  en: {
    time: {
      future: 'in %s',
    }
  }
}

I call t() in setup() function:

import { useI18n } from 'vue-i18n'

setup () {
  const { t, locale } = useI18n()
  console.log( t('time.future') )
}

However, it returns "in s" instead of "in %s".

I am not sure if it is a bug or a feature. How can we fix this?

@kazupon kazupon added the Type: Bug Bug or Bug fixes label Aug 3, 2020
kazupon added a commit that referenced this issue Aug 5, 2020
@kazupon kazupon mentioned this issue Aug 5, 2020
kazupon added a commit that referenced this issue Aug 5, 2020
* fix modulo case

closes #79

* remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants