Skip to content

Doesn't render "%" character #79

@beytarovski

Description

@beytarovski

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions