Last active
January 3, 2020 10:42
-
-
Save jacob-jonkman/ebfe5fe5559314a9d02df7a5cc9a3d6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as request from 'request-promise'; | |
import * as firebase from 'firebase'; | |
import * as admin from 'firebase-admin'; | |
import { projectId } from './poeditor-params'; | |
import { Project } from './project'; | |
import { listProjectOptions, listLanguagesOptions, listTermsOptions } from './api-options'; | |
import { blacklisted_projects } from './blacklisted_projects'; | |
const serviceAccount = require('./serviceAccountKey.json'); | |
firebase.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), | |
databaseURL: `https://${projectId}.firebaseio.com` | |
}); | |
selectValidProjects() | |
.then(projects => { | |
if (projects) { | |
writeTranslationsPerProject(projects); | |
} | |
}) | |
.catch((error) => console.error(error)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment