Last active
January 3, 2020 10:43
-
-
Save jacob-jonkman/eb455acccd10d8141b385cda6bd50c24 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
function writeTranslationsPerProject(projects: Project[]): void { | |
Promise.all(projects.map(project => { | |
listLanguagesOptions.formData.id = project.id; | |
return constructTranslationsperLanguage(project.id) | |
.then(translations => { | |
return firebase.database().ref('translations/' + project.name.replace('Winestep-', '') + '/').set(translations) | |
.then(() => console.log(project.name, 'done!')); | |
}) | |
})).then(() => process.exit()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment