feat: refine language controls and add per-tier ChatGPT Fast mode

This commit is contained in:
2026-10-25 21:19:48 +03:00
parent f8ce0f21ef
commit 8c564946ef
17 changed files with 488 additions and 37 deletions
+2 -3
View File
@@ -90,10 +90,9 @@ describe("translation quality and rendering", () => {
it("offers independent saved language choices with localized accessible labels", () => {
const html = renderToStaticMarkup(<I18nProvider initialGeneral={{ language: "ru", sttLanguage: "en" }}><LanguageSelect field="sttLanguage" /></I18nProvider>);
assert(html.includes('aria-label="Язык распознавания речи"'));
assert(html.includes('value="en" selected=""'));
assert(html.includes("Язык системы"));
assert(html.includes('aria-haspopup="menu"'));
assert(html.includes('aria-expanded="false"'));
assert(html.includes("English"));
assert(html.includes("Русский"));
});
it("translates dialog text and accessibility labels", () => {
const html = renderToStaticMarkup(<I18nProvider system="ru"><AbortTurnBody mode="turn" onClose={() => {}} onConfirm={() => {}} /></I18nProvider>);