forked from github.com/GenderDysphoria.fyi
Added tweet translation mechanism (#96)
* Added tweet translation mechanism. * Removed test translation. It was done via Google Translate which I don't trust for this application.
This commit is contained in:
@@ -71,6 +71,17 @@ module.exports = exports = class Manifest {
|
||||
}
|
||||
|
||||
async get (task) {
|
||||
if (task === undefined || task === null) {
|
||||
console.error(task);
|
||||
throw new Error('Task action is undefined or null.');
|
||||
return;
|
||||
}
|
||||
if (task.input === undefined || task.input === null) {
|
||||
console.error(task);
|
||||
throw new Error('Task action is missing input. (tip: remove `twitter-cache.json` and run `gulp` again)');
|
||||
return;
|
||||
}
|
||||
|
||||
const hash = this.hash(task);
|
||||
const { input, output, cache: altCachePath } = task;
|
||||
const ext = path.extname(task.output);
|
||||
|
||||
Reference in New Issue
Block a user