Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Idea] Switch translations to a single site

Aperta
#122 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
documentation

Direzione di ricerca

Start by reading the linked Gatsby translations RFC, then inspect how translated content is organized in the language repositories. The proposed scope covers moving strings into content, removing src/, serving language paths such as reactjs.org/es/docs, and redirecting existing language subdomains; done means those sources and redirects work together.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Right now each translation has its own subdomain (es.reactjs.org, ja.reactjs.org) run as a separate website. This follows the convention of Vue and Angular but has several disadvantages.

  • We lose the advantage of single page apps, since switching languages requires you to load a completely new site.
  • Each language site doesn't have access to data from other sites, so we can't do things like only showing languages that have been translated in a dropdown.

Since I'm doing work on doing translations for Gatsby, which the site is based on, I'm thinking of doing some work to consolidate all the different translations under one main site.

This work entails:

  • Moving all strings to markdown/yaml in content and removing src/
  • Add logic in the main repo to source content from the language repositories and serve them at reactjs.org/es/docs etc.
  • Redirect all languages to the main site: e.g. es.reactjs.org to reactjs.org/es
Lingua principale
JavaScript
Stelle
299
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di reactjs/translations.react.dev

Tutte le issue di reactjs/translations.react.dev

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.