mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
feat(i18n): migrate CLI Tools main page
- CLIToolsPageClient: 2 strings (no active providers warning) - Added noActiveProviders/noActiveProvidersDesc keys to en.json/pt-BR.json
This commit is contained in:
@@ -18,10 +18,12 @@ import {
|
||||
DefaultToolCard,
|
||||
AntigravityToolCard,
|
||||
} from "./components";
|
||||
import { useTranslations } from "next-intl";
|
||||
|
||||
const CLOUD_URL = process.env.NEXT_PUBLIC_CLOUD_URL;
|
||||
|
||||
export default function CLIToolsPageClient({ machineId }) {
|
||||
const t = useTranslations("cliTools");
|
||||
const [connections, setConnections] = useState([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [expandedTool, setExpandedTool] = useState(null);
|
||||
@@ -268,11 +270,9 @@ export default function CLIToolsPageClient({ machineId }) {
|
||||
<span className="material-symbols-outlined text-yellow-500">warning</span>
|
||||
<div>
|
||||
<p className="font-medium text-yellow-600 dark:text-yellow-400">
|
||||
No active providers
|
||||
</p>
|
||||
<p className="text-sm text-text-muted">
|
||||
Please add and connect providers first to configure CLI tools.
|
||||
{t("noActiveProviders")}
|
||||
</p>
|
||||
<p className="text-sm text-text-muted">{t("noActiveProvidersDesc")}</p>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
@@ -184,6 +184,8 @@
|
||||
},
|
||||
"cliTools": {
|
||||
"title": "CLI Tools",
|
||||
"noActiveProviders": "No active providers",
|
||||
"noActiveProvidersDesc": "Please add and connect providers first to configure CLI tools.",
|
||||
"mapModels": "Map Models",
|
||||
"testConnection": "Test Connection",
|
||||
"connectionStatus": "Connection Status",
|
||||
|
||||
@@ -184,6 +184,8 @@
|
||||
},
|
||||
"cliTools": {
|
||||
"title": "Ferramentas CLI",
|
||||
"noActiveProviders": "Nenhum provedor ativo",
|
||||
"noActiveProvidersDesc": "Adicione e conecte provedores primeiro para configurar as ferramentas CLI.",
|
||||
"mapModels": "Mapear Modelos",
|
||||
"testConnection": "Testar Conexão",
|
||||
"connectionStatus": "Status da Conexão",
|
||||
|
||||
Reference in New Issue
Block a user