feat(site): add Portuguese to the landing site
Mirror the es/ pattern: docs/legal/pt/ + docs/o-que-e-tane.md as the Portuguese source of truth, build-legal.sh extended to generate the Hugo pt.* pages from them, config.toml gets a [languages.pt] entry, i18n/pt.json translates the UI chrome. og-pt.png is a placeholder copy of og-en.png until a proper Portuguese social card is made by hand (same as the other og-*.png, per DEPLOY.md). Verified locally with the Docker build: /pt/, /pt/about/, all four /pt/legal/ pages and the lang-switch link all resolve correctly.
This commit is contained in:
parent
a47bd6badd
commit
fa768ef17f
16 changed files with 974 additions and 6 deletions
|
|
@ -11,12 +11,12 @@ site_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||
legal_src="$(cd "$site_dir/../docs/legal" && pwd)"
|
||||
out="$site_dir/content/legal"
|
||||
|
||||
# slug | English master | Spanish mirror | menu weight
|
||||
# slug | English master | Spanish mirror | Portuguese mirror | menu weight
|
||||
rows=(
|
||||
"privacy|privacy-policy.md|politica-de-privacidad.md|1"
|
||||
"terms|terms-of-use.md|condiciones-de-uso.md|2"
|
||||
"rules|community-rules.md|normas-de-la-comunidad.md|3"
|
||||
"seeds|seed-legality-notice.md|aviso-sobre-semillas.md|4"
|
||||
"privacy|privacy-policy.md|politica-de-privacidad.md|politica-de-privacidade.md|1"
|
||||
"terms|terms-of-use.md|condiciones-de-uso.md|termos-de-uso.md|2"
|
||||
"rules|community-rules.md|normas-de-la-comunidad.md|normas-da-comunidade.md|3"
|
||||
"seeds|seed-legality-notice.md|aviso-sobre-semillas.md|aviso-sobre-sementes.md|4"
|
||||
)
|
||||
|
||||
emit() { # <src-md> <out-md> <slug> <weight>
|
||||
|
|
@ -40,9 +40,10 @@ emit() { # <src-md> <out-md> <slug> <weight>
|
|||
}
|
||||
|
||||
for row in "${rows[@]}"; do
|
||||
IFS='|' read -r slug en es weight <<<"$row"
|
||||
IFS='|' read -r slug en es pt weight <<<"$row"
|
||||
emit "$legal_src/$en" "$out/$slug.en.md" "$slug" "$weight"
|
||||
emit "$legal_src/es/$es" "$out/$slug.es.md" "$slug" "$weight"
|
||||
emit "$legal_src/pt/$pt" "$out/$slug.pt.md" "$slug" "$weight"
|
||||
done
|
||||
|
||||
echo "Generated legal pages in $out"
|
||||
|
|
@ -69,3 +70,5 @@ emit_about "$docs_dir/que-es-tane.md" "$site_dir/content/about.es.md" \
|
|||
"Qué es Tane" "Tane explicada para todos los públicos."
|
||||
emit_about "$docs_dir/what-is-tane.md" "$site_dir/content/about.en.md" \
|
||||
"What is Tane" "Tane explained for everyone."
|
||||
emit_about "$docs_dir/o-que-e-tane.md" "$site_dir/content/about.pt.md" \
|
||||
"O que é o Tane" "O Tane explicado para todos."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue