@docusaurus/theme-translations 2.0.0-beta.20 → 2.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js.map +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +2 -5
- package/lib/utils.js.map +1 -1
- package/locales/fa/plugin-ideal-image.json +5 -5
- package/locales/fa/plugin-pwa.json +1 -1
- package/locales/fa/theme-common.json +27 -27
- package/locales/fa/theme-live-codeblock.json +1 -1
- package/locales/fa/theme-search-algolia.json +1 -1
- package/locales/fr/plugin-ideal-image.json +5 -5
- package/locales/fr/theme-common.json +9 -9
- package/locales/fr/theme-search-algolia.json +1 -1
- package/locales/zh-Hans/theme-common.json +1 -1
- package/locales/zh-Hant/theme-common.json +1 -1
- package/package.json +7 -7
- package/src/index.ts +3 -3
- package/src/utils.ts +2 -5
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,wDAAwB;AACxB,gEAA0B;AAG1B,SAAS,wBAAwB;IAC/B,OAAO,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;AAC5C,CAAC;AAED,kDAAkD;AAClD,SAAgB,2BAA2B,CAAC,MAAc;IACxD,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,wEAAwE;IACxE,yBAAyB;IACzB,8EAA8E;IAC9E,MAAM,eAAe,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,eAAe;IAC9D,OAAO;QACL,2EAA2E;QAC3E,uCAAuC;QACvC,MAAM;QACN,oBAAoB;QACpB,GAAG,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;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":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAU9D,wBAAsB,SAAS,IAAI,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,EAAE,CAAA;CAAC,EAAE,CAAC,CA0B1E;AAED,wBAAsB,wBAAwB,CAC5C,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,sBAAsB,CAAC,CAmCjC"}
|
package/lib/utils.js
CHANGED
|
@@ -20,12 +20,9 @@ const translationsExtractor_1 = require("@docusaurus/core/lib/server/translation
|
|
|
20
20
|
async function getPackageCodePath(packageName) {
|
|
21
21
|
const packagePath = path_1.default.join(__dirname, '../..', packageName);
|
|
22
22
|
const packageJsonPath = path_1.default.join(packagePath, 'package.json');
|
|
23
|
-
const { main } = await fs_extra_1.default.readJSON(packageJsonPath);
|
|
23
|
+
const { main } = (await fs_extra_1.default.readJSON(packageJsonPath));
|
|
24
24
|
const packageSrcPath = path_1.default.join(packagePath, path_1.default.dirname(main));
|
|
25
|
-
|
|
26
|
-
return (await fs_extra_1.default.pathExists(packageLibNextPath))
|
|
27
|
-
? packageLibNextPath
|
|
28
|
-
: packageSrcPath;
|
|
25
|
+
return packageSrcPath;
|
|
29
26
|
}
|
|
30
27
|
async function getThemes() {
|
|
31
28
|
return [
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,4EAA4E;AAC5E,8EAA8E;AAC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AAQ,CAAC,IAAI,CAAC,MAAM,CAAC;CAChD,CAAC,CAAC;SACE;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,0BAA0B,CAAC,MAAM,CACpD,CAAC,GAAG,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,GAAG;QACN,GAAG,qBAAqB,CAAC,YAAY;KACtC,CAAC,EACF,EAAE,CACH,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC;AArCD,4DAqCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"theme.IdealImageMessage.404error": "
|
|
3
|
-
"theme.IdealImageMessage.error": "
|
|
4
|
-
"theme.IdealImageMessage.load": "
|
|
5
|
-
"theme.IdealImageMessage.loading": "
|
|
6
|
-
"theme.IdealImageMessage.offline": "
|
|
2
|
+
"theme.IdealImageMessage.404error": "۴۰۴. تصویر پیدا نشد.",
|
|
3
|
+
"theme.IdealImageMessage.error": "خطا. تلاش مجدد",
|
|
4
|
+
"theme.IdealImageMessage.load": "برای بارگزاری {sizeMessage} کلیک کنید",
|
|
5
|
+
"theme.IdealImageMessage.loading": "در حال بارگیری...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "مرورگر شما آفلاین است. تصویر بارگیری نشده است."
|
|
7
7
|
}
|
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
"theme.BackToTopButton.buttonAriaLabel": "بازگشت به بالا",
|
|
4
4
|
"theme.CodeBlock.copied": "کپی شد",
|
|
5
5
|
"theme.CodeBlock.copy": "کپی",
|
|
6
|
-
"theme.CodeBlock.copyButtonAriaLabel": "کپی به
|
|
7
|
-
"theme.CodeBlock.wordWrapToggle": "
|
|
8
|
-
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "
|
|
9
|
-
"theme.ErrorPageContent.title": "
|
|
10
|
-
"theme.ErrorPageContent.tryAgain": "
|
|
11
|
-
"theme.NotFound.p1": "
|
|
6
|
+
"theme.CodeBlock.copyButtonAriaLabel": "کپی به کلیپبورد",
|
|
7
|
+
"theme.CodeBlock.wordWrapToggle": "تغییر نحوه نمایش کلمه",
|
|
8
|
+
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "دستهبندی برچسب '{label}' در نوار کناری را تغییر دهید ",
|
|
9
|
+
"theme.ErrorPageContent.title": "بارگذاری صفحه با خطا روبرو شد.",
|
|
10
|
+
"theme.ErrorPageContent.tryAgain": "تلاش مجدد",
|
|
11
|
+
"theme.NotFound.p1": "صفحهای که دنبال آن بودید پیدا نشد.",
|
|
12
12
|
"theme.NotFound.p2": "لطفا با صاحب وبسایت تماس بگیرید و ایشان را از مشکل پیش آمده مطلع کنید.",
|
|
13
13
|
"theme.NotFound.title": "صفحه ای که دنبال آن بودید پیدا نشد.",
|
|
14
14
|
"theme.TOCCollapsible.toggleButtonLabel": "مطالب این صفحه",
|
|
15
15
|
"theme.blog.archive.description": "آرشیو",
|
|
16
16
|
"theme.blog.archive.title": "آرشیو",
|
|
17
|
-
"theme.blog.paginator.navAriaLabel": "کنترل لیست مطالب
|
|
18
|
-
"theme.blog.paginator.newerEntries": "مطالب
|
|
19
|
-
"theme.blog.paginator.olderEntries": "مطالب
|
|
20
|
-
"theme.blog.post.paginator.navAriaLabel": "کنترل
|
|
21
|
-
"theme.blog.post.paginator.newerPost": "پست
|
|
22
|
-
"theme.blog.post.paginator.olderPost": "پست
|
|
17
|
+
"theme.blog.paginator.navAriaLabel": "کنترل لیست مطالب وبلاگ",
|
|
18
|
+
"theme.blog.paginator.newerEntries": "مطالب جدیدتر",
|
|
19
|
+
"theme.blog.paginator.olderEntries": "مطالب قدیمیتر",
|
|
20
|
+
"theme.blog.post.paginator.navAriaLabel": "کنترل پستهای صفحه وبلاگ",
|
|
21
|
+
"theme.blog.post.paginator.newerPost": "پست جدیدتر",
|
|
22
|
+
"theme.blog.post.paginator.olderPost": "پست قدیمیتر",
|
|
23
23
|
"theme.blog.post.plurals": "یک پست|{count} پست",
|
|
24
24
|
"theme.blog.post.readMore": "ادامه مطلب",
|
|
25
|
-
"theme.blog.post.readMoreLabel": "
|
|
25
|
+
"theme.blog.post.readMoreLabel": "درباره {title} بیشتر بخوانید",
|
|
26
26
|
"theme.blog.post.readingTime.plurals": "خواندن ۱ دقیقه|خواندن {readingTime} دقیقه",
|
|
27
|
-
"theme.blog.sidebar.navAriaLabel": "کنترل
|
|
27
|
+
"theme.blog.sidebar.navAriaLabel": "کنترل پستهای اخیر وبلاگ",
|
|
28
28
|
"theme.blog.tagTitle": "{nPosts} با برچسب \"{tagName}\"",
|
|
29
|
-
"theme.colorToggle.ariaLabel": "
|
|
30
|
-
"theme.colorToggle.ariaLabel.mode.dark": "
|
|
31
|
-
"theme.colorToggle.ariaLabel.mode.light": "
|
|
29
|
+
"theme.colorToggle.ariaLabel": "بین حالت تاریک و روشن سوئیچ کنید (الان {mode})",
|
|
30
|
+
"theme.colorToggle.ariaLabel.mode.dark": "حالت تیره",
|
|
31
|
+
"theme.colorToggle.ariaLabel.mode.light": "حالت روشن",
|
|
32
32
|
"theme.common.editThisPage": "ویرایش مطالب این صفحه",
|
|
33
33
|
"theme.common.headingLinkTitle": "لینک مستقیم به عنوان",
|
|
34
34
|
"theme.common.skipToMainContent": "پرش به مطلب اصلی",
|
|
35
|
-
"theme.docs.DocCard.categoryDescription": "{count}
|
|
36
|
-
"theme.docs.breadcrumbs.home": "
|
|
37
|
-
"theme.docs.breadcrumbs.navAriaLabel": "
|
|
35
|
+
"theme.docs.DocCard.categoryDescription": "{count} مورد",
|
|
36
|
+
"theme.docs.breadcrumbs.home": "صفحه اصلی",
|
|
37
|
+
"theme.docs.breadcrumbs.navAriaLabel": "نشانگر صفحات",
|
|
38
38
|
"theme.docs.paginator.navAriaLabel": "کنترل صفحات مطالب",
|
|
39
39
|
"theme.docs.paginator.next": "بعدی",
|
|
40
40
|
"theme.docs.paginator.previous": "قبلی",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"theme.docs.sidebar.expandButtonTitle": "باز کردن نوار کناری",
|
|
45
45
|
"theme.docs.tagDocListPageTitle": "{nDocsTagged} با \"{tagName}\"",
|
|
46
46
|
"theme.docs.tagDocListPageTitle.nDocsTagged": "یک مطلب برچسب شده|{count} مطلب برچسب شده",
|
|
47
|
-
"theme.docs.versionBadge.label": "
|
|
47
|
+
"theme.docs.versionBadge.label": "نسخه: {versionLabel}",
|
|
48
48
|
"theme.docs.versions.latestVersionLinkLabel": "آخرین نسخه",
|
|
49
49
|
"theme.docs.versions.latestVersionSuggestionLabel": "برای دیدن آخرین نسخه این متن، نسخه {latestVersionLink} ({versionLabel}) را ببینید.",
|
|
50
|
-
"theme.docs.versions.unmaintainedVersionLabel": "نسخه {siteTitle} {versionLabel} دیگر به
|
|
50
|
+
"theme.docs.versions.unmaintainedVersionLabel": "نسخه {siteTitle} {versionLabel} دیگر به روز رسانی نمی شود.",
|
|
51
51
|
"theme.docs.versions.unreleasedVersionLabel": "نسخه {siteTitle} {versionLabel} هنوز به صورت کامل منتشر نشده است.",
|
|
52
52
|
"theme.lastUpdated.atDate": " در تاریخ {date}",
|
|
53
53
|
"theme.lastUpdated.byUser": " توسط {user}",
|
|
54
|
-
"theme.lastUpdated.lastUpdatedAtBy": "آخرین
|
|
54
|
+
"theme.lastUpdated.lastUpdatedAtBy": "آخرین به روز رسانی{atDate}{byUser}",
|
|
55
55
|
"theme.navbar.mobileLanguageDropdown.label": "Languages",
|
|
56
56
|
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "→ بازگشت به منو اصلی",
|
|
57
|
-
"theme.navbar.mobileVersionsDropdown.label": "
|
|
58
|
-
"theme.tags.tagsListLabel": "
|
|
59
|
-
"theme.tags.tagsPageLink": "مشاهده تمام
|
|
60
|
-
"theme.tags.tagsPageTitle": "
|
|
57
|
+
"theme.navbar.mobileVersionsDropdown.label": "نسخهها",
|
|
58
|
+
"theme.tags.tagsListLabel": "برچسبها:",
|
|
59
|
+
"theme.tags.tagsPageLink": "مشاهده تمام برچسبها",
|
|
60
|
+
"theme.tags.tagsPageTitle": "برچسبها"
|
|
61
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"theme.SearchBar.label": "جستجو",
|
|
3
|
-
"theme.SearchBar.seeAll": "
|
|
3
|
+
"theme.SearchBar.seeAll": "نمایش {count} نتیجه",
|
|
4
4
|
"theme.SearchPage.algoliaLabel": "جستجو با Algolia",
|
|
5
5
|
"theme.SearchPage.documentsFound.plurals": "یک مورد پیدا شد|{count} مورد پیدا شد",
|
|
6
6
|
"theme.SearchPage.emptyResultsTitle": "جستجو در متن",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"theme.IdealImageMessage.404error": "404. Image
|
|
3
|
-
"theme.IdealImageMessage.error": "
|
|
4
|
-
"theme.IdealImageMessage.load": "
|
|
5
|
-
"theme.IdealImageMessage.loading": "
|
|
6
|
-
"theme.IdealImageMessage.offline": "
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image introuvable",
|
|
3
|
+
"theme.IdealImageMessage.error": "Erreur. Cliquez pour recharger",
|
|
4
|
+
"theme.IdealImageMessage.load": "Cliquez pour charger{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Chargement ...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Votre navigateur est hors ligne. Image non chargée"
|
|
7
7
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"theme.AnnouncementBar.closeButtonAriaLabel": "Fermer",
|
|
3
|
-
"theme.BackToTopButton.buttonAriaLabel": "
|
|
3
|
+
"theme.BackToTopButton.buttonAriaLabel": "Retour au début de la page",
|
|
4
4
|
"theme.CodeBlock.copied": "Copié",
|
|
5
5
|
"theme.CodeBlock.copy": "Copier",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Copier le code",
|
|
7
|
-
"theme.CodeBlock.wordWrapToggle": "
|
|
8
|
-
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "
|
|
7
|
+
"theme.CodeBlock.wordWrapToggle": "Activer/désactiver le retour à la ligne",
|
|
8
|
+
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "Plier/Déplier la catégorie '{label}' de la barre latérale",
|
|
9
9
|
"theme.ErrorPageContent.title": "Cette page a planté.",
|
|
10
10
|
"theme.ErrorPageContent.tryAgain": "Réessayer",
|
|
11
11
|
"theme.NotFound.p1": "Nous n'avons pas trouvé ce que vous recherchez.",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"theme.blog.post.paginator.olderPost": "Article plus ancien",
|
|
23
23
|
"theme.blog.post.plurals": "Un article|{count} articles",
|
|
24
24
|
"theme.blog.post.readMore": "Lire plus",
|
|
25
|
-
"theme.blog.post.readMoreLabel": "
|
|
25
|
+
"theme.blog.post.readMoreLabel": "En savoir plus sur {title}",
|
|
26
26
|
"theme.blog.post.readingTime.plurals": "Une minute de lecture|{readingTime} minutes de lecture",
|
|
27
27
|
"theme.blog.sidebar.navAriaLabel": "Navigation article de blog récent",
|
|
28
28
|
"theme.blog.tagTitle": "{nPosts} tagués avec « {tagName} »",
|
|
29
|
-
"theme.colorToggle.ariaLabel": "
|
|
30
|
-
"theme.colorToggle.ariaLabel.mode.dark": "
|
|
31
|
-
"theme.colorToggle.ariaLabel.mode.light": "
|
|
29
|
+
"theme.colorToggle.ariaLabel": "Basculer entre le mode sombre et clair (actuellement {mode})",
|
|
30
|
+
"theme.colorToggle.ariaLabel.mode.dark": "mode sombre",
|
|
31
|
+
"theme.colorToggle.ariaLabel.mode.light": "mode clair",
|
|
32
32
|
"theme.common.editThisPage": "Éditer cette page",
|
|
33
33
|
"theme.common.headingLinkTitle": "Lien direct vers le titre",
|
|
34
34
|
"theme.common.skipToMainContent": "Aller au contenu principal",
|
|
35
|
-
"theme.docs.DocCard.categoryDescription": "{count}
|
|
35
|
+
"theme.docs.DocCard.categoryDescription": "{count} éléments",
|
|
36
36
|
"theme.docs.breadcrumbs.home": "Page d'accueil",
|
|
37
37
|
"theme.docs.breadcrumbs.navAriaLabel": "Fil d'Ariane",
|
|
38
38
|
"theme.docs.paginator.navAriaLabel": "Pagination des documents",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"theme.lastUpdated.atDate": " le {date}",
|
|
53
53
|
"theme.lastUpdated.byUser": " par {user}",
|
|
54
54
|
"theme.lastUpdated.lastUpdatedAtBy": "Dernière mise à jour{atDate}{byUser}",
|
|
55
|
-
"theme.navbar.mobileLanguageDropdown.label": "
|
|
55
|
+
"theme.navbar.mobileLanguageDropdown.label": "Langues",
|
|
56
56
|
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Retour au menu principal",
|
|
57
57
|
"theme.navbar.mobileVersionsDropdown.label": "Versions",
|
|
58
58
|
"theme.tags.tagsListLabel": "Tags :",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"theme.SearchBar.label": "Chercher",
|
|
3
|
-
"theme.SearchBar.seeAll": "
|
|
3
|
+
"theme.SearchBar.seeAll": "Voir les {count} résultats",
|
|
4
4
|
"theme.SearchPage.algoliaLabel": "Recherche par Algolia",
|
|
5
5
|
"theme.SearchPage.documentsFound.plurals": "Un document trouvé|{count} documents trouvés",
|
|
6
6
|
"theme.SearchPage.emptyResultsTitle": "Rechercher dans la documentation",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "复制成功",
|
|
5
5
|
"theme.CodeBlock.copy": "复制",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "复制代码到剪贴板",
|
|
7
|
-
"theme.CodeBlock.wordWrapToggle": "
|
|
7
|
+
"theme.CodeBlock.wordWrapToggle": "切换自动换行",
|
|
8
8
|
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "打开/收起侧边栏菜单「{label}」",
|
|
9
9
|
"theme.ErrorPageContent.title": "页面已崩溃。",
|
|
10
10
|
"theme.ErrorPageContent.tryAgain": "重试",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "複製成功",
|
|
5
5
|
"theme.CodeBlock.copy": "複製",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "複製代碼至剪貼簿",
|
|
7
|
-
"theme.CodeBlock.wordWrapToggle": "
|
|
7
|
+
"theme.CodeBlock.wordWrapToggle": "切換自動換行",
|
|
8
8
|
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "打開/收起側邊欄選單「{label}」",
|
|
9
9
|
"theme.ErrorPageContent.title": "此頁已當機。",
|
|
10
10
|
"theme.ErrorPageContent.tryAgain": "重試",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-translations",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"description": "Docusaurus theme translations.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "tsc
|
|
18
|
-
"watch": "tsc
|
|
17
|
+
"build": "tsc --build",
|
|
18
|
+
"watch": "tsc --build --watch",
|
|
19
19
|
"update": "node ./update.mjs"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"tslib": "^2.4.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@docusaurus/core": "2.0.0-beta.
|
|
27
|
-
"@docusaurus/logger": "2.0.0-beta.
|
|
26
|
+
"@docusaurus/core": "2.0.0-beta.21",
|
|
27
|
+
"@docusaurus/logger": "2.0.0-beta.21",
|
|
28
28
|
"lodash": "^4.17.21"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=14"
|
|
31
|
+
"node": ">=16.14"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "69ac49fc6909517f13615ee40290c4bd00c39df4"
|
|
34
34
|
}
|
package/src/index.ts
CHANGED
|
@@ -25,9 +25,9 @@ export function codeTranslationLocalesToTry(locale: string): string[] {
|
|
|
25
25
|
// unresolved except for simply locales
|
|
26
26
|
locale,
|
|
27
27
|
// "zh-CN" / "pt-BR"
|
|
28
|
-
`${maximizedLocale.language}-${maximizedLocale.region}`,
|
|
28
|
+
`${maximizedLocale.language!}-${maximizedLocale.region!}`,
|
|
29
29
|
// "zh-Hans" / "pt-Latn"
|
|
30
|
-
`${maximizedLocale.language}-${maximizedLocale.script}`,
|
|
30
|
+
`${maximizedLocale.language!}-${maximizedLocale.script!}`,
|
|
31
31
|
// "zh" / "pt"
|
|
32
32
|
maximizedLocale.language!,
|
|
33
33
|
];
|
|
@@ -51,7 +51,7 @@ export async function readDefaultCodeTranslationMessages({
|
|
|
51
51
|
const filePath = path.resolve(dirPath, localeToTry, `${name}.json`);
|
|
52
52
|
|
|
53
53
|
if (await fs.pathExists(filePath)) {
|
|
54
|
-
return fs.readJSON(filePath)
|
|
54
|
+
return fs.readJSON(filePath) as Promise<CodeTranslations>;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
package/src/utils.ts
CHANGED
|
@@ -23,12 +23,9 @@ import type {TranslationFileContent} from '@docusaurus/types';
|
|
|
23
23
|
async function getPackageCodePath(packageName: string) {
|
|
24
24
|
const packagePath = path.join(__dirname, '../..', packageName);
|
|
25
25
|
const packageJsonPath = path.join(packagePath, 'package.json');
|
|
26
|
-
const {main} = await fs.readJSON(packageJsonPath);
|
|
26
|
+
const {main} = (await fs.readJSON(packageJsonPath)) as {main: string};
|
|
27
27
|
const packageSrcPath = path.join(packagePath, path.dirname(main));
|
|
28
|
-
|
|
29
|
-
return (await fs.pathExists(packageLibNextPath))
|
|
30
|
-
? packageLibNextPath
|
|
31
|
-
: packageSrcPath;
|
|
28
|
+
return packageSrcPath;
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
export async function getThemes(): Promise<{name: string; src: string[]}[]> {
|