Skip to content

Commit

Permalink
Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Jan 21, 2025
1 parent d6d44cd commit 16d6971
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 79 deletions.
3 changes: 0 additions & 3 deletions examples/fumadocs/content/app.cn.json

This file was deleted.

3 changes: 0 additions & 3 deletions examples/fumadocs/content/app.en.json

This file was deleted.

13 changes: 13 additions & 0 deletions examples/fumadocs/content/docs/cn/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: 你好,世界
description: 你的第一份文档
---

欢迎来到文档!你可以在 `/content/docs` 中开始编写文档。

## 接下来是什么?

<Cards>
<Card title="了解更多关于 Next.js" href="https://nextjs.org/docs" />
<Card title="了解更多关于 Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
17 changes: 17 additions & 0 deletions examples/fumadocs/content/docs/cn/test.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 组件
description: 组件
---

## 代码块

```js
console.log('Hello World');
```

## 卡片

<Cards>
<Card title="了解更多关于 Next.js" href="https://nextjs.org/docs" />
<Card title="了解更多关于 Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
17 changes: 0 additions & 17 deletions examples/fumadocs/content/docs/sv/index.mdx

This file was deleted.

17 changes: 0 additions & 17 deletions examples/fumadocs/content/docs/sv/test.mdx

This file was deleted.

6 changes: 3 additions & 3 deletions examples/fumadocs/content/ui.cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"search": "搜索",
"searchNoResult": "未找到结果",
"toc": "本页内容",
"tocNoHeadings": "没有标题",
"tocNoHeadings": "无标题",
"lastUpdate": "最后更新于",
"chooseLanguage": "选择语言",
"nextPage": "下一页",
"previousPage": "上一页",
"chooseTheme": "主题",
"editOnGithub": "在 GitHub 上编辑"
}
"editOnGithub": "在GitHub上编辑"
}
22 changes: 11 additions & 11 deletions examples/fumadocs/content/ui.en.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"search": "Sök",
"searchNoResult": "Inga resultat hittades",
"toc": "På denna sida",
"tocNoHeadings": "Inga rubriker",
"lastUpdate": "Senast uppdaterad den",
"chooseLanguage": "Välj ett språk",
"nextPage": "Nästa",
"previousPage": "Föregående",
"chooseTheme": "Tema",
"editOnGithub": "Redigera på GitHub"
}
"search": "Search",
"searchNoResult": "No results found",
"toc": "On this page",
"tocNoHeadings": "No Headings",
"lastUpdate": "Last updated on",
"chooseLanguage": "Choose a language",
"nextPage": "Next",
"previousPage": "Previous",
"chooseTheme": "Theme",
"editOnGithub": "Edit on GitHub"
}
12 changes: 0 additions & 12 deletions examples/fumadocs/content/ui.json

This file was deleted.

12 changes: 0 additions & 12 deletions examples/fumadocs/content/ui.sv.json

This file was deleted.

2 changes: 1 addition & 1 deletion examples/fumadocs/lib/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import type { I18nConfig } from "fumadocs-core/i18n";

export const i18n: I18nConfig = {
defaultLanguage: "en",
languages: ["en", "sv"],
languages: ["en", "cn"],
};
2 changes: 2 additions & 0 deletions packages/cli/src/commands/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ export async function translateCommand(args: string[] = []) {
documentName: sourceFilePath.split("/").pop(),
}));

console.log(translationInput);

let shouldRemoveKeys = false;
if (!forceTranslate && removedKeys.length > 0) {
s.stop();
Expand Down

0 comments on commit 16d6971

Please sign in to comment.