feat: Add localization support for visitSpecificWebsite label

This commit adds localization support for the "visitSpecificWebsite" label in the settings.json file for multiple languages. Now, the label can be translated into different languages, including Japanese, Chinese, English, Malayalam, Italian, Portuguese, Russian, French, and Spanish.
This commit is contained in:
n4ze3m
2024-06-22 16:55:02 +05:30
parent d23b70b979
commit 4363a4b0de
13 changed files with 84 additions and 20 deletions

View File

@@ -13,7 +13,8 @@ export const SearchModeSettings = () => {
initialValues: {
isSimpleInternetSearch: false,
searchProvider: "",
totalSearchResults: 0
totalSearchResults: 0,
visitSpecificWebsite: false
}
})
@@ -67,7 +68,7 @@ export const SearchModeSettings = () => {
</span>
<div>
<Switch
className="mt-4 sm:mt-0"
className="mt-4 sm:mt-0"
{...form.getInputProps("isSimpleInternetSearch", {
type: "checkbox"
})}
@@ -89,6 +90,20 @@ export const SearchModeSettings = () => {
</div>
</div>
<div className="flex sm:flex-row flex-col space-y-4 sm:space-y-0 sm:justify-between">
<span className="text-gray-700 dark:text-neutral-50 ">
{t("generalSettings.webSearch.visitSpecificWebsite.label")}
</span>
<div>
<Switch
className="mt-4 sm:mt-0"
{...form.getInputProps("visitSpecificWebsite", {
type: "checkbox"
})}
/>
</div>
</div>
<div className="flex justify-end">
<SaveButton btnType="submit" />
</div>