Skip to content

Commit 585fb09

Browse files
committed
crowdin on circleci
1 parent 76081a5 commit 585fb09

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.circleci/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ jobs:
2929
git config --global user.email "[email protected]"
3030
git config --global user.name "kotakanbe"
3131
echo "machine github.com login kotakanbe password $GITHUB_TOKEN" > ~/.netrc
32+
# install Docusaurus and generate file of English strings
33+
cd website && npm install && npm run write-translations && cd ..
34+
sudo apt-get install default-jre
35+
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
36+
sudo dpkg -i crowdin.deb
37+
crowdin --config crowdin.yaml upload sources --auto-update -b master
38+
crowdin --config crowdin.yaml download -b master
3239
cd website && npm install && GIT_USER=kotakanbe npm run publish-gh-pages
40+
3341
workflows:
3442
version: 2
3543
build-and-deploy:

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
translated_docs/
2+
build/
3+
*.log

website/i18n/ja.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"_comment": "This file is auto-generated by write-translations.js",
3+
"localized-strings": {
4+
"next": "Next",
5+
"previous": "Previous",
6+
"tagline": "Vulnerability scanner for Linux/FreeBSD, agentless, written in Go",
7+
"doc1": "Latin-ish",
8+
"Example Page": "Example Page",
9+
"doc2": "document number 2",
10+
"doc3": "This is document number 3",
11+
"doc4": "Other Document",
12+
"doc5": "Fifth Document",
13+
"tutorial-localscan": "Tutorial: Local Scan Mode",
14+
"tutorial": "Tutorial",
15+
"Tutorial": "Tutorial",
16+
"Docs": "Docs",
17+
"Community": "Community",
18+
"Blog": "Blog",
19+
"GitHub": "GitHub",
20+
"Docusaurus": "Docusaurus",
21+
"First Category": "First Category",
22+
"Second Category": "Second Category"
23+
},
24+
"pages-strings": {
25+
"Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)|no description given": "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)",
26+
"Browse Docs|no description given": "Browse Docs",
27+
"Ask questions about the documentation and project|no description given": "Ask questions about the documentation and project",
28+
"Join the community|no description given": "Join the community",
29+
"Find out what's new with this project|no description given": "Find out what's new with this project",
30+
"Stay up to date|no description given": "Stay up to date",
31+
"Need help?|no description given": "Need help?",
32+
"This project is maintained by a dedicated group of people.|statement made to reader": "This project is maintained by a dedicated group of people.",
33+
"Help Translate|recruit community translators for your project": "Help Translate",
34+
"Edit this Doc|recruitment message asking to edit the doc source": "Edit",
35+
"Translate this Doc|recruitment message asking to translate the docs": "Translate"
36+
}
37+
}

0 commit comments

Comments
 (0)