feat: add internationalization support

This commit is contained in:
AshAnand34
2025-07-12 23:02:35 -07:00
parent 3b702b260c
commit f22bb8bd57
149 changed files with 2807 additions and 1045 deletions

View File

@@ -2,13 +2,17 @@ import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('time', {
path: 'check-leap-years',
name: 'Check Leap Years',
icon: 'arcticons:calendar-simple-29',
path: 'check-leap-years',
icon: 'material-symbols:calendar-month',
description:
' You can check if a given calendar year is a leap year. You can enter one or many different years into the input field with one date per line and get the answer to the test question of whether the given year is a leap year.',
shortDescription: 'Convert days to hours easily.',
keywords: ['check', 'leap', 'years'],
longDescription: `This is a quick online utility for testing if the given year is a leap year. Just as a reminder, a leap year has 366 days, which is one more day than a common year. This extra day is added to the month of February and it falls on February 29th. There's a simple mathematical formula for calculating if the given year is a leap year. Leap years are those years that are divisible by 4 but not divisible by 100, as well as years that are divisible by 100 and 400 simultaneously. Our algorithm checks each input year using this formula and outputs the year's status. For example, if you enter the value "2025" as input, the program will display "2025 is not a leap year.", and for the value "2028", the status will be "2028 is a leap year.". You can also enter multiple years as the input in a column and get a matching column of statuses as the output.`,
component: lazy(() => import('./index'))
'Check if a year is a leap year. Enter a year to determine if it has 366 days instead of 365.',
shortDescription: 'Check if a year is a leap year',
keywords: ['leap', 'year', 'calendar', 'date'],
component: lazy(() => import('./index')),
i18n: {
name: 'time.checkLeapYears.name',
description: 'time.checkLeapYears.description',
shortDescription: 'time.checkLeapYears.shortDescription'
}
});