From 2c5972023f884d7dc9ef767edccb4ac60727a53d Mon Sep 17 00:00:00 2001 From: Bhavesh Kshatriya Date: Wed, 16 Jul 2025 00:20:01 +0530 Subject: [PATCH] fix: add JSON comparison translations --- public/locales/en/json.json | 5 +++++ public/locales/hi/json.json | 5 +++++ src/pages/tools/json/json-comparison/meta.ts | 12 +++++++----- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/public/locales/en/json.json b/public/locales/en/json.json index 634742f..8796f27 100644 --- a/public/locales/en/json.json +++ b/public/locales/en/json.json @@ -58,5 +58,10 @@ "title": "What is JSON Validation?" }, "validJson": "✅ Valid JSON" + }, + "comparison": { + "title": "Compare JSON", + "description": "Compare two JSON objects to identify differences in structure and values.", + "shortDescription": "Find differences between two JSON objects" } } diff --git a/public/locales/hi/json.json b/public/locales/hi/json.json index 448d41c..c8b5550 100644 --- a/public/locales/hi/json.json +++ b/public/locales/hi/json.json @@ -76,5 +76,10 @@ "strictMode": "सख्त मोड", "title": "JSON मान्य करें", "validationOptions": "मान्यता विकल्प" + }, + "comparison": { + "title": "JSON तुलना करें", + "description": "दो JSON वस्तुओं की संरचना और मूल्यों में अंतर की पहचान करें।", + "shortDescription": "दो JSON वस्तुओं के बीच अंतर ढूंढें" } } diff --git a/src/pages/tools/json/json-comparison/meta.ts b/src/pages/tools/json/json-comparison/meta.ts index dc9cc60..6172c31 100644 --- a/src/pages/tools/json/json-comparison/meta.ts +++ b/src/pages/tools/json/json-comparison/meta.ts @@ -2,12 +2,14 @@ import { defineTool } from '@tools/defineTool'; import { lazy } from 'react'; export const tool = defineTool('json', { - name: 'Compare JSON', path: 'json-comparison', icon: 'fluent:branch-compare-24-regular', - description: - 'Compare two JSON objects to identify differences in structure and values.', - shortDescription: 'Find differences between two JSON objects', keywords: ['json', 'compare', 'diff', 'differences', 'match', 'validation'], - component: lazy(() => import('./index')) + component: lazy(() => import('./index')), + + i18n: { + name: 'json:comparison.title', + description: 'json:comparison.description', + shortDescription: 'json:comparison.shortDescription' + } });