-
-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
Type: BugBug or Bug fixesBug or Bug fixes
Description
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
Labels
Type: BugBug or Bug fixesBug or Bug fixes