fix(tools): Integrate certificate and comment dictionaries into the Curriculum project on Crowdin (#40872)

* fix: integrate certificate and dictionary files to Crowdin

* fix: correct linting issue

* fix: improved the isReserveredHeading function
This commit is contained in:
Randell Dawson
2021-02-02 20:50:04 -07:00
committed by GitHub
parent 4d48fb5ce7
commit 2f207c3827
4 changed files with 83 additions and 25 deletions

View File

@@ -1,5 +1,4 @@
const makeRequest = require('./make-request');
const delay = require('./delay');
const authHeader = require('./auth-header');
const addFile = async (projectId, filename, fileContent, directoryId) => {
@@ -88,7 +87,6 @@ const getFiles = async projectId => {
let files = [];
while (!done) {
const endPoint = `projects/${projectId}/files?limit=500&offset=${offset}`;
await delay(1000);
const response = await makeRequest({
method: 'get',
endPoint,