-
Notifications
You must be signed in to change notification settings - Fork 342
Closed
Description
I'm using composition API in some components. The code below is not working when the page loads initially.
setup(props, vm) {
const state = reactive({
routes: [
{
name: vm.root.$i18n.t("titles.overview"),
icon: "overview",
path: { name: "Overview" },
isFor: ["retailer", "consumer"]
},
...
return { ...toRefs(state) };
}
vue-i18n.esm.js?a925:33 [vue-i18n] Cannot translate the value of keypath 'labels.settings'. Use the value of keypath as default.
But there is nothing wrong. In another component, it is working.
<page-heading
:title="$t('titles.overview')"
has-datepicker
show-date
>
</page-heading>
After changing something that causes hot reload (like console.log("x") just before const state,
the sidebar shows the title normally but when the initial load, the text is just titles.blabla
.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels