This program aids translator (of program documents, mainly) by duplicating the contents and making them to comments. For example, original texts:
# Code Contributions
A guide on how to get started contributing code to the Gutenberg project.
will be processed as:
<!--
# Code Contributions
-->
# Code Contributions
<!--
A guide on how to get started contributing code to the Gutenberg project.
-->
A guide on how to get started contributing code to the Gutenberg project.
Then, translator can translate the contents.
<!--
# Code Contributions
-->
# コードでのコントリビューション
<!--
A guide on how to get started contributing code to the Gutenberg project.
-->
このガイドでは、Gutenberg プロジェクトにコードでコントリビュートする方法を説明します。
This method is easy to track the change of original texts because you can still use diff
comand to identify the original text changes.
$ git clone [email protected]:atachibana/comment-for-translation.git
$ cd comment-for-translation
$ node cli.js <markdown-file>
<markdown-file>
target markdown file. Processed file will befilename-new.md
. For example,test1.md
will betest1-new.md
.
o, --output-dir
Specify the directory to save files (default./
)
% git clone [email protected]:atachibana/comment-for-translation.git
% cd comment-for-translation
(option: when you do not have node environment)
% docker compose up -d
% docker compose exec cli sh
% npm install
% npm test