Compare commits
No commits in common. "8922d96c558dd1a9ab45e1564e6f7c345acab7e5" and "51e22a4611dab8edcd7295e4208233e21a49f8ca" have entirely different histories.
8922d96c55
...
51e22a4611
|
@ -19,7 +19,8 @@ const storage = new Storage({
|
||||||
});
|
});
|
||||||
|
|
||||||
const title = "LingDocs Pashto Dictionary";
|
const title = "LingDocs Pashto Dictionary";
|
||||||
const license = `Copyright © ${new Date().getFullYear()} lingdocs.com All Rights Reserved - Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License - https://creativecommons.org/licenses/by-nc-sa/4.0/`;
|
const license =
|
||||||
|
"Copyright © 2021 lingdocs.com All Rights Reserved - Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License - https://creativecommons.org/licenses/by-nc-sa/4.0/";
|
||||||
const bucketName = "lingdocs";
|
const bucketName = "lingdocs";
|
||||||
const baseUrl = `https://storage.googleapis.com/${bucketName}/`;
|
const baseUrl = `https://storage.googleapis.com/${bucketName}/`;
|
||||||
const dictionaryFilename = "dictionary";
|
const dictionaryFilename = "dictionary";
|
||||||
|
@ -259,10 +260,7 @@ async function uploadDictionaryToStorage(dictionary: T.Dictionary) {
|
||||||
const dictionaryInfoBuffer = writeDictionaryInfo(dictionary.info);
|
const dictionaryInfoBuffer = writeDictionaryInfo(dictionary.info);
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
upload(JSON.stringify(dictionary), `${dictionaryFilename}.json`),
|
upload(JSON.stringify(dictionary), `${dictionaryFilename}.json`),
|
||||||
upload(
|
upload(JSON.stringify(dictionary.info), `${dictionaryInfoFilename}.json`),
|
||||||
JSON.stringify(dictionary.info, null, "\t"),
|
|
||||||
`${dictionaryInfoFilename}.json`
|
|
||||||
),
|
|
||||||
upload(dictionaryBuffer as Buffer, dictionaryFilename),
|
upload(dictionaryBuffer as Buffer, dictionaryFilename),
|
||||||
upload(dictionaryInfoBuffer as Buffer, dictionaryInfoFilename),
|
upload(dictionaryInfoBuffer as Buffer, dictionaryInfoFilename),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue