From f08d4115db354057feec03eedc8d52a8e96e34a9 Mon Sep 17 00:00:00 2001 From: WenjiaoYue Date: Thu, 8 Aug 2024 14:27:57 +0800 Subject: [PATCH] Modify the language variable to match language highlight. (#543) * Modify the variable name to match the language Signed-off-by: Yue, Wenjiao * Modify the variable name to match the language Signed-off-by: Yue, Wenjiao * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Yue, Wenjiao Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .../ui/svelte/src/lib/shared/constant.ts | 26 +++---- .../docker/ui/svelte/src/routes/+page.svelte | 67 ++++++++++--------- 2 files changed, 47 insertions(+), 46 deletions(-) diff --git a/CodeTrans/docker/ui/svelte/src/lib/shared/constant.ts b/CodeTrans/docker/ui/svelte/src/lib/shared/constant.ts index fe71bffb6..ca880224d 100644 --- a/CodeTrans/docker/ui/svelte/src/lib/shared/constant.ts +++ b/CodeTrans/docker/ui/svelte/src/lib/shared/constant.ts @@ -17,22 +17,22 @@ import type { Language } from "../../routes/types.js"; export const languagesList: Language[] = [ { name: "C" }, { name: "C++" }, - { name: "C#" }, + // { name: "C#" }, { name: "Java" }, { name: "Python" }, { name: "JavaScript" }, - { name: "Swift" }, - { name: "Ruby" }, + // { name: "Swift" }, + // { name: "Ruby" }, { name: "Go" }, { name: "Rust" }, - { name: "PHP" }, - { name: "TypeScript" }, - { name: "Kotlin" }, - { name: "Objective-C" }, - { name: "Perl" }, - { name: "MATLAB" }, - { name: "R" }, - { name: "Lua" }, - { name: "Bash" }, - { name: "SQL" }, + // { name: "PHP" }, + // { name: "TypeScript" }, + // { name: "Kotlin" }, + // { name: "Objective-C" }, + // { name: "Perl" }, + // { name: "MATLAB" }, + // { name: "R" }, + // { name: "Lua" }, + // { name: "Bash" }, + // { name: "SQL" }, ]; diff --git a/CodeTrans/docker/ui/svelte/src/routes/+page.svelte b/CodeTrans/docker/ui/svelte/src/routes/+page.svelte index b21b3b8f9..46918c945 100644 --- a/CodeTrans/docker/ui/svelte/src/routes/+page.svelte +++ b/CodeTrans/docker/ui/svelte/src/routes/+page.svelte @@ -16,26 +16,26 @@