Skip to content

Commit 5c31ebb

Browse files
[es] Remove spanish docs (#392)
* [es] Remove spanish docs Unfortunately, the spanish docs haven't had much traction, and require regular translation maitainence which we haven't done. I'm removing them for now. * docs: remove remaining Spanish doc files Remove 3 remaining Spanish doc files under kotlin-sdk that were added after the initial removal commit. * fix: clean up config files after Spanish removal - Remove commented-out es entries from languages.ts, middleware.js, and i18n.ts - Restore ja (Japanese) in languages.ts that was accidentally disabled - Remove /es routes from middleware matcher - Update twoLanguages to use zh instead of commented-out es --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent ca3ed26 commit 5c31ebb

File tree

356 files changed

+4
-62296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+4
-62296
lines changed

languages.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
const allLanguages = {
22
en: "English",
33
// de: 'Deutsch',
4-
es: "Español",
54
zh: "简体中文",
65
ja: "日本語",
76
// 'pt-br': 'Português do Brasil',
8-
// es: 'Español',
97
// 'zh-cn': '简体中文',
108
// 'zh-tw': '正體中文',
119
// fr: 'Français',
1210
// hi: 'हिन्दी',
1311
// ar: 'العربية',
14-
// ja: '日本語',
1512
// ko: '한국어',
1613
// pl: 'Polski',
1714
// ru: 'Русский',
@@ -21,7 +18,7 @@ const allLanguages = {
2118
// Build for two languages only to speed up Astro's smoke tests
2219
const twoLanguages = {
2320
en: "English",
24-
es: "Español",
21+
zh: "简体中文",
2522
} as const;
2623

2724
/**

middleware.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ const SUPPORTED_LANGUAGES = [
227227
label: "English",
228228
default: true,
229229
},
230-
{
231-
code: "es",
232-
label: "Español",
233-
},
234230
{
235231
code: "zh",
236232
label: "简体中文",
@@ -369,8 +365,6 @@ export const config = {
369365
"/move-reference/:path*",
370366
"/en",
371367
"/en/:path*",
372-
"/es",
373-
"/es/:path*",
374368
"/zh",
375369
"/zh/:path*",
376370
],

scripts/audit-sidebar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function getDocFiles(dir: string): string[] {
1515
const filePath = path.join(dir, file);
1616
const stat = fs.statSync(filePath);
1717
if (stat.isDirectory()) {
18-
if (file !== "zh" && file !== "es") {
18+
if (file !== "zh") {
1919
results = results.concat(getDocFiles(filePath));
2020
}
2121
} else if (

src/config/i18n.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ export interface SupportedLanguage {
66

77
export const SUPPORTED_LANGUAGES: SupportedLanguage[] = [
88
{ code: "en", label: "English", default: true },
9-
{ code: "es", label: "Español" },
109
{ code: "zh", label: "简体中文" },
1110
];
1211

1312
// Site titles for each supported language
1413
export const SITE_TITLES: Record<string, string> = {
1514
en: "Aptos Documentation",
16-
es: "Documentación de Aptos",
1715
zh: "Aptos 文档",
1816
};

src/content/docs/es/404.mdx

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/content/docs/es/build/ai.mdx

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/content/docs/es/build/ai/aptos-mcp.mdx

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/content/docs/es/build/ai/aptos-mcp/claude.mdx

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/content/docs/es/build/ai/aptos-mcp/cursor.mdx

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/content/docs/es/build/aips.mdx

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)