Fix "thaught in" capitalisation
This commit is contained in:
parent
4355494602
commit
8fa6d705b5
@ -8,6 +8,10 @@ function getKanjiTexData(kanjiArray) {
|
||||
const kunyomi = textFiltration.convertKunyomi(kanji);
|
||||
const onyomi = textFiltration.convertOnyomi(kanji);
|
||||
|
||||
kanji.taughtIn = kanji.taughtIn ?
|
||||
kanji.taughtIn.charAt(0).toUpperCase() + kanji.taughtIn.slice(1)
|
||||
: '';
|
||||
|
||||
return {
|
||||
kanji: kanji.query,
|
||||
kanjiPageHeader: `\\kanjiPageHeader{${kanji.query}}{${kanji.taughtIn}}{${kanji.jlptLevel}}{${kanji.strokeCount}}{${kanji.radical.symbol}}`,
|
||||
|
Loading…
Reference in New Issue
Block a user