Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add Japanese README #6065

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
packages/mermaid/src/docs/**/*.md
README.md
README.zh-CN.md
README.ja.md
fail: true
jobSummary: true
env:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ vite.config.ts.timestamp-*

# autogenereated by langium-cli
generated/

# translation
/translation/po/en.pot
464 changes: 464 additions & 0 deletions README.ja.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Generate diagrams from markdown-like text.
</p>
<p align="center">
<a href="./README.zh-CN.md">简体中文</a>
<a href="./README.ja.md">日本語</a>
</p>
<p align="center">
Try Live Editor previews of future releases: <a href="https://develop.git.mermaid.live/" title="Try the mermaid version from the develop branch.">Develop</a> | <a href="https://next.git.mermaid.live/" title="Try the mermaid version from the next branch.">Next</a>
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Mermaid
</p>
<p align="center">
<a href="./README.md">English</a>
<a href="./README.ja.md">日本語</a>
</p>

<p align="center">
Expand Down
7 changes: 7 additions & 0 deletions scripts/translation.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [ ! -f translation/po/en.pot ]; then
touch translation/po/en.pot
fi

po4a translation/po4a.cfg
890 changes: 890 additions & 0 deletions translation/po/ja.po

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions translation/po4a.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[po_directory] translation/po
[po4a_alias:Markdown] text --option markdown
[type:Markdown] README.md $lang:README.$lang.md
Loading