- Apply translation access through Discord.
- Get the code by following the steps in 'How To Get Dogecoin Foundation Website
- Checkout a new branch for you local translation, eg.
personal-lang-trans-branch
.
git checkout -b personal-lang-trans-branch
- Any mainstrem markdown editor is suitable for processing the translation tasks.
- Open file '
config.toml
' at root path. - Add according language (eg. translated-lang) in
[languages]
section. - Add menu items of Home Page in your 'translated-lang' section (eg.
zh-cn
is[languages.zh-cn.menu]
and following[[languages.zh-cn.menu.main]]
).
- Open file '
themes/hello-friend-ng/data/langFlags.yaml
'. - Add according language (eg. translated-lang) in
langFlags.yaml
.
- Create file if it does NOT exist '
themes/hello-friend-ng/i18n/translated-lang.toml
' (eg. 'themes/hello-friend-ng/i18n/zh-cn.toml
'). - Update file if it does exist '
themes/hello-friend-ng/i18n/translated-lang.toml
' (eg. 'themes/hello-friend-ng/i18n/zh-cn.toml
').
- Copy the original english (markdown format) files (eg.
about.md
) and paste as the to-be-translated-files (eg.about.translated-lang.md
), translate them then. - If there are some updates on the
main
branch during your translating process, you should merge them to your personal-trans-branch first (resolve conflicts as well), to make sure your translation is update-to-date.
- Run the website locally by following the steps in How To Run Dogecoin Foundation Website to test the translation, make sure it will work as expected.
- Submit changes as PR, then mention your PR in the channel
website
on Discord.
- It's ideal to do
peer review
if there are at least TWO peers who are familiar with the same language translations. - If ONLY the translator is familiar with the translated laguage, then there should be at least another TWO reviewer to be requested to do the review task.
- Once the review PASS, then the ORIGINAL translator should do the
merge
action frompersonal-lang-trans-branch
tomain
branch. - Remember to resolve conflict if there happens.