@docusaurus/theme-translations 2.0.0-beta.14 → 2.0.0-beta.15
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.d.ts.map +1 -1
- package/lib/index.js +7 -6
- package/lib/index.js.map +1 -1
- package/locales/ar/plugin-ideal-image.json +7 -0
- package/locales/base/plugin-ideal-image.json +12 -0
- package/locales/bn/plugin-ideal-image.json +7 -0
- package/locales/cs/plugin-ideal-image.json +7 -0
- package/locales/da/plugin-ideal-image.json +7 -0
- package/locales/de/plugin-ideal-image.json +7 -0
- package/locales/es/plugin-ideal-image.json +7 -0
- package/locales/fa/plugin-ideal-image.json +7 -0
- package/locales/fil/plugin-ideal-image.json +7 -0
- package/locales/fr/plugin-ideal-image.json +7 -0
- package/locales/he/plugin-ideal-image.json +7 -0
- package/locales/hi/plugin-ideal-image.json +7 -0
- package/locales/it/plugin-ideal-image.json +7 -0
- package/locales/it/plugin-pwa.json +5 -0
- package/locales/it/theme-common.json +51 -0
- package/locales/it/theme-live-codeblock.json +4 -0
- package/locales/it/theme-search-algolia.json +11 -0
- package/locales/ja/plugin-ideal-image.json +7 -0
- package/locales/ko/plugin-ideal-image.json +7 -0
- package/locales/pl/plugin-ideal-image.json +7 -0
- package/locales/pt-BR/plugin-ideal-image.json +7 -0
- package/locales/pt-PT/plugin-ideal-image.json +7 -0
- package/locales/ru/plugin-ideal-image.json +7 -0
- package/locales/sr/plugin-ideal-image.json +7 -0
- package/locales/tr/plugin-ideal-image.json +7 -0
- package/locales/vi/plugin-ideal-image.json +7 -0
- package/locales/zh-Hans/plugin-ideal-image.json +7 -0
- package/locales/zh-Hant/plugin-ideal-image.json +7 -0
- package/package.json +5 -5
- package/src/index.ts +7 -6
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBpE;AAGD,wBAAsB,kCAAkC,CAAC,EACvD,OAAoC,EACpC,MAAM,EACN,IAAI,GACL,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAgBlC"}
|
package/lib/index.js
CHANGED
|
@@ -15,16 +15,17 @@ function getDefaultLocalesDirPath() {
|
|
|
15
15
|
}
|
|
16
16
|
// Return an ordered list of locales we should try
|
|
17
17
|
function codeTranslationLocalesToTry(locale) {
|
|
18
|
-
const intlLocale =
|
|
19
|
-
if (!intlLocale) {
|
|
20
|
-
return [locale];
|
|
21
|
-
}
|
|
18
|
+
const intlLocale = new Intl.Locale(locale);
|
|
22
19
|
// if locale is just a simple language like "pt", we want to fallback to pt-BR (not pt-PT!)
|
|
23
20
|
// see https://github.com/facebook/docusaurus/pull/4536#issuecomment-810088783
|
|
24
21
|
if (intlLocale.language === locale) {
|
|
25
22
|
const maximizedLocale = intlLocale.maximize(); // pt-Latn-BR`
|
|
26
|
-
// ["pt","pt-BR"]
|
|
27
|
-
return [
|
|
23
|
+
// ["pt","pt-BR"]; ["zh", "zh-Hans"]
|
|
24
|
+
return [
|
|
25
|
+
locale,
|
|
26
|
+
`${maximizedLocale.language}-${maximizedLocale.region}`,
|
|
27
|
+
`${maximizedLocale.language}-${maximizedLocale.script}`,
|
|
28
|
+
];
|
|
28
29
|
}
|
|
29
30
|
// if locale is like "pt-BR", we want to fallback to "pt"
|
|
30
31
|
else {
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,6DAAwB;AACxB,qEAA0B;AAE1B,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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,6DAAwB;AACxB,qEAA0B;AAE1B,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,2FAA2F;IAC3F,8EAA8E;IAC9E,IAAI,UAAU,CAAC,QAAQ,KAAK,MAAM,EAAE;QAClC,MAAM,eAAe,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,cAAc;QAC7D,oCAAoC;QACpC,OAAO;YACL,MAAM;YACN,GAAG,eAAe,CAAC,QAAQ,IAAI,eAAe,CAAC,MAAM,EAAE;YACvD,GAAG,eAAe,CAAC,QAAQ,IAAI,eAAe,CAAC,MAAM,EAAE;SACxD,CAAC;KACH;IACD,yDAAyD;SACpD;QACH,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,QAAS,CAAC,CAAC;KACvC;AACH,CAAC;AAjBD,kEAiBC;AAED,oEAAoE;AAC7D,KAAK,UAAU,kCAAkC,CAAC,EACvD,OAAO,GAAG,wBAAwB,EAAE,EACpC,MAAM,EACN,IAAI,GAKL;IACC,MAAM,YAAY,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC;IAEzD,kDAAkD;IAClD,mCAAmC;IACnC,gDAAgD;IAChD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;QACtC,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,OAAO,CAAC,CAAC;QAEpE,IAAI,MAAM,kBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,WAAW,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxD,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;SAChC;KACF;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAxBD,gFAwBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.404error___DESCRIPTION": "When the image is not found",
|
|
4
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
5
|
+
"theme.IdealImageMessage.error___DESCRIPTION": "When the image fails to load for unknown error",
|
|
6
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
7
|
+
"theme.IdealImageMessage.load___DESCRIPTION": "To prompt users to load the full image. sizeMessage is a parenthesized size figure.",
|
|
8
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
9
|
+
"theme.IdealImageMessage.loading___DESCRIPTION": "When the full-scale image is loading",
|
|
10
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded",
|
|
11
|
+
"theme.IdealImageMessage.offline___DESCRIPTION": "When the user is viewing an offline document"
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.AnnouncementBar.closeButtonAriaLabel": "Chiudi",
|
|
3
|
+
"theme.BackToTopButton.buttonAriaLabel": "Torna indietro all'inizio",
|
|
4
|
+
"theme.CodeBlock.copied": "Copiato",
|
|
5
|
+
"theme.CodeBlock.copy": "Copia",
|
|
6
|
+
"theme.CodeBlock.copyButtonAriaLabel": "Copia il codice negli appunti",
|
|
7
|
+
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": "Attiva/disattiva la categoria '{label}' della barra laterale collassabile",
|
|
8
|
+
"theme.ErrorPageContent.title": "Questa pagina è andata in crash.",
|
|
9
|
+
"theme.ErrorPageContent.tryAgain": "Prova di nuovo",
|
|
10
|
+
"theme.NotFound.p1": "Non siamo riusciti a trovare quello che stavi cercando.",
|
|
11
|
+
"theme.NotFound.p2": "Contatta il proprietario del sito che ti ha collegato all'URL originale e fagli sapere che il loro collegamento è interrotto.",
|
|
12
|
+
"theme.NotFound.title": "Pagina non trovata",
|
|
13
|
+
"theme.TOCCollapsible.toggleButtonLabel": "Su questa pagina",
|
|
14
|
+
"theme.blog.archive.description": "Archivio",
|
|
15
|
+
"theme.blog.archive.title": "Archivio",
|
|
16
|
+
"theme.blog.paginator.navAriaLabel": "Navigazione nella pagina dei post del blog ",
|
|
17
|
+
"theme.blog.paginator.newerEntries": "Post più recenti",
|
|
18
|
+
"theme.blog.paginator.olderEntries": "Post più vecchi",
|
|
19
|
+
"theme.blog.post.paginator.navAriaLabel": "Navigazione nella pagina dei post del blog ",
|
|
20
|
+
"theme.blog.post.paginator.newerPost": "Post più recente",
|
|
21
|
+
"theme.blog.post.paginator.olderPost": "Post più vecchio",
|
|
22
|
+
"theme.blog.post.plurals": "Un post|{count} post",
|
|
23
|
+
"theme.blog.post.readMore": "Leggi di più",
|
|
24
|
+
"theme.blog.post.readingTime.plurals": "Lettura di 1 minuto|{readingTime} minuti di lettura",
|
|
25
|
+
"theme.blog.sidebar.navAriaLabel": "Navigazione dei post recenti del blog",
|
|
26
|
+
"theme.blog.tagTitle": "{nPosts} etichettati con \"{tagName}\"",
|
|
27
|
+
"theme.common.editThisPage": "Modifica questa pagina",
|
|
28
|
+
"theme.common.headingLinkTitle": "Link diretto all'intestazione",
|
|
29
|
+
"theme.common.skipToMainContent": "Passa al contenuto principale",
|
|
30
|
+
"theme.docs.paginator.navAriaLabel": "Navigazione delle pagine dei documenti",
|
|
31
|
+
"theme.docs.paginator.next": "Successivo",
|
|
32
|
+
"theme.docs.paginator.previous": "Precedente",
|
|
33
|
+
"theme.docs.sidebar.collapseButtonAriaLabel": "Collassa la barra laterale",
|
|
34
|
+
"theme.docs.sidebar.collapseButtonTitle": "Collassa la barra laterale",
|
|
35
|
+
"theme.docs.sidebar.expandButtonAriaLabel": "Espandi la barra laterale",
|
|
36
|
+
"theme.docs.sidebar.expandButtonTitle": "Espandi la barra laterale",
|
|
37
|
+
"theme.docs.tagDocListPageTitle": "{nDocsTagged} con \"{tagName}\"",
|
|
38
|
+
"theme.docs.tagDocListPageTitle.nDocsTagged": "Un documento etichettato|{count} documenti etichettati",
|
|
39
|
+
"theme.docs.versions.latestVersionLinkLabel": "ultima versione",
|
|
40
|
+
"theme.docs.versions.latestVersionSuggestionLabel": "Per la documentazione aggiornata, guarda la {latestVersionLink} ({versionLabel}).",
|
|
41
|
+
"theme.docs.versions.unmaintainedVersionLabel": "Questa è la documentazione per {siteTitle} {versionLabel}, che non è più attivamente mantenuta.",
|
|
42
|
+
"theme.docs.versions.unreleasedVersionLabel": "Questa è documentazione inedita per {siteTitle} versione {versionLabel}.",
|
|
43
|
+
"theme.lastUpdated.atDate": " il {date}",
|
|
44
|
+
"theme.lastUpdated.byUser": " da {user}",
|
|
45
|
+
"theme.lastUpdated.lastUpdatedAtBy": "Ultimo aggiornamento{atDate}{byUser}",
|
|
46
|
+
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Indietro al menu principale",
|
|
47
|
+
"theme.navbar.mobileVersionsDropdown.label": "Versioni",
|
|
48
|
+
"theme.tags.tagsListLabel": "Etichette:",
|
|
49
|
+
"theme.tags.tagsPageLink": "Guarda tutte le etichette",
|
|
50
|
+
"theme.tags.tagsPageTitle": "Etichette"
|
|
51
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.SearchBar.label": "Cerca",
|
|
3
|
+
"theme.SearchPage.algoliaLabel": "Ricerca tramite Algolia",
|
|
4
|
+
"theme.SearchPage.documentsFound.plurals": "Un documento trovato|{count} documenti trovati",
|
|
5
|
+
"theme.SearchPage.emptyResultsTitle": "Cerca nella documentazione",
|
|
6
|
+
"theme.SearchPage.existingResultsTitle": "Risultati di ricerca per \"{query}\"",
|
|
7
|
+
"theme.SearchPage.fetchingNewResults": "Recuperando nuovi risultati...",
|
|
8
|
+
"theme.SearchPage.inputLabel": "Cerca",
|
|
9
|
+
"theme.SearchPage.inputPlaceholder": "Digita qui la tua ricerca",
|
|
10
|
+
"theme.SearchPage.noResultsText": "Nessun risultato trovato"
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme.IdealImageMessage.404error": "404. Image not found",
|
|
3
|
+
"theme.IdealImageMessage.error": "Error. Click to reload",
|
|
4
|
+
"theme.IdealImageMessage.load": "Click to load{sizeMessage}",
|
|
5
|
+
"theme.IdealImageMessage.loading": "Loading...",
|
|
6
|
+
"theme.IdealImageMessage.offline": "Your browser is offline. Image not loaded"
|
|
7
|
+
}
|
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.15",
|
|
4
4
|
"description": "Docusaurus theme translations.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc",
|
|
18
18
|
"watch": "tsc --watch",
|
|
19
|
-
"update": "node
|
|
19
|
+
"update": "node ./update.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"fs-extra": "^10.0.0",
|
|
23
23
|
"tslib": "^2.3.1"
|
|
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.15",
|
|
27
|
+
"@docusaurus/logger": "2.0.0-beta.15",
|
|
28
28
|
"lodash": "^4.17.20"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=14"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "9a8acb2a87250368427ad80258350d630e7ae2f5"
|
|
34
34
|
}
|
package/src/index.ts
CHANGED
|
@@ -14,16 +14,17 @@ function getDefaultLocalesDirPath(): string {
|
|
|
14
14
|
|
|
15
15
|
// Return an ordered list of locales we should try
|
|
16
16
|
export function codeTranslationLocalesToTry(locale: string): string[] {
|
|
17
|
-
const intlLocale =
|
|
18
|
-
if (!intlLocale) {
|
|
19
|
-
return [locale];
|
|
20
|
-
}
|
|
17
|
+
const intlLocale = new Intl.Locale(locale);
|
|
21
18
|
// if locale is just a simple language like "pt", we want to fallback to pt-BR (not pt-PT!)
|
|
22
19
|
// see https://github.com/facebook/docusaurus/pull/4536#issuecomment-810088783
|
|
23
20
|
if (intlLocale.language === locale) {
|
|
24
21
|
const maximizedLocale = intlLocale.maximize(); // pt-Latn-BR`
|
|
25
|
-
// ["pt","pt-BR"]
|
|
26
|
-
return [
|
|
22
|
+
// ["pt","pt-BR"]; ["zh", "zh-Hans"]
|
|
23
|
+
return [
|
|
24
|
+
locale,
|
|
25
|
+
`${maximizedLocale.language}-${maximizedLocale.region}`,
|
|
26
|
+
`${maximizedLocale.language}-${maximizedLocale.script}`,
|
|
27
|
+
];
|
|
27
28
|
}
|
|
28
29
|
// if locale is like "pt-BR", we want to fallback to "pt"
|
|
29
30
|
else {
|