Skip to content

Commit

Permalink
Fixed turkish
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Mario committed Apr 29, 2024
1 parent b1af1dd commit 513f1da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gatewayservice/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ paths:
required: true
schema:
type: string
enum: [es, en, tk]
enum: [es, en, tr]
description: Language code for filtering questions
responses:
'200':
Expand Down Expand Up @@ -337,7 +337,7 @@ paths:
required: true
schema:
type: string
enum: [es, en, tk]
enum: [es, en, tr]
description: Language code for filtering questions
- name: amount
in: path
Expand Down Expand Up @@ -379,7 +379,7 @@ paths:
required: true
schema:
type: string
enum: ["es", "en", "tk"]
enum: ["es", "en", "tr"]
description: Language code for filtering questions
- name: amount
in: path
Expand Down
5 changes: 4 additions & 1 deletion webapp/src/components/questionView/QuestionGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class QuestionGenerator{
}

async generateQuestions(lang, type, amount, token) {

if(amount < 1)
amount = 1;
if(amount > 20)
amount = 20;
try {
let response;
if(type==="COMPETITIVE"){
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {I18nextProvider} from "react-i18next";
import i18next from "i18next";
import global_es from "./translations/es/global.json"
import global_en from "./translations/en/global.json"
import global_tk from "./translations/tk/global.json"
import global_tr from "./translations/tr/global.json"



Expand All @@ -24,8 +24,8 @@ i18next.init({
en:{
global:global_en,
},
tk:{
global:global_tk,
tr:{
global:global_tr,
}
},
})
Expand Down

0 comments on commit 513f1da

Please sign in to comment.