update tag

This commit is contained in:
polv committed 2022-04-28 16:06:38 +07:00
1 parent 16d1307744
commit 292beabffe
3 files changed
+20 -4

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ async function makeWaniKaniKanjiLevels(
for (const k of wkKanji) {
const { level, characters } = k.data;
const label = WaniKani.getLevelLabel(level);
if (!label) throw new Error(`Invalid level: ${level}`);
const category = `${label.range}: ${
label.ja
} ${label.en.toLocaleUpperCase()}`;
+10
View File
@@ -6,6 +6,16 @@ if (require.main === module) {
// { ja: 'Japanese', audio: 'JapaneseAudio' },
// { mode: { online: true } },
// );
// new WaniKani().populateSentence(
// 'note:jp.takoboto',
// {
// vocabJa: 'Japanese',
// sentenceJa: 'Sentence',
// sentenceAudio: 'SentenceAudio',
// sentenceEn: 'SentenceMeaning',
// },
// { overwrite: true },
// );
new WaniKani().addTags('note:jp.takoboto', {
ja: 'Japanese',
});