@docusaurus/theme-translations 3.5.2 → 3.6.0
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/utils.d.ts.map +1 -1
- package/lib/utils.js +5 -5
- package/lib/utils.js.map +1 -1
- package/locales/ar/theme-common.json +1 -0
- package/locales/base/theme-common.json +2 -0
- package/locales/bg/theme-common.json +1 -0
- package/locales/bn/theme-common.json +1 -0
- package/locales/cs/theme-common.json +1 -0
- package/locales/da/theme-common.json +1 -0
- package/locales/de/theme-common.json +1 -0
- package/locales/es/theme-common.json +2 -1
- package/locales/et/theme-common.json +1 -0
- package/locales/fa/theme-common.json +1 -0
- package/locales/fil/theme-common.json +1 -0
- package/locales/fr/theme-common.json +1 -0
- package/locales/he/theme-common.json +1 -0
- package/locales/hi/theme-common.json +1 -0
- package/locales/hu/theme-common.json +1 -0
- package/locales/id/theme-common.json +1 -0
- package/locales/is/theme-common.json +1 -0
- package/locales/it/theme-common.json +1 -0
- package/locales/ja/theme-common.json +1 -0
- package/locales/ko/theme-common.json +1 -0
- package/locales/nb/theme-common.json +1 -0
- package/locales/nl/theme-common.json +1 -0
- package/locales/pl/theme-common.json +1 -0
- package/locales/pt-BR/theme-common.json +1 -0
- package/locales/pt-PT/theme-common.json +1 -0
- package/locales/ru/theme-common.json +1 -0
- package/locales/sl/theme-common.json +9 -8
- package/locales/sr/theme-common.json +1 -0
- package/locales/sv/theme-common.json +1 -0
- package/locales/tk/theme-common.json +1 -0
- package/locales/tr/theme-common.json +1 -0
- package/locales/uk/theme-common.json +1 -0
- package/locales/vi/theme-common.json +18 -17
- package/locales/zh-Hans/theme-common.json +1 -0
- package/locales/zh-Hant/theme-common.json +1 -0
- package/package.json +6 -4
- package/src/utils.ts +4 -7
package/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,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
|
@@ -16,8 +16,8 @@ const tslib_1 = require("tslib");
|
|
|
16
16
|
// functions in the Jest test without using `await import`
|
|
17
17
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
18
18
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
19
|
-
|
|
20
|
-
const
|
|
19
|
+
const utils_1 = require("@docusaurus/utils");
|
|
20
|
+
const babel_1 = require("@docusaurus/babel");
|
|
21
21
|
async function getPackageCodePath(packageName) {
|
|
22
22
|
const packagePath = path_1.default.join(__dirname, '../..', packageName);
|
|
23
23
|
const packageJsonPath = path_1.default.join(packagePath, 'package.json');
|
|
@@ -55,9 +55,9 @@ async function getThemes() {
|
|
|
55
55
|
async function extractThemeCodeMessages(targetDirs) {
|
|
56
56
|
// eslint-disable-next-line no-param-reassign
|
|
57
57
|
targetDirs ?? (targetDirs = (await getThemes()).flatMap((theme) => theme.src));
|
|
58
|
-
const filePaths = (await (0,
|
|
59
|
-
const filesExtractedTranslations = await (0,
|
|
60
|
-
presets: [
|
|
58
|
+
const filePaths = (await (0, utils_1.globTranslatableSourceFiles)(targetDirs)).filter((filePath) => ['.js', '.jsx'].includes(path_1.default.extname(filePath)));
|
|
59
|
+
const filesExtractedTranslations = await (0, babel_1.extractAllSourceCodeFileTranslations)(filePaths, {
|
|
60
|
+
presets: ['@docusaurus/babel/preset'],
|
|
61
61
|
});
|
|
62
62
|
filesExtractedTranslations.forEach((fileExtractedTranslations) => {
|
|
63
63
|
if (fileExtractedTranslations.warnings.length > 0) {
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAsBH,8BA0BC;AAED,4DAqCC;;AArFD,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,wEAAwE;AACxE,0DAA0D;AAE1D,wDAAwB;AACxB,gEAA0B;AAC1B,6CAA8D;AAC9D,6CAAuE;AAGvE,KAAK,UAAU,kBAAkB,CAAC,WAAmB;IACnD,MAAM,WAAW,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IAC/D,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAC/D,MAAM,EAAC,IAAI,EAAC,GAAG,CAAC,MAAM,kBAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAmB,CAAC;IACtE,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAClE,OAAO,cAAc,CAAC;AACxB,CAAC;AAEM,KAAK,UAAU,SAAS;IAC7B,OAAO;QACL;YACE,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE;gBACH,MAAM,kBAAkB,CAAC,0BAA0B,CAAC;gBACpD,MAAM,kBAAkB,CAAC,yBAAyB,CAAC;aACpD;SACF;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,CAAC,MAAM,kBAAkB,CAAC,iCAAiC,CAAC,CAAC;SACnE;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,CAAC,MAAM,kBAAkB,CAAC,iCAAiC,CAAC,CAAC;SACnE;QACD;YACE,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,CAAC,MAAM,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;SACzD;QACD;YACE,IAAI,EAAE,oBAAoB;YAC1B,GAAG,EAAE,CAAC,MAAM,kBAAkB,CAAC,+BAA+B,CAAC,CAAC;SACjE;KACF,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,wBAAwB,CAC5C,UAAqB;IAErB,6CAA6C;IAC7C,UAAU,KAAV,UAAU,GAAK,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAC;IAEjE,MAAM,SAAS,GAAG,CAAC,MAAM,IAAA,mCAA2B,EAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CACtE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAC/D,CAAC;IAEF,MAAM,0BAA0B,GAAG,MAAM,IAAA,4CAAoC,EAC3E,SAAS,EACT;QACE,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACtC,CACF,CAAC;IAEF,0BAA0B,CAAC,OAAO,CAAC,CAAC,yBAAyB,EAAE,EAAE;QAC/D,IAAI,yBAAyB,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC;;;;EAIpB,yBAAyB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;CAChD,CAAC,CAAC;QACC,CAAC;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"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "أرشيف",
|
|
24
24
|
"theme.blog.archive.title": "أرشيف",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
"theme.blog.archive.description___DESCRIPTION": "The page & hero description of the blog archive page",
|
|
46
46
|
"theme.blog.archive.title": "Archive",
|
|
47
47
|
"theme.blog.archive.title___DESCRIPTION": "The page & hero title of the blog archive page",
|
|
48
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
49
|
+
"theme.blog.author.noPosts___DESCRIPTION": "The text for authors with 0 blog post",
|
|
48
50
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
49
51
|
"theme.blog.author.pageTitle___DESCRIPTION": "The title of the page for a blog author",
|
|
50
52
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "Внимание",
|
|
23
23
|
"theme.blog.archive.description": "Архив",
|
|
24
24
|
"theme.blog.archive.title": "Архив",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warnung",
|
|
23
23
|
"theme.blog.archive.description": "Archiv",
|
|
24
24
|
"theme.blog.archive.title": "Archiv",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "aviso",
|
|
23
23
|
"theme.blog.archive.description": "Archivo",
|
|
24
24
|
"theme.blog.archive.title": "Archivo",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"theme.contentVisibility.unlistedBanner.title": "Página sin clasificar",
|
|
50
51
|
"theme.docs.DocCard.categoryDescription.plurals": "1 artículo|{count} artículos",
|
|
51
52
|
"theme.docs.breadcrumbs.home": "Página de Inicio",
|
|
52
|
-
"theme.docs.breadcrumbs.navAriaLabel": "
|
|
53
|
+
"theme.docs.breadcrumbs.navAriaLabel": "Rastro de navegación",
|
|
53
54
|
"theme.docs.paginator.navAriaLabel": "Página del documento",
|
|
54
55
|
"theme.docs.paginator.next": "Siguiente",
|
|
55
56
|
"theme.docs.paginator.previous": "Anterior",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "hoiatus",
|
|
23
23
|
"theme.blog.archive.description": "Arhiiv",
|
|
24
24
|
"theme.blog.archive.title": "Arhiiv",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "هشدار",
|
|
23
23
|
"theme.blog.archive.description": "آرشیو",
|
|
24
24
|
"theme.blog.archive.title": "آرشیو",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "attention",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "vigyázat",
|
|
23
23
|
"theme.blog.archive.description": "Archívum",
|
|
24
24
|
"theme.blog.archive.title": "Archívum",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "peringatan",
|
|
23
23
|
"theme.blog.archive.description": "Arsip",
|
|
24
24
|
"theme.blog.archive.title": "Arsip",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "aðvörun",
|
|
23
23
|
"theme.blog.archive.description": "Skjalasafn",
|
|
24
24
|
"theme.blog.archive.title": "Skjalasafn",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archivio",
|
|
24
24
|
"theme.blog.archive.title": "Archivio",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "警告",
|
|
23
23
|
"theme.blog.archive.description": "アーカイブ",
|
|
24
24
|
"theme.blog.archive.title": "アーカイブ",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "경고",
|
|
23
23
|
"theme.blog.archive.description": "게시물 목록",
|
|
24
24
|
"theme.blog.archive.title": "게시물 목록",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Arkiv",
|
|
24
24
|
"theme.blog.archive.title": "Arkiv",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archief",
|
|
24
24
|
"theme.blog.archive.title": "Archief",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archiwum",
|
|
24
24
|
"theme.blog.archive.title": "Archiwum",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "atenção",
|
|
23
23
|
"theme.blog.archive.description": "Arquivo",
|
|
24
24
|
"theme.blog.archive.title": "Arquivo",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Archive",
|
|
24
24
|
"theme.blog.archive.title": "Archive",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Архив",
|
|
24
24
|
"theme.blog.archive.title": "Архив",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"theme.CodeBlock.copy": "Kopiraj",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Kopiraj v odložišče",
|
|
7
7
|
"theme.CodeBlock.wordWrapToggle": "Preklopi oblivanje besedila",
|
|
8
|
-
"theme.DocSidebarItem.collapseCategoryAriaLabel": "
|
|
9
|
-
"theme.DocSidebarItem.expandCategoryAriaLabel": "
|
|
8
|
+
"theme.DocSidebarItem.collapseCategoryAriaLabel": "Strni kategorijo stranske vrstice '{label}'",
|
|
9
|
+
"theme.DocSidebarItem.expandCategoryAriaLabel": "Razširite kategorijo stranske vrstice '{label}'",
|
|
10
10
|
"theme.ErrorPageContent.title": "Ta stran se je zrušila.",
|
|
11
11
|
"theme.ErrorPageContent.tryAgain": "Poskusite ponovno",
|
|
12
12
|
"theme.NavBar.navAriaLabel": "Glavna navigacija",
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"theme.admonition.info": "informacija",
|
|
20
20
|
"theme.admonition.note": "opomba",
|
|
21
21
|
"theme.admonition.tip": "namig",
|
|
22
|
-
"theme.admonition.warning": "
|
|
22
|
+
"theme.admonition.warning": "opozorilo",
|
|
23
23
|
"theme.blog.archive.description": "Arhiv",
|
|
24
24
|
"theme.blog.archive.title": "Arhiv",
|
|
25
|
+
"theme.blog.author.noPosts": "Ta avtor še ni napisal nobene objave.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
|
-
"theme.blog.authorsList.pageTitle": "
|
|
27
|
-
"theme.blog.authorsList.viewAll": "
|
|
27
|
+
"theme.blog.authorsList.pageTitle": "Avtorji",
|
|
28
|
+
"theme.blog.authorsList.viewAll": "Prikaži vse avtorje",
|
|
28
29
|
"theme.blog.paginator.navAriaLabel": "Navigacija kazala po blogu",
|
|
29
30
|
"theme.blog.paginator.newerEntries": "Novejši prispevki",
|
|
30
31
|
"theme.blog.paginator.olderEntries": "Starejši prispevki",
|
|
@@ -43,11 +44,11 @@
|
|
|
43
44
|
"theme.common.editThisPage": "Uredi to stran",
|
|
44
45
|
"theme.common.headingLinkTitle": "Direktna povezava na {heading}",
|
|
45
46
|
"theme.common.skipToMainContent": "Preskoči na vsebino",
|
|
46
|
-
"theme.contentVisibility.draftBanner.message": "
|
|
47
|
-
"theme.contentVisibility.draftBanner.title": "
|
|
47
|
+
"theme.contentVisibility.draftBanner.message": "Ta stran je osnutek. Viden bo samo v razvijalcu in bo izključen iz proizvodne zgradbe.",
|
|
48
|
+
"theme.contentVisibility.draftBanner.title": "Osnutek strani",
|
|
48
49
|
"theme.contentVisibility.unlistedBanner.message": "Ta stran ni zabeležena. Iskalniki je ne bodo indeksirali, do nje bodo uporabniki lahko dostopali le z direktno povezavo.",
|
|
49
50
|
"theme.contentVisibility.unlistedBanner.title": "Nezabeležena stran",
|
|
50
|
-
"theme.docs.DocCard.categoryDescription.plurals": "1 vnos|2
|
|
51
|
+
"theme.docs.DocCard.categoryDescription.plurals": "1 vnos|2 vnosa|{count} vnosi|{count} vnosov",
|
|
51
52
|
"theme.docs.breadcrumbs.home": "Domača stran",
|
|
52
53
|
"theme.docs.breadcrumbs.navAriaLabel": "Drobtine",
|
|
53
54
|
"theme.docs.paginator.navAriaLabel": "Strani z dokumenti",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Архива",
|
|
24
24
|
"theme.blog.archive.title": "Архива",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Arkiv",
|
|
24
24
|
"theme.blog.archive.title": "Arkiv",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "duýduryş",
|
|
23
23
|
"theme.blog.archive.description": "Arhiw",
|
|
24
24
|
"theme.blog.archive.title": "Arhiw",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Arşiv",
|
|
24
24
|
"theme.blog.archive.title": "Arşiv",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "warning",
|
|
23
23
|
"theme.blog.archive.description": "Архів",
|
|
24
24
|
"theme.blog.archive.title": "Архів",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"theme.BackToTopButton.buttonAriaLabel": "Trở lại đầu trang",
|
|
4
4
|
"theme.CodeBlock.copied": "Đã sao chép",
|
|
5
5
|
"theme.CodeBlock.copy": "Sao chép",
|
|
6
|
-
"theme.CodeBlock.copyButtonAriaLabel": "Sao chép
|
|
6
|
+
"theme.CodeBlock.copyButtonAriaLabel": "Sao chép mã vào bộ nhớ tạm",
|
|
7
7
|
"theme.CodeBlock.wordWrapToggle": "Chuyển đổi văn bản xuống dòng",
|
|
8
8
|
"theme.DocSidebarItem.collapseCategoryAriaLabel": "Thu gọn danh mục '{label}'",
|
|
9
9
|
"theme.DocSidebarItem.expandCategoryAriaLabel": "Xem thêm danh mục '{label}'",
|
|
10
|
-
"theme.ErrorPageContent.title": "Trang này đã
|
|
10
|
+
"theme.ErrorPageContent.title": "Trang này đã gặp lỗi.",
|
|
11
11
|
"theme.ErrorPageContent.tryAgain": "Thử lại",
|
|
12
12
|
"theme.NavBar.navAriaLabel": "Thanh điều hướng",
|
|
13
|
-
"theme.NotFound.p1": "Chúng tôi không thể tìm thấy
|
|
14
|
-
"theme.NotFound.p2": "Vui lòng liên hệ với trang web đã
|
|
13
|
+
"theme.NotFound.p1": "Chúng tôi không thể tìm thấy nội dung bạn đang tìm kiếm.",
|
|
14
|
+
"theme.NotFound.p2": "Vui lòng liên hệ với trang web đã đưa bạn đến đây và thông báo rằng đường dẫn này bị lỗi.",
|
|
15
15
|
"theme.NotFound.title": "Không tìm thấy trang",
|
|
16
16
|
"theme.TOCCollapsible.toggleButtonLabel": "Trên trang này",
|
|
17
17
|
"theme.admonition.caution": "cẩn thận",
|
|
@@ -19,15 +19,16 @@
|
|
|
19
19
|
"theme.admonition.info": "thông tin",
|
|
20
20
|
"theme.admonition.note": "ghi chú",
|
|
21
21
|
"theme.admonition.tip": "mẹo",
|
|
22
|
-
"theme.admonition.warning": "
|
|
22
|
+
"theme.admonition.warning": "cảnh báo",
|
|
23
23
|
"theme.blog.archive.description": "Lưu trữ",
|
|
24
24
|
"theme.blog.archive.title": "Lưu trữ",
|
|
25
|
+
"theme.blog.author.noPosts": "Tác giả này chưa viết bài nào.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
|
-
"theme.blog.authorsList.pageTitle": "
|
|
27
|
-
"theme.blog.authorsList.viewAll": "
|
|
27
|
+
"theme.blog.authorsList.pageTitle": "Tác giả",
|
|
28
|
+
"theme.blog.authorsList.viewAll": "Xem tất cả tác giả",
|
|
28
29
|
"theme.blog.paginator.navAriaLabel": "Thanh điều hướng của trang danh sách bài viết",
|
|
29
|
-
"theme.blog.paginator.newerEntries": "
|
|
30
|
-
"theme.blog.paginator.olderEntries": "
|
|
30
|
+
"theme.blog.paginator.newerEntries": "Bài mới hơn",
|
|
31
|
+
"theme.blog.paginator.olderEntries": "Bài cũ hơn",
|
|
31
32
|
"theme.blog.post.paginator.navAriaLabel": "Thanh điều hướng của trang bài viết",
|
|
32
33
|
"theme.blog.post.paginator.newerPost": "Bài mới hơn",
|
|
33
34
|
"theme.blog.post.paginator.olderPost": "Bài cũ hơn",
|
|
@@ -37,15 +38,15 @@
|
|
|
37
38
|
"theme.blog.post.readingTime.plurals": "{readingTime} phút để đọc",
|
|
38
39
|
"theme.blog.sidebar.navAriaLabel": "Điều hướng các bài viết gần đây trên blog",
|
|
39
40
|
"theme.blog.tagTitle": "{nPosts} được gắn thẻ \"{tagName}\"",
|
|
40
|
-
"theme.colorToggle.ariaLabel": "Chuyển đổi chế độ sáng và tối (hiện tại {mode})",
|
|
41
|
+
"theme.colorToggle.ariaLabel": "Chuyển đổi chế độ sáng và tối (hiện tại là {mode})",
|
|
41
42
|
"theme.colorToggle.ariaLabel.mode.dark": "chế độ tối",
|
|
42
43
|
"theme.colorToggle.ariaLabel.mode.light": "chế độ sáng",
|
|
43
44
|
"theme.common.editThisPage": "Sửa trang này",
|
|
44
|
-
"theme.common.headingLinkTitle": "Đường dẫn trực tiếp
|
|
45
|
-
"theme.common.skipToMainContent": "
|
|
46
|
-
"theme.contentVisibility.draftBanner.message": "
|
|
47
|
-
"theme.contentVisibility.draftBanner.title": "
|
|
48
|
-
"theme.contentVisibility.unlistedBanner.message": "Trang này không
|
|
45
|
+
"theme.common.headingLinkTitle": "Đường dẫn trực tiếp đến {heading}",
|
|
46
|
+
"theme.common.skipToMainContent": "Chuyển tới nội dung chính",
|
|
47
|
+
"theme.contentVisibility.draftBanner.message": "Trang này là bản nháp. Nó chỉ hiển thị trong môi trường phát triển và bị loại khỏi bản sản xuất.",
|
|
48
|
+
"theme.contentVisibility.draftBanner.title": "Trang nháp",
|
|
49
|
+
"theme.contentVisibility.unlistedBanner.message": "Trang này không công khai. Công cụ tìm kiếm sẽ không đánh chỉ mục trang này và chỉ những ai có liên kết mới có thể truy cập trang.",
|
|
49
50
|
"theme.contentVisibility.unlistedBanner.title": "Trang không công khai",
|
|
50
51
|
"theme.docs.DocCard.categoryDescription.plurals": "{count} mục",
|
|
51
52
|
"theme.docs.breadcrumbs.home": "Trang chủ",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"theme.docs.sidebar.expandButtonTitle": "Mở rộng thanh bên",
|
|
61
62
|
"theme.docs.sidebar.navAriaLabel": "Thanh điều hướng tài liệu",
|
|
62
63
|
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": "Đóng - mở thanh điều hướng",
|
|
63
|
-
"theme.docs.tagDocListPageTitle": "{nDocsTagged}
|
|
64
|
+
"theme.docs.tagDocListPageTitle": "{nDocsTagged} được gắn thẻ \"{tagName}\"",
|
|
64
65
|
"theme.docs.tagDocListPageTitle.nDocsTagged": "{count} tài liệu đã gắn thẻ",
|
|
65
66
|
"theme.docs.versionBadge.label": "Phiên bản: {versionLabel}",
|
|
66
67
|
"theme.docs.versions.latestVersionLinkLabel": "phiên bản mới nhất",
|
|
@@ -74,6 +75,6 @@
|
|
|
74
75
|
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Trở lại menu chính",
|
|
75
76
|
"theme.navbar.mobileVersionsDropdown.label": "Phiên bản",
|
|
76
77
|
"theme.tags.tagsListLabel": "Thẻ:",
|
|
77
|
-
"theme.tags.tagsPageLink": "Xem tất cả
|
|
78
|
+
"theme.tags.tagsPageLink": "Xem tất cả thẻ",
|
|
78
79
|
"theme.tags.tagsPageTitle": "Thẻ"
|
|
79
80
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "注意",
|
|
23
23
|
"theme.blog.archive.description": "历史博文",
|
|
24
24
|
"theme.blog.archive.title": "历史博文",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"theme.admonition.warning": "注意",
|
|
23
23
|
"theme.blog.archive.description": "歷史文章",
|
|
24
24
|
"theme.blog.archive.title": "歷史文章",
|
|
25
|
+
"theme.blog.author.noPosts": "This author has not written any posts yet.",
|
|
25
26
|
"theme.blog.author.pageTitle": "{authorName} - {nPosts}",
|
|
26
27
|
"theme.blog.authorsList.pageTitle": "Authors",
|
|
27
28
|
"theme.blog.authorsList.viewAll": "View All Authors",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-translations",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Docusaurus theme translations.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,12 +23,14 @@
|
|
|
23
23
|
"tslib": "^2.6.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@docusaurus/
|
|
27
|
-
"@docusaurus/
|
|
26
|
+
"@docusaurus/babel": "3.6.0",
|
|
27
|
+
"@docusaurus/core": "3.6.0",
|
|
28
|
+
"@docusaurus/logger": "3.6.0",
|
|
29
|
+
"@docusaurus/utils": "3.6.0",
|
|
28
30
|
"lodash": "^4.17.21"
|
|
29
31
|
},
|
|
30
32
|
"engines": {
|
|
31
33
|
"node": ">=18.0"
|
|
32
34
|
},
|
|
33
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "05bba6d4f495ef6b0bec5d41453932bb97981830"
|
|
34
36
|
}
|
package/src/utils.ts
CHANGED
|
@@ -13,11 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
import path from 'path';
|
|
15
15
|
import fs from 'fs-extra';
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
globSourceCodeFilePaths,
|
|
19
|
-
extractAllSourceCodeFileTranslations,
|
|
20
|
-
} from '@docusaurus/core/lib/server/translations/translationsExtractor';
|
|
16
|
+
import {globTranslatableSourceFiles} from '@docusaurus/utils';
|
|
17
|
+
import {extractAllSourceCodeFileTranslations} from '@docusaurus/babel';
|
|
21
18
|
import type {TranslationFileContent} from '@docusaurus/types';
|
|
22
19
|
|
|
23
20
|
async function getPackageCodePath(packageName: string) {
|
|
@@ -62,14 +59,14 @@ export async function extractThemeCodeMessages(
|
|
|
62
59
|
// eslint-disable-next-line no-param-reassign
|
|
63
60
|
targetDirs ??= (await getThemes()).flatMap((theme) => theme.src);
|
|
64
61
|
|
|
65
|
-
const filePaths = (await
|
|
62
|
+
const filePaths = (await globTranslatableSourceFiles(targetDirs)).filter(
|
|
66
63
|
(filePath) => ['.js', '.jsx'].includes(path.extname(filePath)),
|
|
67
64
|
);
|
|
68
65
|
|
|
69
66
|
const filesExtractedTranslations = await extractAllSourceCodeFileTranslations(
|
|
70
67
|
filePaths,
|
|
71
68
|
{
|
|
72
|
-
presets: [
|
|
69
|
+
presets: ['@docusaurus/babel/preset'],
|
|
73
70
|
},
|
|
74
71
|
);
|
|
75
72
|
|