From f990b81c12e4964822b99984021a6e0a6b447fc2 Mon Sep 17 00:00:00 2001 From: Martyanov Andrey <37772440+martyanovandrey@users.noreply.github.com> Date: Fri, 6 Sep 2024 21:15:36 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20use=20languages=20=E2=80=8B=E2=80=8Bothe?= =?UTF-8?q?r=20than=20ru/en=20for=20Typograf=20(#1009)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/text-transform/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-transform/utils.ts b/src/text-transform/utils.ts index f3fdd1cb0..71abfea25 100644 --- a/src/text-transform/utils.ts +++ b/src/text-transform/utils.ts @@ -62,7 +62,7 @@ export function typograf(text: string, lang: Lang = 'ru') { }; const tp = new Typograf({ - locale: localeByLang[lang], + locale: localeByLang[lang] || lang, htmlEntity: {type: 'name'}, });