Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const i18n = {
- 'deaths': '死亡次数',
- 'fish caught': '捕鱼数',
- 'meters crouched': '潜行距离(米)',
- 'meters sprinted': '疾跑距离(米)',
- 'traded with villagers': '村民交易次数',
- 'mob killed': '生物击杀数',
- 'meters with Horse': '骑马移动距离(米)',
- 'meters climbed': '攀爬高度(米)',
- 'meters on boat': '坐船移动距离(米)',
- 'damage dealt': '造成伤害',
- 'meters in minecart': '坐矿车移动距离(米)',
- 'meters dove': '水下移动距离(米)',
- 'Jumps': '跳跃次数',
- 'damage taken': '受到伤害',
- 'meters gliding with elytra': '飞行距离(米)',
- 'meters fallen': '掉落高度(米)',
- 'meters swum': '游泳距离(米)',
- 'meters walked': '行走距离(米)',
- 'player killed': '玩家击杀数',
- };
- let [, , $infoRow, , $achvRow, $statRow] = $('.row');
- $statRow.find('h3').text('成就');
- $statRow.find('.text-muted').each((idx, el) => {
- let $el = $(el);
- $el.text(i18n[$el.text().trim()]);
- });
Advertisement
Add Comment
Please, Sign In to add comment