mirror of
https://github.com/elyby/docs.git
synced 2026-11-29 19:03:23 +05:30
- Add crowdin.yml for the Docusaurus layout: documentation pages and UI strings (navbar, footer) with Russian as the source language. Docusaurus theme strings (code.json) are excluded, since the theme already has translations - Add the CI workflow: uploads sources to Crowdin and downloads translations on master, builds and deploys to GitHub Pages, nightly rebuild with fresh translations. Local translations (i18n/en) are uploaded to Crowdin only on demand: with "[crowdin upload translations]" in the commit message or via a manual run - Publish languages other than Russian and English only when their translation progress in Crowdin is at least 60% (scripts/crowdin-locales.mjs, DOCS_LOCALES) - Add Chinese (zh-Hans, served under /zh/) to the locales configuration - Generate the root index.html and robots.txt from the actually built locales - Keep only the English translation in the repository, other i18n dirs are generated
25 lines
412 B
Plaintext
25 lines
412 B
Plaintext
# Dependencies
|
|
/node_modules
|
|
|
|
# Production
|
|
/build
|
|
|
|
# Generated files
|
|
.docusaurus
|
|
.cache-loader
|
|
|
|
# Misc
|
|
.DS_Store
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Translations are downloaded from Crowdin during the CI build and the Russian UI source strings are generated
|
|
# by "npm run write-translations -- --locale ru --override"
|
|
/i18n/
|