Add comments

This commit is contained in:
Frank Li 2017-08-15 16:55:38 -07:00
parent df0f95e36f
commit 43ef3c8142
22 changed files with 114 additions and 62 deletions

View file

@ -37,7 +37,7 @@ function execute() {
"pages-strings": {}
};
/* look through front matter of docs for titles and categories to translate */
// look through markdown headers of docs for titles and categories to translate
let files = glob.sync(CWD + "/../docs/**");
files.forEach(file => {
const extension = path.extname(file);
@ -56,14 +56,14 @@ function execute() {
}
}
});
/* look through header links for text to translate */
// look through header links for text to translate
siteConfig.headerLinks.forEach(link => {
if (link.label) {
translations["localized-strings"][link.label] = link.label;
}
});
/* find sidebar category titles to translate */
// find sidebar category titles to translate
Object.keys(sidebars).forEach(sb => {
const categories = sidebars[sb];
Object.keys(categories).forEach(category => {
@ -85,7 +85,7 @@ function execute() {
});
});
/* go through pages to look for text inside translate tags */
// go through pages to look for text inside translate tags
files = glob.sync(CWD + "/pages/en/**");
files.forEach(file => {
const extension = path.extname(file);