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
This commit is contained in:
Tommy Liao 2022-08-22 04:56:51 -07:00 committed by GitHub
parent 0ae5d2bd4c
commit e89570ff2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);