fix: add JSON comparison translations

This commit is contained in:
Bhavesh Kshatriya
2025-07-16 00:20:01 +05:30
parent 91bc7ac122
commit 2c5972023f
3 changed files with 17 additions and 5 deletions

View File

@@ -58,5 +58,10 @@
"title": "What is JSON Validation?" "title": "What is JSON Validation?"
}, },
"validJson": "✅ Valid JSON" "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"
} }
} }

View File

@@ -76,5 +76,10 @@
"strictMode": "सख्त मोड", "strictMode": "सख्त मोड",
"title": "JSON मान्य करें", "title": "JSON मान्य करें",
"validationOptions": "मान्यता विकल्प" "validationOptions": "मान्यता विकल्प"
},
"comparison": {
"title": "JSON तुलना करें",
"description": "दो JSON वस्तुओं की संरचना और मूल्यों में अंतर की पहचान करें।",
"shortDescription": "दो JSON वस्तुओं के बीच अंतर ढूंढें"
} }
} }

View File

@@ -2,12 +2,14 @@ import { defineTool } from '@tools/defineTool';
import { lazy } from 'react'; import { lazy } from 'react';
export const tool = defineTool('json', { export const tool = defineTool('json', {
name: 'Compare JSON',
path: 'json-comparison', path: 'json-comparison',
icon: 'fluent:branch-compare-24-regular', 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'], 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'
}
}); });