Skip to content
6 changes: 4 additions & 2 deletions locales/be/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> У нас ёсць доступ да WebUSB API",
"Don't show again": "Больш не паказваць",
"Go to app releases": "Перайсці да выпускаў праграмы",
"You can install the app, or use an update-to-date Chromium based browser": "Вы можаце ўсталяваць праграму або скарыстацца абноўленым браўзэрам на базе Chromium",
"Your browser doesn't support EdgeTX Buddy": "Ваш браўзэр не падтрымлівае EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Вы можаце ўсталяваць праграму або скарыстацца браўзэрам з падтрымкай <1>WebUSB</1> і <3>File System Access API</3>",
"Your browser doesn't support EdgeTX Buddy": "Ваш браўзэр не падтрымлівае EdgeTX Buddy",
"for firmware flashing": "для прашыўкі",
"for radio storage": "для сховішча прылады"
}
6 changes: 4 additions & 2 deletions locales/cs/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> Podporuje WebUSB API",
"Don't show again": "Příště nezobrazovat",
"Go to app releases": "Přejít na stažení aplikace",
"You can install the app, or use an update-to-date Chromium based browser": "Aplikaci můžete nainstalovat na Váš počítač a nebo použít aktuální prohlížeč založený na jádře Chromium",
"Your browser doesn't support EdgeTX Buddy": "Váš prohlížeč nepodporuje EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Aplikaci můžete nainstalovat na Váš počítač a nebo použít prohlížeč s podporou <1>WebUSB</1> a <3>File System Access API</3>",
"Your browser doesn't support EdgeTX Buddy": "Váš prohlížeč nepodporuje EdgeTX Buddy",
"for firmware flashing": "pro nahrání firmware",
"for radio storage": "pro přístup k úložišti"
}
6 changes: 4 additions & 2 deletions locales/da/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> Vi har adgang til WebUSB API",
"Don't show again": "Vis ikke igen",
"Go to app releases": "Gå til app versioner",
"You can install the app, or use an update-to-date Chromium based browser": "Du kan installere som app, eller bruge en Chromium baseret browser",
"Your browser doesn't support EdgeTX Buddy": "Din browser understøtter ikke EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Du kan installere som app, eller bruge en browser med <1>WebUSB</1> og <3>File System Access API</3>-understøttelse",
"Your browser doesn't support EdgeTX Buddy": "Din browser understøtter ikke EdgeTX Buddy",
"for firmware flashing": "til firmware-flashing",
"for radio storage": "til radio-lager"
}
6 changes: 4 additions & 2 deletions locales/de/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> Wir haben Zugriff auf die WebUSB-API",
"Don't show again": "Nicht mehr anzeigen",
"Go to app releases": "Navigiere zu App-Releases",
"You can install the app, or use an update-to-date Chromium based browser": "Sie können die App installieren oder einen aktuellen Chromium-basierten Browser verwenden",
"Your browser doesn't support EdgeTX Buddy": "Ihr Browser unterstützt EdgeTX Buddy leider nicht"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Sie können die App installieren oder einen Browser mit <1>WebUSB</1>- und <3>File System Access API</3>-Unterstützung verwenden",
"Your browser doesn't support EdgeTX Buddy": "Ihr Browser unterstützt EdgeTX Buddy leider nicht",
"for firmware flashing": "zum Flashen der Firmware",
"for radio storage": "für den Radio-Speicher"
}
6 changes: 4 additions & 2 deletions locales/es/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> We have WebUSB API access",
"Don't show again": "Don't show again",
"Go to app releases": "Go to app releases",
"You can install the app, or use an update-to-date Chromium based browser": "You can install the app, or use an update-to-date Chromium based browser",
"Your browser doesn't support EdgeTX Buddy": "Your browser doesn't support EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support",
"Your browser doesn't support EdgeTX Buddy": "Your browser doesn't support EdgeTX Buddy",
"for firmware flashing": "for firmware flashing",
"for radio storage": "for radio storage"
}
6 changes: 4 additions & 2 deletions locales/fr/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> We have WebUSB API access",
"Don't show again": "Don't show again",
"Go to app releases": "Go to app releases",
"You can install the app, or use an update-to-date Chromium based browser": "You can install the app, or use an update-to-date Chromium based browser",
"Your browser doesn't support EdgeTX Buddy": "Your browser doesn't support EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support",
"Your browser doesn't support EdgeTX Buddy": "Your browser doesn't support EdgeTX Buddy",
"for firmware flashing": "for firmware flashing",
"for radio storage": "for radio storage"
}
6 changes: 4 additions & 2 deletions locales/it/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> Abbiamo accesso all'API WebUSB",
"Don't show again": "Non mostrarlo ancora",
"Go to app releases": "Vai alle release app",
"You can install the app, or use an update-to-date Chromium based browser": "Puoi installare un'app, o usare un browser aggiornato basta su Chromium",
"Your browser doesn't support EdgeTX Buddy": "Il tuo browser non supporta EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Puoi installare l'app, o usare un browser con supporto <1>WebUSB</1> e <3>File System Access API</3>",
"Your browser doesn't support EdgeTX Buddy": "Il tuo browser non supporta EdgeTX Buddy",
"for firmware flashing": "per il flashing del firmware",
"for radio storage": "per la memoria della radio"
}
6 changes: 4 additions & 2 deletions locales/ru/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> У нас есть доступ к WebUSB API",
"Don't show again": "Больше не показывать",
"Go to app releases": "Перейдите к выпускам приложений",
"You can install the app, or use an update-to-date Chromium based browser": "Вы можете установить приложение или воспользоваться обновленным браузером на базе Chromium",
"Your browser doesn't support EdgeTX Buddy": "Ваш браузер не поддерживает EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Вы можете установить приложение или использовать браузер с поддержкой <1>WebUSB</1> и <3>File System Access API</3>",
"Your browser doesn't support EdgeTX Buddy": "Ваш браузер не поддерживает EdgeTX Buddy",
"for firmware flashing": "для прошивки",
"for radio storage": "для хранилища аппаратуры"
}
6 changes: 4 additions & 2 deletions locales/sv/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> Vi har åtkomst till WebUSB API",
"Don't show again": "Visa inte igen",
"Go to app releases": "Gå till app-versioner",
"You can install the app, or use an update-to-date Chromium based browser": "Du kan installera appen, eller använda en Chromium-baserad browser",
"Your browser doesn't support EdgeTX Buddy": "Din browser stödjer inte EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Du kan installera appen, eller använda en browser med <1>WebUSB</1>- och <3>File System Access API</3>-stöd",
"Your browser doesn't support EdgeTX Buddy": "Din browser stödjer inte EdgeTX Buddy",
"for firmware flashing": "för firmware-flashing",
"for radio storage": "för radio-lagring"
}
6 changes: 4 additions & 2 deletions locales/uk/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> У нас є доступ до WebUSB API",
"Don't show again": "Не показувати знову",
"Go to app releases": "Перейти до випусків застосунку",
"You can install the app, or use an update-to-date Chromium based browser": "Ви можете встановити застосунок або скористатись браузером на основі актуальної версії Chromium",
"Your browser doesn't support EdgeTX Buddy": "Ваш браузер не підтримує EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "Ви можете встановити застосунок або скористатись браузером з підтримкою <1>WebUSB</1> та <3>File System Access API</3>",
"Your browser doesn't support EdgeTX Buddy": "Ваш браузер не підтримує EdgeTX Buddy",
"for firmware flashing": "для прошивання",
"for radio storage": "для сховища пристрою"
}
6 changes: 4 additions & 2 deletions locales/zh/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"<0></0> We have WebUSB API access": "<0></0> 有 WebUSB API 访问权限",
"Don't show again": "不再显示",
"Go to app releases": "前往应用程序发布页",
"You can install the app, or use an update-to-date Chromium based browser": "您可以安装应用程序,或使用最新版基于 Chrome 的浏览器",
"Your browser doesn't support EdgeTX Buddy": "您的浏览器不支持 EdgeTX Buddy"
"You can install the app, or use a browser with <1>WebUSB</1> and <3>File System Access API</3> support": "您可以安装应用程序,或使用支持 <1>WebUSB</1> 和 <3>File System Access API</3> 的浏览器",
"Your browser doesn't support EdgeTX Buddy": "您的浏览器不支持 EdgeTX Buddy",
"for firmware flashing": "用于固件刷写",
"for radio storage": "用于遥控器存储"
}
30 changes: 25 additions & 5 deletions src/renderer/compatibility/CompatNoticeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,27 @@ const WebCompatInfo: React.FC<Props> = ({
<Result
status="warning"
title={t(`Your browser doesn't support EdgeTX Buddy`)}
subTitle={t(
`You can install the app, or use an update-to-date Chromium based browser`
)}
subTitle={
<Trans t={t}>
You can install the app, or use a browser with{" "}
<Typography.Link
href="https://caniuse.com/webusb"
target="_blank"
rel="noopener noreferrer"
>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
WebUSB
</Typography.Link>{" "}
and{" "}
<Typography.Link
href="https://caniuse.com/native-filesystem-api"
target="_blank"
rel="noopener noreferrer"
>
File System Access API
</Typography.Link>{" "}
support
</Trans>
}
extra={
<Button
href="https://github.com/EdgeTX/buddy/releases/tag/latest"
Expand Down Expand Up @@ -78,7 +96,8 @@ const WebCompatInfo: React.FC<Props> = ({
/>{" "}
We have WebUSB API access
</Trans>
)}
)}{" "}
({t("for firmware flashing")})
</Typography.Paragraph>
<Typography.Paragraph>
{missingFilesystemApi ? (
Expand All @@ -99,7 +118,8 @@ const WebCompatInfo: React.FC<Props> = ({
/>{" "}
We have File System Access API access
</Trans>
)}
)}{" "}
({t("for radio storage")})
</Typography.Paragraph>
</Result>
</FullHeightCentered>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ describe("<CompatNoticeHandler />", () => {
setHasUsbApi(true);
render(<CompatNoticeHandler />);

expect(screen.getByText("Missing File System Access API -")).toBeVisible();
expect(screen.getByText("We have WebUSB API access")).toBeVisible();
expect(screen.getByText(/Missing File System Access API -/)).toBeVisible();
expect(screen.getByText(/We have WebUSB API access/)).toBeVisible();
});

it("should display when the usb api is missing", () => {
setHasFsApi(true);
render(<CompatNoticeHandler />);

expect(screen.getByText("Missing WebUSB API -")).toBeVisible();
expect(screen.getByText(/Missing WebUSB API -/)).toBeVisible();
expect(
screen.getByText("We have File System Access API access")
screen.getByText(/We have File System Access API access/)
).toBeVisible();
});
});
Loading