Skip to content

Commit

Permalink
Set 1.1 vers
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Dec 23, 2023
1 parent 9d56253 commit eaed52a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"version": "1.1",
"scripts": {
"test": "ava"
},
Expand Down
6 changes: 4 additions & 2 deletions src/convertWikipedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import { Dictionary, TermEntry } from 'yomichan-dict-builder';
import { parseLine } from './parseLine.js';
import { languagesAllowed } from './constants.js';

import { version } from '../package.json';

const linkCharacter = '⧉';
const outputZipName = (lang) => `${lang} Wikipedia (v1.1).zip`;
const outputZipName = (lang) => `${lang} Wikipedia (v${version}).zip`;
const shortAbstractFile = (lang) =>
`short-abstracts_lang=${lang.toLowerCase()}.ttl`;

Expand Down Expand Up @@ -39,7 +41,7 @@ const shortAbstractFile = (lang) =>
console.log(`Processed ${processedLines} lines, exporting...`);

await dict.setIndex({
title: `${lang} Wikipedia [${date}]`,
title: `${lang} Wikipedia [${date}] (v${version})`,
revision: `wikipedia_${new Date().toISOString()}`,
format: 3,
url: 'https://github.com/MarvNC/wikipedia-yomitan',
Expand Down

0 comments on commit eaed52a

Please sign in to comment.