mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-22 12:19:24 +00:00
more translation
This commit is contained in:
parent
ea33557891
commit
14a3d9a778
@ -1740,6 +1740,15 @@
|
|||||||
"allTools": "ALL TOOLS",
|
"allTools": "ALL TOOLS",
|
||||||
"quickAccess": "QUICK ACCESS"
|
"quickAccess": "QUICK ACCESS"
|
||||||
},
|
},
|
||||||
|
"quickAccess": {
|
||||||
|
"read": "Read",
|
||||||
|
"sign": "Sign",
|
||||||
|
"automate": "Automate",
|
||||||
|
"files": "Files",
|
||||||
|
"activity": "Activity",
|
||||||
|
"config": "Config",
|
||||||
|
"allTools": "All Tools"
|
||||||
|
},
|
||||||
"fileUpload": {
|
"fileUpload": {
|
||||||
"selectFile": "Select a file",
|
"selectFile": "Select a file",
|
||||||
"selectFiles": "Select files",
|
"selectFiles": "Select files",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ActionIcon } from '@mantine/core';
|
import { ActionIcon } from '@mantine/core';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Tooltip } from './Tooltip';
|
import { Tooltip } from './Tooltip';
|
||||||
import AppsIcon from '@mui/icons-material/AppsRounded';
|
import AppsIcon from '@mui/icons-material/AppsRounded';
|
||||||
import { useToolWorkflow } from '../../contexts/ToolWorkflowContext';
|
import { useToolWorkflow } from '../../contexts/ToolWorkflowContext';
|
||||||
@ -10,6 +11,7 @@ interface AllToolsNavButtonProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const AllToolsNavButton: React.FC<AllToolsNavButtonProps> = ({ activeButton, setActiveButton }) => {
|
const AllToolsNavButton: React.FC<AllToolsNavButtonProps> = ({ activeButton, setActiveButton }) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
const { handleReaderToggle, handleBackToTools, selectedToolKey, leftPanelView } = useToolWorkflow();
|
const { handleReaderToggle, handleBackToTools, selectedToolKey, leftPanelView } = useToolWorkflow();
|
||||||
|
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
@ -30,7 +32,7 @@ const AllToolsNavButton: React.FC<AllToolsNavButtonProps> = ({ activeButton, set
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<Tooltip content={'All tools'} position="right" arrow containerStyle={{ marginTop: "-1rem" }} maxWidth={200}>
|
<Tooltip content={t("quickAccess.allTools", "All Tools")} position="right" arrow containerStyle={{ marginTop: "-1rem" }} maxWidth={200}>
|
||||||
<div className="flex flex-col items-center gap-1 mt-4 mb-2">
|
<div className="flex flex-col items-center gap-1 mt-4 mb-2">
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
size={'lg'}
|
size={'lg'}
|
||||||
@ -47,7 +49,7 @@ const AllToolsNavButton: React.FC<AllToolsNavButtonProps> = ({ activeButton, set
|
|||||||
{iconNode}
|
{iconNode}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<span className={`all-tools-text ${isActive ? 'active' : 'inactive'}`}>
|
<span className={`all-tools-text ${isActive ? 'active' : 'inactive'}`}>
|
||||||
All Tools
|
{t("quickAccess.allTools", "All Tools")}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React, { useState, useRef, forwardRef, useEffect } from "react";
|
import React, { useState, useRef, forwardRef, useEffect } from "react";
|
||||||
import { ActionIcon, Stack, Divider } from "@mantine/core";
|
import { ActionIcon, Stack, Divider } from "@mantine/core";
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
import MenuBookIcon from "@mui/icons-material/MenuBookRounded";
|
import MenuBookIcon from "@mui/icons-material/MenuBookRounded";
|
||||||
import SettingsIcon from "@mui/icons-material/SettingsRounded";
|
import SettingsIcon from "@mui/icons-material/SettingsRounded";
|
||||||
import FolderIcon from "@mui/icons-material/FolderRounded";
|
import FolderIcon from "@mui/icons-material/FolderRounded";
|
||||||
@ -20,6 +21,7 @@ import {
|
|||||||
|
|
||||||
const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
||||||
}, ref) => {
|
}, ref) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
const { isRainbowMode } = useRainbowThemeContext();
|
const { isRainbowMode } = useRainbowThemeContext();
|
||||||
const { openFilesModal, isFilesModalOpen } = useFilesModalContext();
|
const { openFilesModal, isFilesModalOpen } = useFilesModalContext();
|
||||||
const { handleReaderToggle, selectedTool, selectedToolKey, leftPanelView } = useToolWorkflow();
|
const { handleReaderToggle, selectedTool, selectedToolKey, leftPanelView } = useToolWorkflow();
|
||||||
@ -55,7 +57,7 @@ const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
|||||||
const buttonConfigs: ButtonConfig[] = [
|
const buttonConfigs: ButtonConfig[] = [
|
||||||
{
|
{
|
||||||
id: 'read',
|
id: 'read',
|
||||||
name: 'Read',
|
name: t("quickAccess.read", "Read"),
|
||||||
icon: <MenuBookIcon sx={{ fontSize: "1.5rem" }} />,
|
icon: <MenuBookIcon sx={{ fontSize: "1.5rem" }} />,
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
isRound: false,
|
isRound: false,
|
||||||
@ -67,7 +69,7 @@ const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'sign',
|
id: 'sign',
|
||||||
name: 'Sign',
|
name: t("quickAccess.sign", "Sign"),
|
||||||
icon:
|
icon:
|
||||||
<span className="material-symbols-rounded font-size-20">
|
<span className="material-symbols-rounded font-size-20">
|
||||||
signature
|
signature
|
||||||
@ -79,7 +81,7 @@ const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'automate',
|
id: 'automate',
|
||||||
name: 'Automate',
|
name: t("quickAccess.automate", "Automate"),
|
||||||
icon:
|
icon:
|
||||||
<span className="material-symbols-rounded font-size-20">
|
<span className="material-symbols-rounded font-size-20">
|
||||||
automation
|
automation
|
||||||
@ -91,7 +93,7 @@ const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'files',
|
id: 'files',
|
||||||
name: 'Files',
|
name: t("quickAccess.files", "Files"),
|
||||||
icon: <FolderIcon sx={{ fontSize: "1.25rem" }} />,
|
icon: <FolderIcon sx={{ fontSize: "1.25rem" }} />,
|
||||||
isRound: true,
|
isRound: true,
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
@ -100,7 +102,7 @@ const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'activity',
|
id: 'activity',
|
||||||
name: 'Activity',
|
name: t("quickAccess.activity", "Activity"),
|
||||||
icon:
|
icon:
|
||||||
<span className="material-symbols-rounded font-size-20">
|
<span className="material-symbols-rounded font-size-20">
|
||||||
vital_signs
|
vital_signs
|
||||||
@ -112,7 +114,7 @@ const QuickAccessBar = forwardRef<HTMLDivElement>(({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'config',
|
id: 'config',
|
||||||
name: 'Config',
|
name: t("quickAccess.config", "Config"),
|
||||||
icon: <SettingsIcon sx={{ fontSize: "1rem" }} />,
|
icon: <SettingsIcon sx={{ fontSize: "1rem" }} />,
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
type: 'modal',
|
type: 'modal',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user