Package: add 1000-hours repo in workspace (#337)
* add 1000-hours repo in workspace * update README
This commit is contained in:
13
1000-hours/.vitepress/theme/data/index.js
Normal file
13
1000-hours/.vitepress/theme/data/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
function getAudioPath(word, accent) {
|
||||
word = word.toLowerCase();
|
||||
accent = accent || 'us';
|
||||
const item = mapping[word];
|
||||
if (item && item[accent] && item[accent].length !== 0) {
|
||||
return `/vendor/audios/${item[accent][0]}`
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
export {
|
||||
getAudioPath
|
||||
}
|
||||
Reference in New Issue
Block a user