mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 12:05:39 +00:00
Gacha Records: Support multiple languages
This commit is contained in:
parent
779e0f738d
commit
cc4094549e
@ -70,6 +70,9 @@ public final class GachaHandler implements Router {
|
||||
String template = new String(FileUtils.read(recordsTemplate), StandardCharsets.UTF_8)
|
||||
.replace("{{REPLACE_RECORDS}}", records)
|
||||
.replace("{{REPLACE_MAXPAGE}}", String.valueOf(maxPage))
|
||||
.replace("{{TITLE}}", translate(player, "gacha.records.title"))
|
||||
.replace("{{DATE}}", translate(player, "gacha.records.date"))
|
||||
.replace("{{ITEM}}", translate(player, "gacha.records.item"))
|
||||
.replace("{{LANGUAGE}}", Utils.getLanguageCode(account.getLocale()));
|
||||
response.send(template);
|
||||
}
|
||||
|
@ -67,12 +67,12 @@
|
||||
<body>
|
||||
<div class="content">
|
||||
<div class="container">
|
||||
<h2 class="mb-5">Gacha Records</h2>
|
||||
<h2 class="mb-5">{{TITLE}}</h2>
|
||||
<table id="container" class="table table-striped custom-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Date</th>
|
||||
<th scope="col">Item</th>
|
||||
<th scope="col">{{DATE}}</th>
|
||||
<th scope="col">{{ITEM}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -399,6 +399,11 @@
|
||||
"available_five_stars": "Available 5-star Items",
|
||||
"available_four_stars": "Available 4-star Items",
|
||||
"available_three_stars": "Available 3-star Items"
|
||||
},
|
||||
"records": {
|
||||
"title": "Gacha Records",
|
||||
"date": "Date",
|
||||
"item": "Item"
|
||||
}
|
||||
},
|
||||
"documentation": {
|
||||
|
@ -399,6 +399,11 @@
|
||||
"available_five_stars": "Objets 5 étoiles disponibles",
|
||||
"available_four_stars": "Objets 4 étoiles disponibles",
|
||||
"available_three_stars": "Objets 3 étoiles disponibles"
|
||||
},
|
||||
"records": {
|
||||
"title": "Gacha Records",
|
||||
"date": "Date",
|
||||
"item": "Objet"
|
||||
}
|
||||
},
|
||||
"documentation": {
|
||||
|
@ -315,6 +315,11 @@
|
||||
"available_five_stars": "Available 5-star Items",
|
||||
"available_four_stars": "Available 4-star Items",
|
||||
"available_three_stars": "Available 3-star Items"
|
||||
},
|
||||
"records": {
|
||||
"title": "Gacha Records",
|
||||
"date": "Date",
|
||||
"item": "Item"
|
||||
}
|
||||
}
|
||||
}
|
@ -399,6 +399,11 @@
|
||||
"available_five_stars": "可获得的5星物品",
|
||||
"available_four_stars": "可获得的4星物品",
|
||||
"available_three_stars": "可获得的3星物品"
|
||||
},
|
||||
"records": {
|
||||
"title": "祈愿记录",
|
||||
"date": "日期",
|
||||
"item": "物品"
|
||||
}
|
||||
},
|
||||
"documentation": {
|
||||
|
@ -399,6 +399,11 @@
|
||||
"available_five_stars": "可獲得的5星物品",
|
||||
"available_four_stars": "可獲得的4星物品",
|
||||
"available_three_stars": "可獲得的3星物品"
|
||||
},
|
||||
"records": {
|
||||
"title": "祈願記錄",
|
||||
"date": "日期",
|
||||
"item": "物品"
|
||||
}
|
||||
},
|
||||
"documentation": {
|
||||
|
Loading…
Reference in New Issue
Block a user