From e89570ff2c11e700c96b83bd11f22e205e0f7ec1 Mon Sep 17 00:00:00 2001 From: Tommy Liao <39247472+dudemanppl@users.noreply.github.com> Date: Mon, 22 Aug 2022 04:56:51 -0700 Subject: [PATCH] Fixes bug with capitalization in Georgian (#3414) (#3418) dudemanppl * Updates punctuateWord function to not capitalize the first letter of sentences in the Georgian language * Reverts to old package-lock.json file --- frontend/src/ts/test/test-logic.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index 5da802c13..72c39b708 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -113,9 +113,10 @@ export async function punctuateWord( } else { if ( currentLanguage != "code" && + currentLanguage != "georgian" && (index == 0 || shouldCapitalize(lastChar)) ) { - //always capitalise the first word or if there was a dot unless using a code alphabet + //always capitalise the first word or if there was a dot unless using a code alphabet or the Georgian language word = Misc.capitalizeFirstLetterOfEachWord(word);