YTDLnis Website
Code of conduct · Contributing guide · Project style guide
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
The website can be read in several languages (for example English and Shqip). You can add your own language or improve an existing translation with a pull request. To translate the app itself, use Weblate instead.
The examples below add German (de). Use your language's two-letter ISO 639-1 code instead. See the Contributing guide for how to set up and run the site locally.
Every translation sits next to the English page it translates. All paths are inside website/src:
docs/guides/
home/
en.md → /docs/guides/home (English)
sq.md → /sq/docs/guides/home (Albanian)
de.md → /de/docs/guides/home (your translation)
settings/
index.md → /docs/guides/settings/ (section pages use index.md)
index.sq.md → /sq/docs/guides/settings/
index.de.md → /de/docs/guides/settings/
- If a page is a folder with
en.md, addde.mdnext to it. - If a page is an
index.md(the home page, section pages,privacy/,yt-dlp/and others), addindex.de.mdnext to it. - Pages you haven't translated yet don't need a file.
- Translate the pages. Copy
en.mdtode.md(orindex.mdtoindex.de.md) and translate the text, including thetitleanddescriptionat the top of the file. - Register the language under
localesinwebsite/src/.vitepress/config.ts, the same waysqis:de: { label: 'Deutsch', lang: 'de', description: '…', themeConfig: themeConfigDe, },
- Translate the navigation and theme labels:
config/navigation/navbar.ts: add anavDelist, copyingnavSq.config/navigation/sidebar.ts: add adetable of labels and exportsidebarDe = sidebarFor('/de', de).config/themeConfig.ts: addthemeConfigDe(footer, "edit this page", outline, previous/next labels), copyingthemeConfigSq. Add adeentry undersearch.options.localesto translate the search box.
- Translate the component text by adding a
deblock towebsite/src/.vitepress/theme/i18n.ts. It must have the same keys asen, and TypeScript flags any you miss. - Localize the release dates by adding
import 'moment/locale/de'next to the existingsqimport intheme/components/ReleaseDate.vue. - Run
pnpm buildfrom thewebsitefolder. The build fails if any link points to a page that doesn't exist.
- Links to other pages need your language prefix:
[Cookies](/de/docs/guides/cookies), not/docs/guides/cookies. Otherwise readers are sent back to the English page. - Headings that other pages link to must keep their English ID, so links like
#cuttingkeep working. Add it after the translated heading:## Schneiden {#cutting} - Option names in backticks (for example
`Use cookies`) and<nav to="…">shortcodes are left as they are. - News posts and changelogs stay in English. Translate only their index pages.
Except for the source code licensed under the GPLv3 license, all other parties are prohibited from using the 'YTDLnis' name as a downloader app, and the same is true for its derivatives. Derivatives include but are not limited to forks and unofficial builds.
Thank you to all the people who have already contributed!