UNPKG

hexo-butterfly-douban

Version:
91 lines (82 loc) 1.82 kB
'use strict' module.exports.renderStar = function (num) { switch (num) { case '1': return '★☆☆☆☆ 很差' case '2': return '★★☆☆☆ 较差' case '3': return '★★★☆☆ 还行' case '4': return '★★★★☆ 推荐' case '5': return '★★★★★ 力荐' default: return '' } } const I18N = require('hexo-i18n') const i18n = new I18N({ languages: ['zh-CN', 'en'] }) i18n.set('en', { movieWish: 'Wish', movieWatched: 'Watched', movieWatching: 'Watching', bookWish: 'Wish', bookRead: 'Read', bookReading: 'Reading', gamePlayed: 'Played', gamePlaying: 'Playing', gameWish: 'Wish', prev: 'Prev', next: 'Next', top: 'Top', end: 'End' }) i18n.set('zh-TW', { movieWish: '想看', movieWatched: '已看', movieWatching: '在看', bookWish: '想讀', bookRead: '已讀', bookReading: '在讀', gamePlayed: '已玩', gamePlaying: '在玩', gameWish: '想玩', prev: '上一頁', next: '下一頁', top: '首頁', end: '尾頁' }) i18n.set('zh-Hans', { movieWish: '想看', movieWatched: '已看', movieWatching: '在看', bookWish: '想读', bookRead: '已读', bookReading: '在读', gamePlayed: '已玩', gamePlaying: '在玩', gameWish: '想玩', prev: '上一页', next: '下一页', top: '首页', end: '尾页' }) i18n.set('zh-CN', { movieWish: '想看', movieWatched: '已看', movieWatching: '在看', bookWish: '想读', bookRead: '已读', bookReading: '在读', gamePlayed: '已玩', gamePlaying: '在玩', gameWish: '想玩', prev: '上一页', next: '下一页', top: '首页', end: '尾页' }) module.exports.i18n = i18n