@gravity-ui/page-constructor 5.23.1 → 5.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,7 +53,7 @@ function typograf(text, lang = 'ru') {
53
53
  en: ['en-US', 'ru'],
54
54
  };
55
55
  const tp = new typograf_1.default({
56
- locale: localeByLang[lang],
56
+ locale: localeByLang[lang] || lang,
57
57
  htmlEntity: { type: 'name' },
58
58
  });
59
59
  enableRules(tp);
@@ -49,7 +49,7 @@ export function typograf(text, lang = 'ru') {
49
49
  en: ['en-US', 'ru'],
50
50
  };
51
51
  const tp = new Typograf({
52
- locale: localeByLang[lang],
52
+ locale: localeByLang[lang] || lang,
53
53
  htmlEntity: { type: 'name' },
54
54
  });
55
55
  enableRules(tp);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.23.1",
3
+ "version": "5.23.2",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -66,7 +66,7 @@ function typograf(text, lang = 'ru') {
66
66
  en: ['en-US', 'ru'],
67
67
  };
68
68
  const tp = new typograf_1.default({
69
- locale: localeByLang[lang],
69
+ locale: localeByLang[lang] || lang,
70
70
  htmlEntity: { type: 'name' },
71
71
  });
72
72
  enableRules(tp);