Skip to content

Commit f990b81

Browse files
fix: use languages ​​other than ru/en for Typograf (#1009)
1 parent 3880b8c commit f990b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/text-transform/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function typograf(text: string, lang: Lang = 'ru') {
6262
};
6363

6464
const tp = new Typograf({
65-
locale: localeByLang[lang],
65+
locale: localeByLang[lang] || lang,
6666
htmlEntity: {type: 'name'},
6767
});
6868

0 commit comments

Comments
 (0)