diff --git a/backend/api/routes/quotes.ts b/backend/api/routes/quotes.ts index 89ee10bd8..5fe0957d9 100644 --- a/backend/api/routes/quotes.ts +++ b/backend/api/routes/quotes.ts @@ -9,7 +9,6 @@ import { validateConfiguration, validateRequest, } from "../../middlewares/api-utils"; -import SUPPORTED_QUOTE_LANGUAGES from "../../constants/quote-languages"; const quotesRouter = Router(); @@ -119,10 +118,7 @@ quotesRouter.post( validateRequest({ body: { quoteId: joi.string().required(), - quoteLanguage: joi - .string() - .valid(...SUPPORTED_QUOTE_LANGUAGES) - .required(), + quoteLanguage: joi.string().required(), reason: joi .string() .valid( diff --git a/backend/constants/quote-languages.ts b/backend/constants/quote-languages.ts deleted file mode 100644 index a58356ae5..000000000 --- a/backend/constants/quote-languages.ts +++ /dev/null @@ -1,37 +0,0 @@ -const SUPPORTED_QUOTE_LANGUAGES = [ - "albanian", - "arabic", - "code_c++", - "code_c", - "code_java", - "code_javascript", - "code_python", - "code_rust", - "czech", - "danish", - "dutch", - "english", - "filipino", - "french", - "german", - "hindi", - "icelandic", - "indonesian", - "irish", - "italian", - "lithuanian", - "malagasy", - "polish", - "portuguese", - "russian", - "serbian", - "slovak", - "spanish", - "swedish", - "thai", - "toki_pona", - "turkish", - "vietnamese", -]; - -export default SUPPORTED_QUOTE_LANGUAGES;