{"id":315750,"date":"2020-12-29T15:01:50","date_gmt":"2020-12-29T15:01:50","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=315750"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=315750","title":{"rendered":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 Figma"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0412 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0448\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u043e\u0440\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0431\u043b\u043e\u0436\u043a\u0438<br \/>  \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 Apple Store \u0438 Google Play. \u041d\u0430 \u0432\u0441\u0435\u0445 17 \u044f\u0437\u044b\u043a\u0430\u0445.<\/p>\n<p>  \u042d\u0442\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u043d\u044b\u0440\u043d\u0443\u0442\u044c \u0432 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0438 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e, \u043f\u043e\u043c\u043e\u0447\u044c \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434 \u0432 open source community.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/og\/as\/cy\/ogascye2bkpil1qhg58vfcbrvdu.jpeg\" alt=\"\u043c\u0435\u043c\u0430\u0441\u0438\u043a\"><\/div>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<td><a href=\"#figma\">\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f Figma<\/a><br \/>  <a href=\"#translation\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e<\/a><br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#replacement\">\u0410\u0432\u0442\u043e\u0437\u0430\u043c\u0435\u043d\u0430<\/a><br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#exceptions\">\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/a><br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#formatting\">\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/a><br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#debugging\">\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430<\/a><br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#rtl\">\u05e2\u05dd \u05d4\u05d0\u05d5\u05db\u05dc \u05d1\u05d0 \u05d4\u05ea\u05d9\u05d0\u05d1\u05d5\u05df<\/a><br \/>  <a href=\"#currencies\">\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u043b\u044e\u0442<\/a><br \/>  <a href=\"#publication\">\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f<\/a><br \/>  <a href=\"#summary\">\u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/a>  <\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/oh\/jr\/k7\/ohjrk7kcols_l7u76ncwijcmvde.png\" alt=\"\u043e\u0431\u043b\u043e\u0436\u043a\u0438\"><\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 Figma \u043f\u0440\u0438\u0448\u043b\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430: \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c 17 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432! \u041f\u0440\u0438\u0447\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0447\u0435\u0440\u0435\u0437 Google Translate (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0441\u0435\u0440\u0432\u0438\u0441 Crowdin) \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u0438. \u0427\u0442\u043e \u0436, \u0437\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0430 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043b\u044e\u0434\u044f\u043c, \u0438 \u0432\u043e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430 Google Sheets \u0441 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430\u043c\u0438 \u0432\u0441\u0435\u0445 \u0444\u0440\u0430\u0437.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xj\/-c\/e4\/xj-ce48lizsjm9rxebzsvjqzvlc.png\" alt=\"\u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430\u043c\u0438\"><\/div>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0440\u0443\u0447\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0432 \u043c\u0430\u043a\u0435\u0442\u0430\u0445 \u043f\u0440\u0438\u0432\u0435\u043b\u0430 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443:<\/p>\n<ul>\n<li>\u0431\u044b\u043b\u043e \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043e \u043e\u043a\u043e\u043b\u043e 40 \u043c\u0438\u043d\u0443\u0442;<\/li>\n<li>\u0431\u044b\u043b\u0438 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u044b \u043c\u0435\u043b\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f;<\/li>\n<li>\u0437\u0430\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0439 \u0432\u043d\u043e\u0441\u0438\u043b \u0441\u0432\u043e\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u00ab\u0437\u043d\u0430\u043b \u044f\u0437\u044b\u043a\u00bb) \u0438 \u043d\u0438\u0433\u0434\u0435 \u044d\u0442\u043e \u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b;<\/li>\n<li>\u043f\u0440\u043e\u043f\u0430\u043b\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0438 \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/li>\n<\/ul>\n<p>  \u0418 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0437\u043a\u043e \u043e\u0431\u0440\u0435\u043b\u0430 \u043f\u0443\u0433\u0430\u044e\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u0438\u0437 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0445 (Crowdin, Localize, Yandex.Translate) \u043d\u0438 \u043e\u0434\u043d\u043e \u043d\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f). \u0410 \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430.<\/p>\n<p>  \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0435\u0448\u0430\u044e\u0442\u0441\u044f \u0437\u0430 \u0447\u0430\u0448\u0435\u0447\u043a\u043e\u0439 \u0447\u0430\u044f \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043a\u043e\u043b\u043b\u0435\u0433-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043d\u0430 \u0443\u044e\u0442\u043d\u043e\u0439 \u043e\u0444\u0438\u0441\u043d\u043e\u0439 \u043a\u0443\u0445\u043d\u0435. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0445 \u0441 Figma \u0438 \u0435\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0431\u0440\u0435\u0437\u0433\u0443\u0435\u0442 TypeScript&#8217;\u043e\u043c, \u0438 \u0432\u0441\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u043f\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0414\u0430\u0436\u0435 Golang \u0438 Kotlin \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0437\u0430\u0434\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0446\u0430. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u043f\u044b\u0442 \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0438\u043c\u0435\u043b\u0441\u044f.<\/p>\n<p>  <a name=\"figma\"><\/a><\/p>\n<h2>\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f Figma<\/h2>\n<p>  Figma \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e <a href=\"https:\/\/www.figma.com\/plugin-docs\/setup\/\">\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432<\/a>. \u041a\u043e\u0434 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u00ab\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e\u00bb \u0438 \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e\u00bb \u0447\u0430\u0441\u0442\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 (\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0431\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e). \u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0447\u0435\u0440\u0435\u0437 HTML-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 API \u0442\u0430\u043a \u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 <a href=\"https:\/\/www.figma.com\/plugin-docs\/api\/api-overview\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0434\u0435\u0441\u043a\u0442\u043e\u043f-\u0432\u0435\u0440\u0441\u0438\u0438 Figma, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c WebView, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c JavaScript \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0431\u0435\u0433\u043b\u043e\u0433\u043e \u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e API \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u043d\u043e\u0434, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0441\u0442\u0438\u043b\u0435\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435.<\/p>\n<p>  <a name=\"translation\"><\/a><\/p>\n<h2>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e<\/h2>\n<p>  <a name=\"replacement\"><\/a><\/p>\n<h3>\u0410\u0432\u0442\u043e\u0437\u0430\u043c\u0435\u043d\u0430<\/h3>\n<p>  \u0411\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0438\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c PoC, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u043e\u0439. \u041f\u043e\u043a\u0430 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u043c UI, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u044c. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0440\u0435\u0448\u0438\u043b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0443\u044e\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0438\u0437 Google Sheets. \u041c\u0435\u0436\u0434\u0443 CSV \u0438 TSV \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 TSV: \u0432 \u0442\u0435\u043a\u0441\u0442\u0430\u0445 \u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u044b\u0435, \u044d\u0442\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043b\u043e \u0431\u044b \u043f\u0430\u0440\u0441\u0438\u043d\u0433.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0430\u0440\u0441\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">type Dictionary = {     header: string[];     rows: string[][]; };  async function parseDictionary(serializedDictionary: string): Promise&lt;Dictionary&gt; {     const table = serializedDictionary.split('\\n').map(line =&gt; line.split('\\t').map(field =&gt; field.trim()));     if (table.length === 0) {         throw {error: 'no header in the dictionary'};     }     \/\/ \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0431\u0443\u0434\u0443\u0442 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u0434\u044b     const header = table[0];     const expectedColumnCount = header.length;     const rows = table.slice(1, table.length);     console.log('Dictionary:', {header, rows});     rows.forEach((row, index) =&gt; {         if (row.length != expectedColumnCount) {             throw {error: 'row ' + (index + 2) + ' of the dictionary has ' + row.length + ' (not ' + expectedColumnCount + ') columns'};         }     });     return {header, rows}; } <\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0421\u0442\u0440\u043e\u0438\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u044f\u0437\u044b\u043a\u043e\u0432<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">type Mapping = {     [source: string]: string; };  async function getMapping(dictionary: Dictionary, sourceLanguage: string, targetLanguage: string): Promise&lt;Mapping&gt; {     const sourceColumnIndex = dictionary.header.indexOf(sourceLanguage);     if (sourceColumnIndex == -1) {         throw {error: sourceLanguage + ' not listed in [' + dictionary.header + ']'};     }     const targetColumnIndex = dictionary.header.indexOf(targetLanguage);     if (targetColumnIndex == -1) {         throw {error: targetLanguage + ' not listed in [' + dictionary.header + ']'};     }     const result: Mapping = {};     dictionary.rows.forEach(row =&gt; {         const sourceString = row[sourceColumnIndex];         const targetString = row[targetColumnIndex];         if (targetString.trim() !== '') {             if (sourceString in result) {                 throw {error: 'multiple translations for `' + sourceString + '` in the dictionary'};             }             result[sourceString] = targetString;         }     });     \/\/ \u043a\u0440\u0430\u0439\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 Figma     console.log('Extracted mapping:', result);     return result; } <\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0432\u043e \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043d\u043e\u0434\u044b \u043f\u043e \u043f\u0440\u044f\u043c\u043e\u043c\u0443 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044e<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">type Replacement = null | {     \/\/ \u0432 \u043a\u0430\u043a\u043e\u0439 \u043d\u043e\u0434\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0441\u0442     node: TextNode;     \/\/ \u043d\u0430 \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c     translation: string; };  type ReplacementFailure = {     \/\/ \u0432 \u043a\u0430\u043a\u043e\u0439 \u043d\u043e\u0434\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430     nodeId: string;     \/\/ \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438     error: string; };  type ReplacementAttempt = Replacement | ReplacementFailure;  \/\/ Settings \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e \u0438\u0437 UI async function translateSelection(settings: Settings): Promise&lt;void&gt; {     const dictionary = await parseDictionary(settings.serializedDictionary);     const mapping = await getMapping(dictionary, settings.sourceLanguage, settings.targetLanguage);     await replaceAllTexts(mapping); }  async function replaceAllTexts(mapping: Mapping): Promise&lt;void&gt; {     const textNodes = await findSelectedTextNodes();      let replacements = (await Promise.all(textNodes.map(node =&gt; computeReplacement(node, mapping)))).filter(r =&gt; r !== null);     let failures = replacements.filter(r =&gt; 'error' in r) as ReplacementFailure[];     if (failures.length &gt; 0) {         console.log('Failures:', failures);         throw {error: 'found some untranslatable nodes', failures};     }      replacements.forEach(replaceText); }  async function findSelectedTextNodes(): Promise&lt;TextNode[]&gt; {     const result: TextNode[] = [];     figma.currentPage.selection.forEach(root =&gt; {         if (root.type === 'TEXT') {             \/\/ \u043b\u0438\u0431\u043e \u0432 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043f\u0430\u043b\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u043d\u043e\u0434\u0430             result.push(root as TextNode);         } else if ('findAll' in root) {             \/\/ \u043b\u0438\u0431\u043e \u0444\u0440\u0435\u0439\u043c\/\u0433\u0440\u0443\u043f\u043f\u0430,             \/\/ \u0442\u043e\u0433\u0434\u0430 \u0432 \u043d\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043d\u043e\u0434\u044b \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 findAll             (root as ChildrenMixin).findAll(node =&gt; node.type === 'TEXT').forEach(node =&gt; result.push(node as TextNode));         }     });     return result; }  async function computeReplacement(node: TextNode, mapping: Mapping): Promise&lt;ReplacementAttempt&gt; {     \/\/ \u0442\u0435\u043a\u0441\u0442 \u043d\u043e\u0434\u044b \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044b \u0441\u043b\u043e\u0432,     \/\/ \u0438 \u044d\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430,     \/\/ \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438     const content = normalizeContent(node.characters);      if (!(content in mapping)) {         \/\/ \u043d\u0435 \u043d\u0430\u0448\u043b\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434? \u0436\u0430\u043b\u044c         return {nodeId: node.id, error: 'No translation for `' + content + '`'};     }      const result: Replacement = {         node,         translation: mapping[content],     };     console.log('Replacement:', result);      return result; }  function normalizeContent(content: string): string {     \/\/ \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438\u0437 \u0436\u0438\u0437\u043d\u0438 Unicode:     \/\/   \\u2028 \u2014 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0441\u0442\u0440\u043e\u043a (\u043d\u043e \u043d\u0435 \\n)     \/\/   \\u202F \u2014 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 (?)     \/\/ \u043f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443, \u0441\u0442\u043e\u0438\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438,     \/\/ \u043d\u043e \u043e\u043d\u0438 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c     return content.replace(\/[\\u000A\\u00A0\\u2028\\u202F]\/g, ' ').replace(\/ +\/g, ' '); }  async function replaceText(replacement: Replacement): Promise&lt;void&gt; {     const {node, translation} = replacement;     \/\/ \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c Figma:     \/\/ \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043d\u043e\u0434\u0435, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e     \/\/ \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0440\u0438\u0444\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043d\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f     await loadFontsForNode(node);     node.characters = translation; }  async function loadFontsForNode(node: TextNode): Promise&lt;void&gt; {     await Promise.all(Array.from({length: node.characters.length}, (_, k) =&gt; k).map(i =&gt; {         \/\/ \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e:         \/\/ Figma \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0435\u043a\u0446\u0438\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043d\u043e\u0434\u0435,         \/\/ \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0441\u043b\u0438 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 \u043e\u043d\u043e \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432),         \/\/ \u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 mixed         return figma.loadFontAsync(node.getRangeFontName(i, i + 1) as FontName);     })); } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0412\u0441\u044f \u044d\u0442\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u0447\u0442\u043e \u043f\u043e\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u043e \u0438 \u0432\u0441\u0435\u043b\u0438\u043b\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nh\/wv\/yh\/nhwvyhsozxy6cpypp9t4e-8pkba.gif\" alt=\"\u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\"><\/div>\n<p>  <a name=\"exceptions\"><\/a><\/p>\n<h3>\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h3>\n<p>  \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0431\u044b\u043b\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0445 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432. \u041f\u043e\u0442\u043e\u043c\u0443 \u043e\u043d\u0438 \u0438 \u043d\u0435 \u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2m\/9l\/jh\/2m9ljh-rvsvvgehfpzy9wcww48q.png\" alt=\"\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\"><\/div>\n<p>  \u0418\u043c\u0435\u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435, \u0447\u0438\u0441\u043b\u0430, \u0432\u0430\u043b\u044e\u0442\u044b, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u044d\u043c\u043e\u0434\u0437\u0438\u2026 \u041d\u0435 \u0431\u0435\u0434\u0430. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043e\u043a.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">async function translateSelection(settings: Settings): Promise&lt;void&gt; {     const dictionary = await parseDictionary(settings.serializedDictionary);     const mapping = await getMapping(dictionary, settings.sourceLanguage, settings.targetLanguage);     \/\/ \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439     const exceptions = await parseExceptions(settings.serializedExceptions);     await replaceAllTexts(mapping, exceptions); }  async function parseExceptions(serializedExceptions: string): Promise&lt;RegExp[]&gt; {     return serializedExceptions.split('\\n').filter(pattern =&gt; pattern !== '').map(pattern =&gt; {         try {             return new RegExp(pattern);         } catch (_) {             throw {error: 'invalid regular expression `' + pattern + '`'};         }     }); }  async function replaceAllTexts(mapping: Mapping, exceptions: RegExp[]): Promise&lt;void&gt; {     const textNodes = await findSelectedTextNodes();      \/\/ \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438     let replacements = (await Promise.all(textNodes.map(node =&gt; computeReplacement(node, mapping, exceptions)))).filter(r =&gt; r !== null);     let failures = replacements.filter(r =&gt; 'error' in r) as ReplacementFailure[];     if (failures.length &gt; 0) {         console.log('Failures:', failures);         throw {error: 'found some untranslatable nodes', failures};     }      replacements.forEach(replaceText); }  async function computeReplacement(node: TextNode, mapping: Mapping, exceptions: RegExp[]): Promise&lt;ReplacementAttempt&gt; {     const content = normalizeContent(node.characters);      \/\/ \u0435\u0441\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u043e\u0434\u043d\u0443 \u0438\u0437 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043e\u043a     if (keepAsIs(content, exceptions)) {         \/\/ \u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043c, \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0432 \u044d\u0442\u043e\u0439 \u043d\u043e\u0434\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c         return null;     }      if (!(content in mapping)) {         \/\/ \u043d\u0435 \u043d\u0430\u0448\u043b\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434? \u0436\u0430\u043b\u044c         return {nodeId: node.id, error: 'No translation for `' + content + '`'};     }      const result: Replacement = {         node,         translation: mapping[content],     };     console.log('Replacement:', result);      return result; }  function keepAsIs(content: string, exceptions: RegExp[]): boolean {     for (let regex of exceptions) {         if (content.match(regex)) {             return true;         }     }     return false; }; <\/code><\/pre>\n<\/div><\/div>\n<p>  <a name=\"formatting\"><\/a><\/p>\n<h3>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043b\u0438\u0448\u044c \u0432\u0438\u0448\u0435\u043d\u043a\u0438 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z8\/ik\/pi\/z8ikpihsjmvu88659s6tyai8y8a.gif\" alt=\"\u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0431\u0435\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\"><\/div>\n<p>  \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0438\u0432\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0442\u0438\u043b\u0435\u043c<br \/>  \u0441\u0430\u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0431\u0443\u043a\u0432\u044b. \u041c\u043e\u0436\u0435\u043c \u043b\u0438 \u043c\u044b \u043a\u0430\u043a-\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435? \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0434\u0430. \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u0442\u0435\u043a\u0441\u0442\u0443 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c. \u0417\u0430\u0442\u0435\u043c \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430\u0439\u0442\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e. \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u044f\u0441\u043d\u043e, \u043a\u0430\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u00ab\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439\u00bb. \u041d\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u0442\u0438\u043b\u0438 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u00ab\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u00bb, \u043c\u044b \u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u043e\u0434\u0438\u043d.<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e.<\/p>\n<ol>\n<li>\u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0435 \u043c\u043e\u043d\u043e\u0441\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u043a\u0446\u0438\u0438.<\/li>\n<li>\u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0442\u0438\u043b\u0438, \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e.\n<ul>\n<li>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0441\u0435\u043a\u0446\u0438\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0438\u043b\u0435\u0439.<\/li>\n<li>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0441\u0435\u043a\u0446\u0438\u0439 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 (\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0432\u0441\u0435\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430).<\/li>\n<li>\u0421\u0447\u0438\u0442\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0448\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0442\u0438\u043b\u044c, \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0434\u0432\u0430 \u043f\u0443\u043d\u043a\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0438\u0441\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/li>\n<\/ul>\n<p>  <\/li>\n<li>\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u0449\u0438\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a \u043d\u0435\u043c\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0442\u0438\u043b\u044c.<\/li>\n<li>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0435\u043c\u0443 \u0441\u0442\u0438\u043b\u044c.<\/li>\n<\/ol>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qh\/9h\/7n\/qh9h7nkrp3u09dc3qdpsqlsutta.png\" alt=\"\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\"><\/div>\n<p>  \u041f\u0440\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0443\u0447\u0435\u0441\u0442\u044c, \u0447\u0442\u043e Figma \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0438 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043e\u0431\u0435\u0440\u0442\u043a\u0443 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0443\u043d\u043a\u0442\u0430 1 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0439\u043d\u0435 \u0434\u043e\u0440\u043e\u0433\u043e\u0439. \u0411\u043b\u0430\u0433\u043e, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u044b\u0439 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u044b \u043d\u0430 \u043c\u043e\u043d\u043e\u0441\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u043a\u0446\u0438\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">type Style = {     \/\/ \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440     \/\/ \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439     id: string;     fills: Paint[];     fillStyleId: string;     fontName: FontName;     fontSize: number;     letterSpacing: LetterSpacing;     lineHeight: LineHeight;     textDecoration: TextDecoration;     textStyleId: string; };  type Section = {     \/\/ \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u0435\u043a\u0446\u0438\u0438, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0441 0     from: number;     \/\/ \u043a\u043e\u043d\u0435\u0446 \u0441\u0435\u043a\u0446\u0438\u0438, \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0441 0     to: number;     \/\/ \u0441\u0442\u0438\u043b\u044c \u0432\u0441\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438     style: Style; };  function sliceIntoSections(node: TextNode, from: number = 0, to: number = node.characters.length): Section[] {     if (to == from) {         return [];     }      const style = getSectionStyle(node, from, to);     if (style !== figma.mixed) {         \/\/ \u044d\u0442\u043e \u043c\u043e\u043d\u043e\u0441\u0442\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u043a\u0446\u0438\u044f         return [{from, to, style}];     }      \/\/ \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439!     const center = Math.floor((from + to) \/ 2);     const leftSections = sliceIntoSections(node, from, center);     const rightSections = sliceIntoSections(node, center, to);     const lastLeftSection = leftSections[leftSections.length-1];     const firstRightSection = rightSections[0];     if (lastLeftSection.style.id === firstRightSection.style.id) {         firstRightSection.from = lastLeftSection.from;         leftSections.pop();     }     return leftSections.concat(rightSections); }  function getSectionStyle(node: TextNode, from: number, to: number): Style | PluginAPI['mixed'] {     const fills = node.getRangeFills(from, to);     if (fills === figma.mixed) {         return figma.mixed;     }     const fillStyleId = node.getRangeFillStyleId(from, to);     if (fillStyleId === figma.mixed) {         return figma.mixed;     }     const fontName = node.getRangeFontName(from, to);     if (fontName === figma.mixed) {         return figma.mixed;     }     const fontSize = node.getRangeFontSize(from, to);     if (fontSize === figma.mixed) {         return figma.mixed;     }     const letterSpacing = node.getRangeLetterSpacing(from, to);     if (letterSpacing === figma.mixed) {         return figma.mixed;     }     const lineHeight = node.getRangeLineHeight(from, to);     if (lineHeight === figma.mixed) {         return figma.mixed;     }     const textDecoration = node.getRangeTextDecoration(from, to);     if (textDecoration === figma.mixed) {         return figma.mixed;     }     const textStyleId = node.getRangeTextStyleId(from, to);     if (textStyleId === figma.mixed) {         return figma.mixed;     }     const parameters = {         fills,         fillStyleId,         fontName,         fontSize,         letterSpacing,         lineHeight,         textDecoration,         textStyleId,     };     return {         id: JSON.stringify(parameters),         ...parameters,     }; } <\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0442\u0435\u043a\u0441\u0442\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">\/\/ \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 type Replacement = null | {     node: TextNode;     translation: string;     \/\/ \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 &quot;\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439&quot; \u0441\u0442\u0438\u043b\u044c     baseStyle: Style;     \/\/ \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 translation \u043d\u0430 \u0441\u0435\u043a\u0446\u0438\u0438 \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e     sections: Section[]; };  async function computeReplacement(node: TextNode, mapping: Mapping, exceptions: RegExp[]): Promise&lt;ReplacementAttempt&gt; {     const content = normalizeContent(node.characters);      if (keepAsIs(content, exceptions)) {         return null;     }      if (!(content in mapping)) {         return {nodeId: node.id, error: 'No translation for `' + content + '`'};     }      \/\/ \u0440\u0435\u0436\u0435\u043c \u043d\u0430 \u043c\u043e\u043d\u043e\u0441\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u043a\u0446\u0438\u0438     const sections = sliceIntoSections(node);      \/\/ \u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442     const result: Replacement = {         node,         translation: mapping[content],         baseStyle: null,         sections: [],     };      \/\/ \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043b\u043e\u0433 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0431\u0435\u0437\u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0445 \u043f\u043e\u0438\u0441\u043a\u043e\u0432     const errorLog = [         'Cannot determine a base style for `' + content + '`',         'Split into ' + sections.length + ' sections',     ];      \/\/ \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0438\u043b\u0435\u0439     const styles = [];     const styleIds = new Set&lt;string&gt;();     sections.forEach(({from, to, style}) =&gt; {         if (!styleIds.has(style.id)) {             styleIds.add(style.id);             styles.push({humanId: from + '-' + to, ...style});         }     });      for (let baseStyleCandidate of styles) {         const prelude = 'Style ' + baseStyleCandidate.humanId + ' is not base: ';         let ok = true;         \/\/ \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u043b\u044f \u00ab\u043d\u0435\u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445\u00bb \u0441\u0442\u0438\u043b\u0435\u0439         result.sections.length = 0;         for (let {from, to, style} of sections) {             if (style.id === baseStyleCandidate.id) {                 continue;             }             const sectionContent = normalizeContent(node.characters.slice(from, to));             let sectionTranslation = sectionContent;             \/\/ \u043b\u0438\u0431\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043c\u0435\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e,             \/\/ \u043b\u0438\u0431\u043e \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439             if (sectionContent in mapping) {                 sectionTranslation = mapping[sectionContent];             } else if (!keepAsIs(sectionContent, exceptions)) {                 errorLog.push(prelude + 'no translation for `' + sectionContent + '`');                 ok = false;                 break;             }             const index = result.translation.indexOf(sectionTranslation);             if (index == -1) {                 errorLog.push(prelude + '`' + sectionTranslation + '` not found within `' + result.translation + '`');                 ok = false;                 break;             }             if (result.translation.indexOf(sectionTranslation, index + 1) != -1) {                 errorLog.push(prelude + 'found multiple occurrencies of `' + sectionTranslation + '` within `' + result.translation + '`');                 ok = false;                 break;             }             result.sections.push({from: index, to: index + sectionTranslation.length, style});         }         if (ok) {             \/\/ \u043d\u0430\u0448\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0442\u0438\u043b\u044c!             result.baseStyle = baseStyleCandidate;             break;         }     }      if (result.baseStyle === null) {         return {nodeId: node.id, error: errorLog.join('. ')};     }      console.log('Replacement:', result);      return result; }  async function replaceText(replacement: Replacement): Promise&lt;void&gt; {     \/\/ \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430,     \/\/ \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0442\u0438\u043b\u044f\u043c     await loadFontsForReplacement(replacement);      const {node, translation, baseStyle, sections} = replacement;     node.characters = translation;     if (sections.length &gt; 0) {         setSectionStyle(node, 0, translation.length, baseStyle);         for (let {from, to, style} of sections) {             setSectionStyle(node, from, to, style);         }     } }  async function loadFontsForReplacement(replacement: Replacement): Promise&lt;void&gt; {     await figma.loadFontAsync(replacement.baseStyle.fontName);     await Promise.all(replacement.sections.map(({style}) =&gt; figma.loadFontAsync(style.fontName))); }  function setSectionStyle(node: TextNode, from: number, to: number, style: Style): void {     node.setRangeTextStyleId(from, to, style.textStyleId);      node.setRangeFills(from, to, style.fills);     node.setRangeFillStyleId(from, to, style.fillStyleId);     node.setRangeFontName(from, to, style.fontName);     node.setRangeFontSize(from, to, style.fontSize);     node.setRangeLetterSpacing(from, to, style.letterSpacing);     node.setRangeLineHeight(from, to, style.lineHeight);     node.setRangeTextDecoration(from, to, style.textDecoration); } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u044b\u043b\u043e \u0443\u0434\u0435\u043b\u0435\u043d\u043e \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c<br \/>  \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0434\u043b\u044f \u043d\u0435\u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u0432\u044b\u0448\u0435 \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u2014 \u043a\u0440\u0430\u0439\u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e.<\/p>\n<p>  \u0414\u0430 \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e \u0444\u0440\u0430\u0437\u0435 \u00ab\u041e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e, \u0432\u0441\u0435 \u0435\u0449\u0435 \u043a\u0430\u043a \u043d\u043e\u0432\u044b\u0435\u2026 <b>\u0435\u0449\u0435<\/b>\u00bb \u0441\u043b\u043e\u0432\u043e \u00ab\u0435\u0449\u0435\u00bb \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f\u0437\u044b\u043a\u0438 \u0432\u0435\u0434\u0435\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438 \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u043e\u043d\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0436\u0435 \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043d\u0430\u0448 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0435 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0436\u0438\u0440\u043d\u044b\u043c. \u0422\u0430\u043a\u0443\u044e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0431\u0435\u0437 \u043f\u0440\u043e\u043a\u0430\u0447\u043a\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0415\u0449\u0435 \u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438, \u0447\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441\u043b\u043e\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430\u0445, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0443\u043f\u0430\u0434\u0435\u043c \u0435\u0449\u0435 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zw\/cz\/-v\/zwcz-vtpkinio6gxrdg_k-gm3t8.gif\" alt=\"\u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c\"><\/div>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u044b \u0443\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043c\u043e\u0433\u043b\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043c\u0430\u043a\u0435\u0442\u044b \u043d\u0430 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u044f\u0437\u044b\u043a\u0438 \u043e\u0434\u043d\u0438\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443! \u0412\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0444\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f.<\/p>\n<p>  <a name=\"debugging\"><\/a><\/p>\n<h3>\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430<\/h3>\n<p>  \u041d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u043d\u0435\u0441\u0442\u0438 \u0434\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u043e\u0432, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u043d\u0443\u0436\u043d\u044b\u0445 \u043d\u0430\u043c \u0447\u0430\u0441\u0442\u0435\u0439 \u0444\u0440\u0430\u0437 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u044b \u0441 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0430\u043c\u0430 \u0444\u0440\u0430\u0437\u0430. \u0422\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0441\u043b\u043e\u0432\u043e \u00ab\u0435\u0449\u0435\u00bb \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443.<\/p>\n<p>  \u041d\u0430\u0441 \u0441\u043f\u0430\u0441 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u0441 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043d\u043e\u0434\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438. \u0412 Figma \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u044b\u043b\u043a\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c:<\/p>\n<pre><code class=\"javascript\">if (message.type === 'focus-node') {     \/\/ \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0435\u043c\u0441\u044f     figma.viewport.zoom = 1000.0;     \/\/ \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c viewport \u0432 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0433\u0434\u0435 \u043d\u043e\u0434\u0430 \u0432\u0438\u0434\u043d\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c     figma.viewport.scrollAndZoomIntoView([figma.getNodeById(message.id)]);     \/\/ \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u044f\u0435\u043c \u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u044f     figma.viewport.zoom = 0.75 * figma.viewport.zoom; } <\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0442\u0430\u043a\u0436\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0443\u043c\u0435\u0442\u044c \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u043e\u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0412\u0441\u0435, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043c\u044b, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0443\u0436\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0441\u0440\u0435\u0434\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0442\u043e\u0442, \u0447\u0442\u043e \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c \u0434\u043e\u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0440\u0430\u0437\u044b<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function suggest(node: TextNode, content: string, sections: Section[], mapping: Mapping, exceptions: RegExp[]): string[] {     const n = content.length;     const styleScores = new Map&lt;string, number&gt;();     for (let {from, to, style} of sections) {         styleScores.set(style.id, n + to - from + (styleScores.get(style.id) || 0));     }     let suggestedBaseStyleId: string = null;     let suggestedBaseStyleScore = 0;     for (let [styleId, styleScore] of styleScores) {         if (styleScore &gt; suggestedBaseStyleScore) {             suggestedBaseStyleId = styleId;             suggestedBaseStyleScore = styleScore;         }     }      const result: string[] = [];     if (!(content in mapping)) {         result.push(content);     }     for (let {from, to, style} of sections) {         if (style.id === suggestedBaseStyleId) {             continue;         }         const sectionContent = normalizeContent(node.characters.slice(from, to));         if (!keepAsIs(sectionContent, exceptions) &amp;&amp; !(sectionContent in mapping)) {             result.push(sectionContent);         }     }     return result; } <\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/83\/cj\/e_\/83cje_zleibpb4pm7cm30spqvxy.png\" alt=\"\u043e\u0448\u0438\u0431\u043a\u0438\"><\/div>\n<p>  <a name=\"rtl\"><\/a><\/p>\n<h3>\u05e2\u05dd \u05d4\u05d0\u05d5\u05db\u05dc \u05d1\u05d0 \u05d4\u05ea\u05d9\u05d0\u05d1\u05d5\u05df<\/h3>\n<p>  \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0432\u0441\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0441 RTL \u044f\u0437\u044b\u043a\u0430\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043b\u0438\u0448\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u0443 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u043f\u043e \u0442\u043e\u0447\u043d\u043e\u043c\u0443 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044e. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e Figma \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c RTL \u0442\u0435\u043a\u0441\u0442\u044b \u2014 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0438\u0445 \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e. \u0410 \u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u0435\u0431\u0440\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 RTL \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435, \u0447\u0435\u0433\u043e \u0431\u044b \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c.<\/p>\n<p>  \u0414\u0430, \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430 \u0430\u0440\u0430\u0431\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d, \u043f\u044b\u0442\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c RTL \u0442\u0435\u043a\u0441\u0442\u044b, \u043d\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0435 \u0440\u0435\u0448\u0438\u043b\u043e \u043d\u0430\u0448\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0425\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u043e\u0447\u044c \u0441\u043b\u0435\u0442\u0430\u043b\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0410\u043f\u043f\u0435\u0442\u0438\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0435\u0434\u044b. \u041f\u0443\u0442\u0438 \u043d\u0430\u0437\u0430\u0434 \u0443\u0436\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e. \u0411\u044b\u043b\u0430 \u0432\u0438\u0434\u043d\u0430 \u043b\u0438\u0448\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d.<\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u043e.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pl\/9k\/ty\/pl9ktyinsyfecllwnlutqkip3py.png\" alt=\"\u043d\u0430\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a RTL\"><\/div>\n<p>  \u0422\u0430\u043a. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u0441\u044f \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e, \u043d\u043e Figma \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0435 \u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044b \u0441\u0442\u0440\u043e\u043a \u0442\u0430\u043a, \u0441\u043b\u043e\u0432\u043d\u043e \u044d\u0442\u043e LTR \u0442\u0435\u043a\u0441\u0442. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445. \u0411\u0435\u0434\u0430. \u0424\u0430\u043a\u0442 \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u0432 Figma \u043d\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0432 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c \u043d\u043e\u0434\u044b, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435, \u043d\u0438\u043a\u0430\u043a \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u2026 \u0420\u0430\u0437\u0432\u0435 \u0447\u0442\u043e\u2026 \u0415\u0441\u043b\u0438 \u043d\u043e\u0434\u0430 \u0438\u043c\u0435\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443, \u0442\u043e \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0432\u044b\u0441\u043e\u0442\u0430 \u043d\u043e\u0434\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f!<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u043b\u0430\u043d \u0442\u0430\u043a\u043e\u0439.<\/p>\n<ol>\n<li>\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434, \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435.<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u043d\u043e\u0434\u0443 \u0441 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0439 \u0432\u044b\u0441\u043e\u0442\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 (\u0435\u0441\u043b\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0448\u0438\u0440\u0438\u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043d\u043e\u0434\u044b \u0442\u043e\u0436\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0430).<\/li>\n<li>\u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0430 \u0441\u043b\u043e\u0432\u0430 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u0432 \u0441\u043a\u0440\u044b\u0442\u0443\u044e \u043d\u043e\u0434\u0443 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 (\u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e). \u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0432\u044b\u0441\u043e\u0442\u0430 \u0441\u043a\u0440\u044b\u0442\u043e\u0439 \u043d\u043e\u0434\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c, \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u0441\u044f, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0441\u0442\u0440\u043e\u043a \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c.<\/li>\n<li>\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0435\u0441\u044f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0438\u0440\u0443\u0435\u043c.<\/li>\n<li>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043d\u043e\u0434\u0443.<\/li>\n<li>\u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 (\u0435\u0441\u043b\u0438 \u0431\u044b\u043b\u043e \u043f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443, \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442).<\/li>\n<\/ol>\n<p>  \u0411\u043e\u043b\u044c\u0448\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0442\u0435\u043c, \u043a\u0430\u043a \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0435\u043a\u0446\u0438\u0438.<\/p>\n<p>  \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u043d\u0430 \u0440\u043e\u0432\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439.<\/p>\n<ul>\n<li>\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0430\u0440\u0430\u0431\u0441\u043a\u0438\u0439 \u0438 \u0438\u0432\u0440\u0438\u0442. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043f\u043e \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u044e (\u0430 \u0438\u0445 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e).<\/li>\n<li>\u041d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0440\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442, \u0435\u0441\u043b\u0438 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0443, \u0446\u0438\u0444\u0440\u044b \u0438 \u0442.\u043f. \u042d\u0442\u0438 \u0447\u0430\u0441\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e \u0434\u0430\u0436\u0435 \u0432 RTL \u0442\u0435\u043a\u0441\u0442\u0435.<\/li>\n<li>\u041e\u0442 \u0441\u0442\u0438\u043b\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u043b\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043a\u0440\u044b\u0442\u043e\u0439 \u043d\u043e\u0434\u044b \u0442\u0435\u043a\u0441\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/li>\n<li>\u041f\u0435\u0440\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0432\u043b\u0435\u0437\u0442\u044c \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435, \u0442\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c.<\/li>\n<li>\u041d\u0430\u0448\u043b\u0438\u0441\u044c \u0441\u043b\u043e\u0432\u0430 \u0432 \u0430\u0440\u0430\u0431\u0441\u043a\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u043f\u043e\u0441\u043b\u0435 \u043d\u0438\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0438\u0441\u044c \u0432 Figma \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 RTL \u044f\u0437\u044b\u043a\u043e\u0432 \u044f \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0441\u0442\u0430\u043d\u0443 \u2014 \u043e\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432 <a href=\"https:\/\/github.com\/thoughteer\/figma-static-localizer\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a>.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u0437\u0430\u043d\u044f\u043b \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0438\u043b, \u0447\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u044b\u043b \u043f\u043e\u0438\u0441\u0442\u0438\u043d\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0449\u0438\u043c!<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ha\/hl\/dv\/hahldvyjiy7v6j9ls4z1mu5rhuc.gif\" alt=\"\u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0430 \u0430\u0440\u0430\u0431\u0441\u043a\u0438\u0439\"><\/div>\n<p>  \u041d\u0430 \u0434\u0435\u0441\u0435\u0440\u0442.<\/p>\n<ul>\n<li>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0430\u0440\u0430\u0431\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u2014 \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443\u0447\u0435\u0441\u0442\u044c \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0441\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u0433\u0430\u0442\u0443\u0440\u044b.<\/li>\n<li>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043d\u0430 RTL \u044f\u0437\u044b\u043a\u0430\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438, \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0445\u043e\u0442\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438 \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/li>\n<li>\u041f\u043e\u043f\u0443\u0442\u043d\u043e \u043d\u0430\u043c\u0438 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0438 \u0437\u0430\u0440\u0435\u043f\u043e\u0440\u0447\u0435\u043d \u0431\u0430\u0433 \u0432 Figma, \u0438\u0437-\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u044b \u0432 \u0430\u0440\u0430\u0431\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u043b\u0438\u0433\u0430\u0442\u0443\u0440\u044b \u00ab\u0440\u0430\u0437\u0432\u044f\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c\u00bb.<\/li>\n<\/ul>\n<p>  <a name=\"currencies\"><\/a><\/p>\n<h2>\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u043b\u044e\u0442<\/h2>\n<p>  \u0422\u0430\u043a \u0443\u0436 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043c\u044b \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441, \u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u043e\u0432\u0430\u0440\u044b. \u0418 \u0442\u043e\u0432\u0430\u0440\u044b \u0438\u043c\u0435\u044e\u0442 \u0446\u0435\u043d\u0443. \u041c\u043e\u0436\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u0442\u0434\u0430\u0442\u044c \u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0432\u0438\u0434\u0430 \u00ab1 234 \u20bd\u00bb \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430\u043c \u0438 \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0446\u0435\u043d\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432 \u0432\u0435\u0440\u043d\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u0432\u0435\u0440\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u0438 \u0432\u0430\u043b\u044e\u0442 \u0438 \u0432\u0435\u0440\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0438\u0444\u0440 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439\u2026 \u041d\u043e \u0437\u0430\u0447\u0435\u043c, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0432 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440?<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0430\u043b\u044e\u0442\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">type Currency = {     \/\/ \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u0443 \u043d\u0430\u0441 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u043c     code: string;     \/\/ \u0441\u0445\u0435\u043c\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 123 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043d\u0443\u0436\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0432\u0440\u043e\u0434\u0435 &quot;$123&quot;     schema: string;     \/\/ \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0442\u044b\u0441\u044f\u0447     digitGroupSeparator: string;     \/\/ \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 (\u043e\u0431\u044b\u0447\u043d\u043e \u0442\u043e\u0447\u043a\u0430 \u0438\u043b\u0438 \u0437\u0430\u043f\u044f\u0442\u0430\u044f)     decimalSeparator: string;     \/\/ \u043a\u043e\u043b-\u0432\u043e \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u043a\u043e\u0432 \u0432 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438     precision: number;     \/\/ \u043a\u0443\u0440\u0441 \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u0435 (\u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0431\u0449\u0435\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430)     rate: number; };  async function convertCurrencyInSelection(settings: Settings): Promise&lt;void&gt; {     const currencies = parseCurrencies(settings.serializedCurrencies);     console.log('Currencies:', currencies);     const sourceCurrency = currencies.filter(currency =&gt; currency.code === settings.sourceCurrencyCode)[0];     if (sourceCurrency === undefined) {         throw {error: 'unknown currency code `' + settings.sourceCurrencyCode + '`'};     }     const targetCurrency = currencies.filter(currency =&gt; currency.code === settings.targetCurrencyCode)[0];     if (targetCurrency === undefined) {         throw {error: 'unknown currency code `' + settings.targetCurrencyCode + '`'};     }     await replaceCurrencyInAllTexts(sourceCurrency, targetCurrency); }  function parseCurrencies(serializedCurrencies: string): Currency[] {     const codeSet = new Set&lt;string&gt;();     return JSON.parse(serializedCurrencies).map((x: any, index: number) =&gt; {         const currency: Currency = {             code: null,             schema: null,             digitGroupSeparator: null,             decimalSeparator: null,             precision: null,             rate: null,         };         Object.keys(currency).forEach(key =&gt; {             if (x[key] === undefined || x[key] === null) {                 throw {error: 'invalid currency definition: no `' + key + '` in entry #' + (index + 1)};             }             if (key === 'schema' &amp;&amp; x[key].indexOf('123') === -1) {                 throw {error: 'schema in entry #' + (index + 1) + ' should contain `123`'};             }             if (key === 'rate' &amp;&amp; x[key] &lt;= 0) {                 throw {error: 'non-positive rate in entry #' + (index + 1)};             }             currency[key] = x[key];         });         if (currency.precision &gt; 0 &amp;&amp; currency.decimalSeparator === '') {             throw {error: 'entry #' + (index + 1) + ' must have a non-empty decimal separator'};         }         if (codeSet.has(currency.code)) {             throw {error: 'multiple entries for `' + currency.code + '`'};         }         codeSet.add(currency.code);         return currency;     }); }  async function replaceCurrencyInAllTexts(sourceCurrency: Currency, targetCurrency: Currency): Promise&lt;void&gt; {     const textNodes = await findSelectedTextNodes();      const escapedSchema = escapeForRegExp(sourceCurrency.schema);     const escapedDigitGroupSeparator = escapeForRegExp(sourceCurrency.digitGroupSeparator);     const escapedDecimalSeparator = escapeForRegExp(sourceCurrency.decimalSeparator);     const sourceValueRegExpString = '((?:[0-9]|' + escapedDigitGroupSeparator + ')+' + escapedDecimalSeparator + '[0-9]{' + sourceCurrency.precision + '})';     const sourceRegExp = new RegExp('^' + escapedSchema.replace('123', sourceValueRegExpString) + '$');     console.log('Source regular expression:', sourceRegExp.toString());      await Promise.all(textNodes.map(async node =&gt; {         const content = node.characters;         const match = content.match(sourceRegExp);         if (match !== null &amp;&amp; match[1] !== null &amp;&amp; match[1] !== undefined) {             const style = getSectionStyle(node, 0, node.characters.length);             if (style === figma.mixed) {                 throw {error: 'node `' + content + '` has a mixed style'};             }              let sourceValueString = match[1].replace(new RegExp(escapedDigitGroupSeparator, 'g'), '');             if (sourceCurrency.decimalSeparator !== '') {                 sourceValueString = sourceValueString.replace(sourceCurrency.decimalSeparator, '.');             }             const sourceValue = parseFloat(sourceValueString);             const targetValue = sourceValue * targetCurrency.rate \/ sourceCurrency.rate;             const truncatedTargetValue = Math.trunc(targetValue);             const targetValueFraction = targetValue - truncatedTargetValue;             const targetValueString = (                 truncatedTargetValue.toString().replace(\/(\\d)(?=(\\d{3})+(?!\\d))\/g, '$1,').replace(\/,\/g, targetCurrency.digitGroupSeparator) +                 targetCurrency.decimalSeparator +                 targetValueFraction.toFixed(targetCurrency.precision).slice(2)             );              await figma.loadFontAsync(style.fontName);             node.characters = targetCurrency.schema.replace('123', targetValueString);         }     })); }  function escapeForRegExp(s: string): string {     return s.replace(\/([[\\^$.|?*+()])\/g, '\\\\$1'); } <\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/l_\/ph\/ac\/l_phacrdvoxek4zdqryfwpb4jf0.gif\" alt=\"\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u0432\u0430\u043b\u044e\u0442\"><\/div>\n<p>  <a name=\"publication\"><\/a><\/p>\n<h2>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f<\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0431\u044b\u043b \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d \u0440\u044f\u0434 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 UX. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u0438\u0441\u044c \u0432 localStorage (\u0434\u0430, Figm\u0430 \u0442\u0430\u043a\u043e\u0435 \u0443\u043c\u0435\u0435\u0442!). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432. \u0410 \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0430\u043b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u043f\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0441\u0430\u043c\u043e\u0439 \u0436\u0435 Figma, \u0431\u044b\u043b\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"https:\/\/github.com\/thoughteer\/figma-static-localizer\/blob\/841ed1946951a9f5b43c8a79155104c8279b3c23\/code.ts#L740\">mapWithRateLimit<\/a>. \u041d\u0430 \u0441\u0434\u0430\u0447\u0443 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u044b.<\/p>\n<p>  \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0437\u0430\u043d\u044f\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0432\u0443\u0445 \u043d\u0435\u0434\u0435\u043b\u044c, \u043d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e.<\/p>\n<p>  <a name=\"summary\"><\/a><\/p>\n<h2>\u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0411\u0435\u0437 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043d\u0435 \u043e\u0431\u043e\u0448\u043b\u0430\u0441\u044c \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u041d\u043e\u0432\u043e\u043c\u0443 \u0433\u043e\u0434\u0443.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-x\/yl\/ef\/-xylefgtrnhxchnqinlvmn8jeqi.png\" alt=\"\u043d\u043e\u0432\u044b\u0439 \u0433\u043e\u0434\"><\/div>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0442\u043e\u0439 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 <a href=\"https:\/\/www.figma.com\/community\/plugin\/887687372515610323\/Harry-Exporter\">\u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c<\/a> \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438\u0437 Figma \u0432\u0435\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u0440\u0445\u0438\u0432\u0430 \u0438\u0437 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a.<\/p>\n<p>  \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u0410\u043d\u044e \u041d\u043e\u0434\u0436\u0430\u0301\u043a, \u0434\u0438\u0437\u0430\u0439\u043d-\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0430 Joom, \u0437\u0430 \u0432\u0435\u0440\u0443 \u0432 \u043c\u043e\u0438 \u0441\u0438\u043b\u044b. \u041e\u0447\u0435\u043d\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0435 <a href=\"https:\/\/vc.ru\/design\/192051-kak-my-nauchilis-delat-lokalizaciyu-maketov-v-figma-v-odin-klik\">\u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0443<\/a>.<\/p>\n<h4>\u0421\u0441\u044b\u043b\u043a\u0438<\/h4>\n<p>  <a href=\"https:\/\/github.com\/thoughteer\/figma-static-localizer\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Static Localizer \u043d\u0430 GitHub<\/a><br \/>  <a href=\"https:\/\/www.figma.com\/community\/plugin\/876934931929982678\/Static-Localizer\">\u041f\u043b\u0430\u0433\u0438\u043d Static Localizer \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 Figma<\/a><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/joom\/blog\/535188\/\"> https:\/\/habr.com\/ru\/company\/joom\/blog\/535188\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0412 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0448\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u043e\u0440\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0431\u043b\u043e\u0436\u043a\u0438<br \/>  \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 Apple Store \u0438 Google Play. \u041d\u0430 \u0432\u0441\u0435\u0445 17 \u044f\u0437\u044b\u043a\u0430\u0445.<\/p>\n<p>  \u042d\u0442\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u043d\u044b\u0440\u043d\u0443\u0442\u044c \u0432 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0438 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e, \u043f\u043e\u043c\u043e\u0447\u044c \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434 \u0432 open source community.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/og\/as\/cy\/ogascye2bkpil1qhg58vfcbrvdu.jpeg\" alt=\"\u043c\u0435\u043c\u0430\u0441\u0438\u043a\"><\/div>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-315750","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=315750"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315750\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}