docs(i18n): add Greek translations (#2985)
* docs(i18n): add Greek translations Give Greek-speaking readers localized onboarding guidance and begin website coverage while keeping incomplete pages on the explicit English fallback. - Add the reviewed Greek README and place Greek last in every language selector. - Register Greek website localization and include 206 translated messages. - Keep incomplete routes nonindexable and replace fixed translation counts with inventory-based coverage. Refs #2984 * docs(website): improve Greek homepage wording
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { readFile, readdir } from "node:fs/promises";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
@@ -51,7 +51,11 @@ describe("onboarding documentation product facts", () => {
|
||||
.filter((language) => language.code !== "en")
|
||||
.map((language) => language.readme);
|
||||
expect(translatedReadmes).toContain("docs/readme/README_it.md");
|
||||
expect(translatedReadmes).toHaveLength(18);
|
||||
expect(translatedReadmes).toContain("docs/readme/README_el.md");
|
||||
const editions = (await readdir(resolve("docs/readme")))
|
||||
.filter((name) => /^README_[A-Za-z0-9-]+\.md$/u.test(name))
|
||||
.map((name) => `docs/readme/${name}`);
|
||||
expect([...translatedReadmes].sort()).toEqual(editions.sort());
|
||||
const english = shellExamples(await readFile(resolve("README.md"), "utf8"));
|
||||
for (const path of translatedReadmes)
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user