Skip to content

Commit a869992

Browse files
committed
feat(i18n): extract pages entries from global json files
1 parent a444140 commit a869992

22 files changed

Lines changed: 886 additions & 1965 deletions

File tree

i18n/locales/a11y/en.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"a11y": {
3+
"title": "accessibility",
4+
"footer_title": "a11y",
5+
"welcome": "We want {app} to be usable by as many people as possible.",
6+
"approach": {
7+
"title": "Our approach",
8+
"p1": "We try to follow the Web Content Accessibility Guidelines (WCAG) 2.2 and use them as a reference when building features. We don't claim full conformance with any level of WCAG — accessibility is a continual process and there is always more work to do.",
9+
"p2": "This site is an {about}. Accessibility improvements are made incrementally as part of our regular development.",
10+
"about_link": "open-source, community-driven project"
11+
},
12+
"measures": {
13+
"title": "What we do",
14+
"p1": "Some of the things we aim to do across the site:",
15+
"li1": "Use semantic HTML and ARIA attributes where appropriate.",
16+
"li2": "Use relative text sizes so you can adjust them in your browser.",
17+
"li3": "Support keyboard navigation throughout the interface.",
18+
"li4": "Respect the prefers-reduced-motion and prefers-color-scheme media queries.",
19+
"li5": "Design with sufficient color contrast in mind.",
20+
"li6": "Ensure essential content is available without JavaScript, though some interactive features require it."
21+
},
22+
"limitations": {
23+
"title": "Known limitations",
24+
"p1": "Some parts of the site — particularly third-party content like package READMEs — may not meet accessibility standards. We are working to improve these areas over time."
25+
},
26+
"contact": {
27+
"title": "Feedback",
28+
"p1": "If you encounter an accessibility barrier on {app}, please let us know by opening an issue on our {link}. We take these reports seriously and will do our best to address them.",
29+
"link": "GitHub repository"
30+
}
31+
}
32+
}

i18n/locales/a11y/es-419.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"a11y": {
3+
"welcome": "Queremos que {app} sea utilizable por la mayor cantidad de personas posible."
4+
}
5+
}

i18n/locales/a11y/es.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"a11y": {
3+
"title": "accesibilidad",
4+
"footer_title": "a11y",
5+
"welcome": "Queremos que {app} sea utilizable por el mayor número de personas posible.",
6+
"approach": {
7+
"title": "Nuestro enfoque",
8+
"p1": "Intentamos seguir las Pautas de Accesibilidad para el Contenido Web (WCAG) 2.2 y usarlas como referencia al desarrollar funcionalidades. No afirmamos cumplir totalmente con ningún nivel de WCAG; la accesibilidad es un proceso continuo y siempre hay más trabajo por hacer.",
9+
"p2": "Este sitio es un {about}. Las mejoras de accesibilidad se realizan de forma incremental como parte de nuestro desarrollo habitual.",
10+
"about_link": "proyecto de código abierto impulsado por la comunidad"
11+
},
12+
"measures": {
13+
"title": "Qué hacemos",
14+
"p1": "Algunas de las cosas que intentamos hacer en todo el sitio web:",
15+
"li1": "Usar HTML semántico y atributos ARIA cuando sea apropiado.",
16+
"li2": "Usar tamaños de texto relativos para que puedas ajustarlos en tu navegador.",
17+
"li3": "Soportar la navegación por teclado en toda la interfaz.",
18+
"li4": "Respetar las preferencias de reducción de movimiento y esquema de color.",
19+
"li5": "Diseñar teniendo en cuenta un contraste de color suficiente.",
20+
"li6": "Asegurar que el contenido esencial esté disponible sin JavaScript, aunque algunas funciones interactivas lo requieran."
21+
},
22+
"limitations": {
23+
"title": "Limitaciones conocidas",
24+
"p1": "Algunas partes del sitio, particularmente el contenido de terceros como los README de los paquetes, pueden no cumplir con los estándares de accesibilidad. Estamos trabajando para mejorar estas áreas con el tiempo."
25+
},
26+
"contact": {
27+
"title": "Comentarios",
28+
"p1": "Si encuentras una barrera de accesibilidad en {app}, por favor háznoslo saber abriendo una incidencia en nuestro {link}. Nos tomamos estos informes muy en serio y haremos todo lo posible para abordarlos.",
29+
"link": "repositorio de GitHub"
30+
}
31+
}
32+
}

i18n/locales/about/en-GB.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"about": {
3+
"what_we_are": {
4+
"admin_description": "We also aim to provide a better {adminUi} for managing your packages, teams, and organisations — all from the browser, powered by your local npm CLI."
5+
}
6+
}
7+
}

i18n/locales/about/en.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"about": {
3+
"title": "About",
4+
"heading": "about",
5+
"meta_description": "npmx is a fast, modern browser for the npm registry. A better UX/DX for exploring npm packages.",
6+
"what_we_are": {
7+
"title": "What we are",
8+
"better_ux_dx": "better UX/DX",
9+
"admin_ui": "admin UI",
10+
"description": "npmx is a {betterUxDx} for the npm package registry and tooling. We provide a fast, modern interface for exploring packages, with features like dark mode, keyboard navigation, code browsing, and connections to alternative registries like {jsr}.",
11+
"admin_description": "We also aim to provide a better {adminUi} for managing your packages, teams, and organizations — all from the browser, powered by your local npm CLI."
12+
},
13+
"what_we_are_not": {
14+
"title": "What we're not",
15+
"not_package_manager": "Not a package manager.",
16+
"not_registry": "Not a registry.",
17+
"registry_description": "We don't host packages. We're just a better way to browse them.",
18+
"package_managers_exist": "{already} {people} {building} {really} {cool} {package} {managers}.",
19+
"words": {
20+
"already": "There are",
21+
"people": "already",
22+
"building": "people",
23+
"really": "building",
24+
"cool": "really",
25+
"package": "cool",
26+
"managers": "package managers"
27+
}
28+
},
29+
"sponsors": {
30+
"title": "Sponsors"
31+
},
32+
"oss_partners": {
33+
"title": "OSS Partners"
34+
},
35+
"team": {
36+
"title": "Team",
37+
"governance": "Governance",
38+
"role_steward": "steward",
39+
"role_maintainer": "maintainer",
40+
"sponsor": "sponsor",
41+
"sponsor_aria": "Sponsor {name} on GitHub"
42+
},
43+
"contributors": {
44+
"title": "... and {count} more contributor | ... and {count} more contributors",
45+
"description": "npmx is fully open source, built by an amazing community of contributors. Join us and let's build the npm browsing experience we always wanted, together.",
46+
"loading": "Loading contributors...",
47+
"error": "Failed to load contributors",
48+
"view_profile": "View {name}'s GitHub profile"
49+
},
50+
"get_involved": {
51+
"title": "Get involved",
52+
"contribute": {
53+
"title": "Contribute",
54+
"description": "Help us build a better npm experience.",
55+
"cta": "View on GitHub"
56+
},
57+
"community": {
58+
"title": "Join the community",
59+
"description": "Chat, ask questions, and share ideas.",
60+
"cta": "Join Discord"
61+
},
62+
"builders": {
63+
"title": "Help build npmx",
64+
"description": "Join the builders shaping the future of npmx.",
65+
"cta": "Join Builders Discord"
66+
},
67+
"follow": {
68+
"title": "Stay updated",
69+
"description": "Find out the latest on npmx.",
70+
"cta": "Follow on Bluesky"
71+
}
72+
}
73+
}
74+
}

i18n/locales/about/es-419.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"about": {
3+
"what_we_are": {
4+
"admin_description": "También aspiramos a proporcionar una mejor {adminUi} para administrar tus paquetes, equipos y organizaciones — todo desde el navegador, impulsado por tu CLI de npm local."
5+
}
6+
}
7+
}

i18n/locales/about/es.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"about": {
3+
"title": "Acerca de",
4+
"heading": "acerca de",
5+
"meta_description": "npmx es un explorador rápido y moderno para el registro npm. Una mejor UX/DX para explorar paquetes npm.",
6+
"what_we_are": {
7+
"title": "Lo que somos",
8+
"better_ux_dx": "mejor UX/DX",
9+
"admin_ui": "UI de administración",
10+
"description": "npmx es una {betterUxDx} para el registro de paquetes npm y herramientas. Proporcionamos una interfaz rápida y moderna para explorar paquetes, con características como modo oscuro, navegación por teclado, exploración de código y conexiones a registros alternativos como {jsr}.",
11+
"admin_description": "También aspiramos a proporcionar una mejor {adminUi} para gestionar tus paquetes, equipos y organizaciones — todo desde el navegador, impulsado por tu CLI de npm local."
12+
},
13+
"what_we_are_not": {
14+
"title": "Lo que no somos",
15+
"not_package_manager": "No es un gestor de paquetes.",
16+
"not_registry": "No es un registro.",
17+
"registry_description": "No alojamos paquetes. Solo somos una mejor manera de explorarlos.",
18+
"package_managers_exist": "{already} {people} {building} {really} {cool} {package} {managers}.",
19+
"words": {
20+
"already": "Ya hay",
21+
"people": "gente",
22+
"building": "construyendo",
23+
"really": "gestores de",
24+
"cool": "paquetes",
25+
"package": "realmente",
26+
"managers": "geniales"
27+
}
28+
},
29+
"sponsors": {
30+
"title": "Patrocinadores"
31+
},
32+
"oss_partners": {
33+
"title": "Socios de OSS"
34+
},
35+
"team": {
36+
"title": "Equipo",
37+
"governance": "Gobernanza",
38+
"role_steward": "Administrador",
39+
"role_maintainer": "Mantenedor",
40+
"sponsor": "Patrocinar",
41+
"sponsor_aria": "Patrocinar a {name} en GitHub"
42+
},
43+
"contributors": {
44+
"title": "{count} Colaborador | {count} Colaboradores",
45+
"description": "npmx es completamente de código abierto, construido por una increíble comunidad de colaboradores. Únete a nosotros y construyamos juntos la experiencia de navegación de npm que siempre quisimos.",
46+
"loading": "Cargando colaboradores...",
47+
"error": "Error al cargar colaboradores",
48+
"view_profile": "Ver perfil de GitHub de {name}"
49+
},
50+
"get_involved": {
51+
"title": "Involúcrate",
52+
"contribute": {
53+
"title": "Contribuir",
54+
"description": "Ayúdanos a construir una mejor experiencia npm.",
55+
"cta": "Ver en GitHub"
56+
},
57+
"community": {
58+
"title": "Únete a la comunidad",
59+
"description": "Chatea, haz preguntas y comparte ideas.",
60+
"cta": "Únete a Discord"
61+
},
62+
"builders": {},
63+
"follow": {
64+
"title": "Mantente actualizado",
65+
"description": "Entérate de lo último en npmx.",
66+
"cta": "Síguenos en Bluesky"
67+
}
68+
}
69+
}
70+
}

i18n/locales/compare/en.json

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{
2+
"compare": {
3+
"packages": {
4+
"title": "compare packages",
5+
"tagline": "compare npm packages side-by-side to help you choose the right one.",
6+
"meta_title": "Compare {packages} - npmx",
7+
"meta_title_empty": "Compare Packages - npmx",
8+
"meta_description": "Side-by-side comparison of {packages}",
9+
"meta_description_empty": "Compare npm packages side-by-side",
10+
"section_packages": "Packages",
11+
"section_facets": "Facets",
12+
"section_comparison": "Comparison",
13+
"copy_as_markdown": "Copy table",
14+
"loading": "Loading package data...",
15+
"error": "Failed to load package data. Please try again.",
16+
"empty_title": "Select packages to compare",
17+
"empty_description": "Search and add at least 2 packages above to see a side-by-side comparison of their metrics.",
18+
"table_view": "Table",
19+
"charts_view": "Charts"
20+
},
21+
"selector": {
22+
"search_label": "Search for packages",
23+
"search_first": "Search for a package...",
24+
"search_add": "Add another package...",
25+
"searching": "Searching...",
26+
"remove_package": "Remove {package}",
27+
"packages_selected": "{count}/{max} packages selected.",
28+
"add_hint": "Add at least 2 packages to compare."
29+
},
30+
"no_dependency": {
31+
"label": "(No dependency)",
32+
"typeahead_title": "What Would James Do?",
33+
"typeahead_description": "Compare against not using a dependency! e18e approved.",
34+
"tooltip_title": "You might not need a dependency",
35+
"tooltip_description": "Compare against not using a dependency! The {link} maintains a list of packages that can be replaced with native APIs or simpler alternatives.",
36+
"e18e_community": "e18e community",
37+
"add_column": "Add no dependency column to comparison"
38+
},
39+
"facets": {
40+
"group_label": "Comparison facets",
41+
"all": "all",
42+
"none": "none",
43+
"coming_soon": "Coming soon",
44+
"select_all": "Select all facets",
45+
"deselect_all": "Deselect all facets",
46+
"select_category": "Select all {category} facets",
47+
"deselect_category": "Deselect all {category} facets",
48+
"binary_only_tooltip": "This package exposes binaries and no exports",
49+
"categories": {
50+
"performance": "Performance",
51+
"health": "Health",
52+
"compatibility": "Compatibility",
53+
"security": "Security & Compliance"
54+
},
55+
"items": {
56+
"packageSize": {
57+
"label": "Package Size",
58+
"description": "Size of the package itself (unpacked)"
59+
},
60+
"installSize": {
61+
"label": "Install Size",
62+
"description": "Total install size including all dependencies"
63+
},
64+
"dependencies": {
65+
"label": "Direct Deps",
66+
"description": "Number of direct dependencies"
67+
},
68+
"totalDependencies": {
69+
"label": "Total Deps",
70+
"description": "Total number of dependencies including transitive"
71+
},
72+
"downloads": {
73+
"label": "Downloads/wk",
74+
"description": "Weekly download count"
75+
},
76+
"totalLikes": {
77+
"label": "Likes",
78+
"description": "Number of likes"
79+
},
80+
"lastUpdated": {
81+
"label": "Published",
82+
"description": "When this version was published"
83+
},
84+
"deprecated": {
85+
"label": "Deprecated?",
86+
"description": "Whether the package is deprecated"
87+
},
88+
"engines": {
89+
"label": "Engines",
90+
"description": "Node.js version requirements"
91+
},
92+
"types": {
93+
"label": "Types",
94+
"description": "TypeScript type definitions"
95+
},
96+
"moduleFormat": {
97+
"label": "Module Format",
98+
"description": "ESM/CJS support"
99+
},
100+
"license": {
101+
"label": "License",
102+
"description": "Package license"
103+
},
104+
"vulnerabilities": {
105+
"label": "Vulnerabilities",
106+
"description": "Known security vulnerabilities"
107+
}
108+
},
109+
"values": {
110+
"any": "Any",
111+
"none": "None",
112+
"unknown": "Unknown",
113+
"deprecated": "Deprecated",
114+
"not_deprecated": "No",
115+
"types_included": "Included",
116+
"types_none": "None",
117+
"vulnerabilities_summary": "{count} ({critical}C/{high}H)",
118+
"up_to_you": "Up to you!"
119+
},
120+
"trends": {
121+
"title": "Compare Trends"
122+
}
123+
},
124+
"file_changes": "File Changes",
125+
"files_count": "{count} file | {count} files",
126+
"lines_hidden": "{count} line hidden | {count} lines hidden",
127+
"file_too_large": "File too large to compare",
128+
"file_size_warning": "{size} exceeds the 250KB limit for comparison",
129+
"compare_versions": "diff",
130+
"compare_versions_title": "Compare with latest version",
131+
"version_selector_title": "Compare with version",
132+
"summary": "Summary",
133+
"deps_count": "{count} dep | {count} deps",
134+
"dependencies": "Dependencies",
135+
"dev_dependencies": "Dev Dependencies",
136+
"peer_dependencies": "Peer Dependencies",
137+
"optional_dependencies": "Optional Dependencies",
138+
"no_dependency_changes": "No dependency changes",
139+
"file_filter_option": {
140+
"all": "All ({count})",
141+
"added": "Added ({count})",
142+
"removed": "Removed ({count})",
143+
"modified": "Modified ({count})"
144+
},
145+
"search_files_placeholder": "Search files...",
146+
"no_files_all": "No files",
147+
"no_files_search": "No files matching \"{query}\"",
148+
"no_files_filtered": "No {filter} files",
149+
"filter": {
150+
"added": "added",
151+
"removed": "removed",
152+
"modified": "modified"
153+
},
154+
"files_button": "Files",
155+
"select_file_prompt": "Select a file from the sidebar to view its diff",
156+
"close_files_panel": "Close files panel",
157+
"filter_files_label": "Filter files by change type"
158+
}
159+
}

0 commit comments

Comments
 (0)