Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge PR #1344 Ukrainian locale after conflict resolution

Bingxi Zhao (Frank)453b06063b64
diff --cc web/features/settings/sections/ToolsSettingsSection.tsx
index 22825a7c9,d2ccece0f..3f1a92452
--- a/web/features/settings/sections/ToolsSettingsSection.tsx
+++ b/web/features/settings/sections/ToolsSettingsSection.tsx
@@@ -184,8 -184,9 +185,9 @@@ export default function ToolsSettingsPa
.map((section) => ({
...section,
tools: section.tools.filter((tool) => {
- const hints = tool.hints[hintLanguage];
- const alternateHints = tool.hints[hintLanguage === "zh" ? "en" : "zh"];
- const hints = tool.hints[language] ?? tool.hints.en;
++ const hints = tool.hints[hintLanguage] ?? tool.hints.en;
+ const alternateHints =
- (language === "en" ? tool.hints.zh : tool.hints.en) ?? tool.hints.en;
++ tool.hints[hintLanguage === "zh" ? "en" : "zh"] ?? tool.hints.en;
const searchableText = [
tool.name,
tool.description,
@@@ -312,7 -313,7 +314,7 @@@
<div className="border-t border-[var(--border)]/60">
{list.map((tool, idx) => {
const isOpen = expanded.has(tool.name);
- const hints = tool.hints[hintLanguage];
- const hints = tool.hints[language] ?? tool.hints.en;
++ const hints = tool.hints[hintLanguage] ?? tool.hints.en;
const isPending = pending.has(tool.name);
const isComingSoon = !!tool.coming_soon;
const isAvailable = tool.available !== false;