Skip to content

Commit

Permalink
fix: use languages ​​other than ru/en for Typograf (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey authored Sep 6, 2024
1 parent 3880b8c commit f990b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text-transform/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
});

Expand Down

0 comments on commit f990b81

Please sign in to comment.