From b5b1a2848a4251a1e36e220f9a5fa4ff24c74927 Mon Sep 17 00:00:00 2001 From: rift <117926989+Riftriot@users.noreply.github.com> Date: Tue, 26 Dec 2023 17:37:57 -0600 Subject: [PATCH] Im gonna push before I break anything --- src/locales/en.json | 6 +++++- src/locales/es.json | 4 ++++ src/locales/ja.json | 4 ++++ src/pages/ProxyFrame.tsx | 2 +- src/pages/Settings/Proxy.tsx | 7 ++++--- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 6377401..ebbeb3d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -40,10 +40,14 @@ }, "proxymodes": { "title": "Open in", - "subtitle": "Choose how to open your sites", + "subtitle": "Choose how to open your sites on Nebula", "embed": "Embed", "direct": "Direct", "aboutblank": "About:Blank" + }, + "searchengines": { + "title": "Search Engine", + "subtitle": "Choose your search engine for Nebula" } } } diff --git a/src/locales/es.json b/src/locales/es.json index 1a58de5..51c50fc 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -44,6 +44,10 @@ "embed": "Incrustar", "direct": "Directo", "aboutblank": "About:Blank" + }, + "searchengines": { + "title": "Motor de búsqueda.", + "subtitle": "Elija su motor de búsqueda para Nebula" } } } diff --git a/src/locales/ja.json b/src/locales/ja.json index 0de1077..fb2826d 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -44,6 +44,10 @@ "embed": "埋め込む", "direct": "直接", "aboutblank": "About:Blank" + }, + "searchengines": { + "title": "検索エンジン", + "subtitle": "ネビュラの検索エンジンを選択してください" } } } diff --git a/src/pages/ProxyFrame.tsx b/src/pages/ProxyFrame.tsx index 6a9fd8c..d6c46cf 100644 --- a/src/pages/ProxyFrame.tsx +++ b/src/pages/ProxyFrame.tsx @@ -14,7 +14,7 @@ declare global { export function ProxyFrame(props: { url: string }) { // pass the URL encoded with encodeURIcomponent const localProxy = localStorage.getItem("proxy") || "automatic"; - const proxyMode = localStorage.getItem("proxyMode") || "direct"; + const proxyMode = localStorage.getItem("proxyMode") || "embed"; // Embed by default const searchEngine = localStorage.getItem("searchEngine") || "https://google.com/search?q=%s"; const [ProxiedUrl, setProxiedUrl] = useState(undefined); diff --git a/src/pages/Settings/Proxy.tsx b/src/pages/Settings/Proxy.tsx index 7a622d0..574961f 100644 --- a/src/pages/Settings/Proxy.tsx +++ b/src/pages/Settings/Proxy.tsx @@ -21,7 +21,8 @@ const Proxy = ({ id, active }) => { const searchEngines = [ { id: "https://google.com/search?q=%s", label: "Google" }, - { id: "https://bing.com/search?q=%s", label: "Bing" } + { id: "https://bing.com/search?q=%s", label: "Bing" }, + { id: "https://duckduckgo.com/%s", label: "DuckDuckGo" } ]; return ( @@ -52,8 +53,8 @@ const Proxy = ({ id, active }) => { />
-
Search ENgines
-
{t("settings.proxymodes.subtitle")}
+
{t("settings.searchengines.title")}
+
{t("settings.searchengines.subtitle")}