Skip to content

Commit 7af66f5

Browse files
committed
feat(i18n): add resources, features and other sections
1 parent 7976eb3 commit 7af66f5

32 files changed

Lines changed: 9947 additions & 746 deletions

app/components/AppFooter.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const socialLinks = computed(() => [
3737
3838
const footerSections: Array<{ label: string; links: FooterLink[] }> = [
3939
{
40-
label: 'resources',
40+
label: 'footer.resources',
4141
links: [
4242
{
4343
name: 'footer.blog',
@@ -58,7 +58,7 @@ const footerSections: Array<{ label: string; links: FooterLink[] }> = [
5858
],
5959
},
6060
{
61-
label: 'features',
61+
label: 'footer.features',
6262
links: [
6363
{
6464
name: 'shortcuts.compare',
@@ -75,7 +75,7 @@ const footerSections: Array<{ label: string; links: FooterLink[] }> = [
7575
],
7676
},
7777
{
78-
label: 'other',
78+
label: 'footer.other',
7979
links: [
8080
{
8181
name: 'pds.title',
@@ -123,7 +123,7 @@ const footerSections: Array<{ label: string; links: FooterLink[] }> = [
123123
class="flex flex-col gap-3 min-w-40 max-w-50"
124124
>
125125
<p class="uppercase text-fg-muted">
126-
{{ section.label }}
126+
{{ $t(section.label) }}
127127
</p>
128128
<template v-for="link in section.links" :key="link.name">
129129
<button

i18n/locales/ar.json

Lines changed: 587 additions & 40 deletions
Large diffs are not rendered by default.

i18n/locales/az-AZ.json

Lines changed: 405 additions & 26 deletions
Large diffs are not rendered by default.

i18n/locales/bg-BG.json

Lines changed: 479 additions & 33 deletions
Large diffs are not rendered by default.

i18n/locales/bn-IN.json

Lines changed: 900 additions & 82 deletions
Large diffs are not rendered by default.

i18n/locales/cs-CZ.json

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"chat": "chat",
2121
"builders_chat": "stavitelé",
2222
"keyboard_shortcuts": "klávesové zkratky",
23-
"brand": "značka"
23+
"brand": "značka",
24+
"resources": "EN TEXT TO REPLACE: Resources",
25+
"features": "EN TEXT TO REPLACE: Features",
26+
"other": "EN TEXT TO REPLACE: Other"
2427
},
2528
"shortcuts": {
2629
"section": {
@@ -42,7 +45,8 @@
4245
"open_docs": "Otevřít dokumentaci",
4346
"disable_shortcuts": "Klávesové zkratky můžete zakázat v {settings}.",
4447
"open_main": "Otevřít hlavní informace",
45-
"open_diff": "Otevřít rozdíly verzí"
48+
"open_diff": "Otevřít rozdíly verzí",
49+
"open_timeline": "EN TEXT TO REPLACE: Open timeline"
4650
},
4751
"search": {
4852
"label": "Hledat npm balíčky",
@@ -382,7 +386,9 @@
382386
},
383387
"replacement": {
384388
"title": "Možná tuto závislost nepotřebujete.",
389+
"example": "EN TEXT TO REPLACE: Example:",
385390
"native": "Tento balíček lze nahradit {replacement}, dostupné od Node {nodeVersion}.",
391+
"native_no_version": "EN TEXT TO REPLACE: This package can be replaced with {replacement}.",
386392
"simple": "{community} označila tento balíček jako zbytečný s doporučením: {replacement}.",
387393
"documented": "{community} označila tento balíček jako mající výkonnější alternativy.",
388394
"none": "Tento balíček byl označen jako již nepotřebný a jeho funkčnost je pravděpodobně dostupná nativně ve všech enginech.",
@@ -433,6 +439,7 @@
433439
"docs": "dokumentace",
434440
"fund": "financovat",
435441
"compare": "porovnat",
442+
"timeline": "EN TEXT TO REPLACE: timeline",
436443
"compare_this_package": "porovnat tento balíček"
437444
},
438445
"likes": {
@@ -478,7 +485,8 @@
478485
"warning": "Varování",
479486
"caution": "Upozornění"
480487
},
481-
"copy_as_markdown": "Zkopírovat ČTI MĚ jako Markdown"
488+
"copy_as_markdown": "Zkopírovat ČTI MĚ jako Markdown",
489+
"error_loading": "EN TEXT TO REPLACE: Failed to load README details"
482490
},
483491
"provenance_section": {
484492
"title": "Původ",
@@ -557,6 +565,23 @@
557565
"current_tags": "Aktuální značky",
558566
"no_match_filter": "Žádné verze neodpovídají {filter}"
559567
},
568+
"timeline": {
569+
"load_more": "EN TEXT TO REPLACE: Load more",
570+
"load_error": "EN TEXT TO REPLACE: Failed to load timeline. Please try again later.",
571+
"size_increase": "EN TEXT TO REPLACE: Install size increased by {percent}% ({size})",
572+
"size_decrease": "EN TEXT TO REPLACE: Install size decreased by {percent}% ({size})",
573+
"dep_increase": "EN TEXT TO REPLACE: {count} dependencies added",
574+
"dep_decrease": "EN TEXT TO REPLACE: {count} dependencies removed",
575+
"license_change": "EN TEXT TO REPLACE: License changed from {from} to {to}",
576+
"esm_added": "EN TEXT TO REPLACE: Module type changed to ESM",
577+
"esm_removed": "EN TEXT TO REPLACE: Module type changed from ESM to CJS",
578+
"types_added": "EN TEXT TO REPLACE: TypeScript types added",
579+
"types_removed": "EN TEXT TO REPLACE: TypeScript types removed",
580+
"trusted_publisher_added": "EN TEXT TO REPLACE: Trusted publishing enabled",
581+
"trusted_publisher_removed": "EN TEXT TO REPLACE: Trusted publishing removed",
582+
"provenance_added": "EN TEXT TO REPLACE: Provenance enabled",
583+
"provenance_removed": "EN TEXT TO REPLACE: Provenance removed"
584+
},
560585
"dependencies": {
561586
"title": "Závislosti ({count})",
562587
"list_label": "Závislosti balíčku",
@@ -1236,6 +1261,17 @@
12361261
"packages_selected": "Vybrané balíčky: {count}/{max}.",
12371262
"add_hint": "Přidejte alespoň 2 balíčky ke srovnání."
12381263
},
1264+
"scatter_chart": {
1265+
"title": "EN TEXT TO REPLACE: Compare {x} vs {y}",
1266+
"freshness_score": "EN TEXT TO REPLACE: Freshness score",
1267+
"copy_alt": {
1268+
"analysis": "EN TEXT TO REPLACE: {package} : {x_name} ({x_value}) and {y_name} ({y_value})",
1269+
"description": "EN TEXT TO REPLACE: Scatter plot chart mapping {x_name} versus {y_name} for the {packages} packages. {analysis}. {watermark}"
1270+
},
1271+
"filename": "EN TEXT TO REPLACE: {x}-vs-{y}-scatter-chart",
1272+
"x_axis": "EN TEXT TO REPLACE: X-AXIS ↦",
1273+
"y_axis": "EN TEXT TO REPLACE: Y-AXIS ↥"
1274+
},
12391275
"no_dependency": {
12401276
"label": "(Žádná závislost)",
12411277
"typeahead_title": "Co by udělal James?",
@@ -1314,6 +1350,18 @@
13141350
"vulnerabilities": {
13151351
"label": "Zranitelnosti",
13161352
"description": "Známé bezpečnostní zranitelnosti"
1353+
},
1354+
"githubStars": {
1355+
"label": "EN TEXT TO REPLACE: GitHub Stars",
1356+
"description": "EN TEXT TO REPLACE: Number of stars on the GitHub repository"
1357+
},
1358+
"githubIssues": {
1359+
"label": "EN TEXT TO REPLACE: GitHub Issues",
1360+
"description": "EN TEXT TO REPLACE: Number of issues on the GitHub repository"
1361+
},
1362+
"createdAt": {
1363+
"label": "EN TEXT TO REPLACE: Created At",
1364+
"description": "EN TEXT TO REPLACE: When the package was created"
13171365
}
13181366
},
13191367
"values": {

i18n/locales/de.json

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"chat": "chat",
2121
"builders_chat": "builders chat",
2222
"keyboard_shortcuts": "tastaturkürzel",
23-
"brand": "marke"
23+
"brand": "marke",
24+
"resources": "EN TEXT TO REPLACE: Resources",
25+
"features": "EN TEXT TO REPLACE: Features",
26+
"other": "EN TEXT TO REPLACE: Other"
2427
},
2528
"shortcuts": {
2629
"section": {
@@ -42,7 +45,8 @@
4245
"open_docs": "Dokumentation öffnen",
4346
"disable_shortcuts": "Tastaturkürzel deaktivieren",
4447
"open_main": "Hauptansicht öffnen",
45-
"open_diff": "Diff-Ansicht öffnen"
48+
"open_diff": "Diff-Ansicht öffnen",
49+
"open_timeline": "EN TEXT TO REPLACE: Open timeline"
4650
},
4751
"search": {
4852
"label": "npm-Pakete durchsuchen",
@@ -280,7 +284,8 @@
280284
"black": "Schwarz"
281285
},
282286
"keyboard_shortcuts_enabled": "Tastenkombinationen aktivieren",
283-
"keyboard_shortcuts_enabled_description": "Tastenkombinationen können deaktiviert werden, wenn sie mit anderen Browser- oder Systemkürzeln in Konflikt stehen"
287+
"keyboard_shortcuts_enabled_description": "Tastenkombinationen können deaktiviert werden, wenn sie mit anderen Browser- oder Systemkürzeln in Konflikt stehen",
288+
"enable_code_ligatures": "EN TEXT TO REPLACE: Enable ligatures in code"
284289
},
285290
"i18n": {
286291
"missing_keys": "{count} fehlende Übersetzung | {count} fehlende Übersetzungen",
@@ -381,7 +386,9 @@
381386
},
382387
"replacement": {
383388
"title": "Du brauchst diese Abhängigkeit vielleicht nicht.",
389+
"example": "EN TEXT TO REPLACE: Example:",
384390
"native": "Dies kann durch {replacement} ersetzt werden, verfügbar seit Node {nodeVersion}.",
391+
"native_no_version": "EN TEXT TO REPLACE: This package can be replaced with {replacement}.",
385392
"simple": "Die {community} hat dieses Paket als überflüssig markiert und empfiehlt: {replacement}.",
386393
"documented": "Die {community} hat leistungsstärkere Alternativen für dieses Paket aufgezeigt.",
387394
"none": "Dieses Paket wurde als nicht mehr nötig markiert, und seine Funktionalität ist wahrscheinlich in allen Engines nativ verfügbar.",
@@ -432,6 +439,7 @@
432439
"docs": "Dokumentation",
433440
"fund": "Spenden",
434441
"compare": "Vergleichen",
442+
"timeline": "EN TEXT TO REPLACE: timeline",
435443
"compare_this_package": "Dieses Paket vergleichen"
436444
},
437445
"likes": {
@@ -477,7 +485,8 @@
477485
"warning": "Warnung",
478486
"caution": "Vorsicht"
479487
},
480-
"copy_as_markdown": "README als Markdown kopieren"
488+
"copy_as_markdown": "README als Markdown kopieren",
489+
"error_loading": "EN TEXT TO REPLACE: Failed to load README details"
481490
},
482491
"provenance_section": {
483492
"title": "Herkunftsnachweis",
@@ -556,6 +565,23 @@
556565
"current_tags": "Aktuelle Tags",
557566
"no_match_filter": "Keine Versionen entsprechen {filter}"
558567
},
568+
"timeline": {
569+
"load_more": "EN TEXT TO REPLACE: Load more",
570+
"load_error": "EN TEXT TO REPLACE: Failed to load timeline. Please try again later.",
571+
"size_increase": "EN TEXT TO REPLACE: Install size increased by {percent}% ({size})",
572+
"size_decrease": "EN TEXT TO REPLACE: Install size decreased by {percent}% ({size})",
573+
"dep_increase": "EN TEXT TO REPLACE: {count} dependencies added",
574+
"dep_decrease": "EN TEXT TO REPLACE: {count} dependencies removed",
575+
"license_change": "EN TEXT TO REPLACE: License changed from {from} to {to}",
576+
"esm_added": "EN TEXT TO REPLACE: Module type changed to ESM",
577+
"esm_removed": "EN TEXT TO REPLACE: Module type changed from ESM to CJS",
578+
"types_added": "EN TEXT TO REPLACE: TypeScript types added",
579+
"types_removed": "EN TEXT TO REPLACE: TypeScript types removed",
580+
"trusted_publisher_added": "EN TEXT TO REPLACE: Trusted publishing enabled",
581+
"trusted_publisher_removed": "EN TEXT TO REPLACE: Trusted publishing removed",
582+
"provenance_added": "EN TEXT TO REPLACE: Provenance enabled",
583+
"provenance_removed": "EN TEXT TO REPLACE: Provenance removed"
584+
},
559585
"dependencies": {
560586
"title": "Abhängigkeit ({count}) | Abhängigkeiten ({count})",
561587
"list_label": "Paketabhängigkeiten",
@@ -1236,7 +1262,15 @@
12361262
"add_hint": "Füge mindestens 2 Pakete zum Vergleichen hinzu."
12371263
},
12381264
"scatter_chart": {
1239-
"copy_alt": {}
1265+
"title": "EN TEXT TO REPLACE: Compare {x} vs {y}",
1266+
"freshness_score": "EN TEXT TO REPLACE: Freshness score",
1267+
"copy_alt": {
1268+
"analysis": "EN TEXT TO REPLACE: {package} : {x_name} ({x_value}) and {y_name} ({y_value})",
1269+
"description": "EN TEXT TO REPLACE: Scatter plot chart mapping {x_name} versus {y_name} for the {packages} packages. {analysis}. {watermark}"
1270+
},
1271+
"filename": "EN TEXT TO REPLACE: {x}-vs-{y}-scatter-chart",
1272+
"x_axis": "EN TEXT TO REPLACE: X-AXIS ↦",
1273+
"y_axis": "EN TEXT TO REPLACE: Y-AXIS ↥"
12401274
},
12411275
"no_dependency": {
12421276
"label": "(Keine Abhängigkeit)",
@@ -1316,6 +1350,18 @@
13161350
"vulnerabilities": {
13171351
"label": "Sicherheitslücken",
13181352
"description": "Bekannte Sicherheitsrisiken"
1353+
},
1354+
"githubStars": {
1355+
"label": "EN TEXT TO REPLACE: GitHub Stars",
1356+
"description": "EN TEXT TO REPLACE: Number of stars on the GitHub repository"
1357+
},
1358+
"githubIssues": {
1359+
"label": "EN TEXT TO REPLACE: GitHub Issues",
1360+
"description": "EN TEXT TO REPLACE: Number of issues on the GitHub repository"
1361+
},
1362+
"createdAt": {
1363+
"label": "EN TEXT TO REPLACE: Created At",
1364+
"description": "EN TEXT TO REPLACE: When the package was created"
13191365
}
13201366
},
13211367
"values": {

i18n/locales/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"chat": "chat",
2121
"builders_chat": "builders",
2222
"keyboard_shortcuts": "keyboard shortcuts",
23-
"brand": "brand"
23+
"brand": "brand",
24+
"resources": "Resources",
25+
"features": "Features",
26+
"other": "Other"
2427
},
2528
"shortcuts": {
2629
"section": {

0 commit comments

Comments
 (0)