From c6adf164af64b97191429f9df5ab99897a7482d7 Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sat, 28 Sep 2024 10:41:59 +0200 Subject: [PATCH] fix: translate --- locales/en.yml | 2 +- src/tools/phone-parser-and-formatter/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index d09d435a..b9abd177 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -298,7 +298,7 @@ tools: phone-parser-and-formatter: title: Phone parser and formatter - description: Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc. + description: Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc. Forge link to send message in WhatsApp and SMS. ipv4-subnet-calculator: title: IPv4 subnet calculator diff --git a/src/tools/phone-parser-and-formatter/index.ts b/src/tools/phone-parser-and-formatter/index.ts index d3f28867..24ea425e 100644 --- a/src/tools/phone-parser-and-formatter/index.ts +++ b/src/tools/phone-parser-and-formatter/index.ts @@ -1,11 +1,11 @@ import { Phone } from '@vicons/tabler'; import { defineTool } from '../tool'; +import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ - name: 'Phone parser and formatter', + name: translate('tools.phone-parser-and-formatter.title'), path: '/phone-parser-and-formatter', - description: - 'Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc. Forge link to send message in WhatsApp and SMS', + description: translate('tools.phone-parser-and-formatter.description'), keywords: [ 'phone', 'parser',