diff --git a/locales/en.yml b/locales/en.yml index 4982dc53..385e019b 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -1,3 +1,4 @@ home: categories: - newestTools: "Newest tools" + newestTools: Newest tools + diff --git a/src/layouts/tool.layout.vue b/src/layouts/tool.layout.vue index bdbb8695..aa808f1c 100644 --- a/src/layouts/tool.layout.vue +++ b/src/layouts/tool.layout.vue @@ -23,6 +23,11 @@ const head = computed(() => ({ ], })); useHead(head); +const { t } = useI18n(); + +const i18nKey = computed(() => route.path.trim().replace('/', '')); +const toolTitle = computed(() => t(`tools.${i18nKey.value}.title`, String(route.meta.name))); +const toolDescription = computed(() => t(`tools.${i18nKey.value}.description`, String(route.meta.description)));