update translations and version cards for code reference
This commit is contained in:
parent
887bf12f0b
commit
b5a40ab2f7
3 changed files with 43 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="wrapper">
|
||||
<div v-for="version in gameVersions" class="card" @click="onCardClick(version)">
|
||||
<h3>{{ version.name }}</h3>
|
||||
<h3>{{ getLabel(`common.${version.identifier}`) }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -9,6 +9,10 @@
|
|||
<script>
|
||||
// Data
|
||||
import gameVersions from '../data/gameVersions.json';
|
||||
import locales from '../i18n/locales.json';
|
||||
|
||||
// Util
|
||||
import { translate } from '../i18n/localeHelper';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -18,7 +22,18 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onCardClick(v) {
|
||||
window.location.href = `/code-reference/${v.identifier.toLowerCase()}.html`;
|
||||
const localePaths = Object.keys(locales);
|
||||
|
||||
let localePath = '';
|
||||
|
||||
Object.keys(locales).forEach((l) => {
|
||||
if (locales[l].lang === this.$lang) localePath = l.replace(/\/+$/, '');
|
||||
});
|
||||
|
||||
window.location.href = `${localePath}/code-reference/${v.identifier.toLowerCase()}.html`;
|
||||
},
|
||||
getLabel(key) {
|
||||
return translate(key, this.$lang);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -8,8 +8,11 @@
|
|||
"GMSJ0A": "GMSJ01 (NTSC-J 1.1)",
|
||||
"GMSP01": "GMSP01 (PAL)"
|
||||
},
|
||||
"help": "Hilfe",
|
||||
"download": "Herunterladen",
|
||||
"headers": {
|
||||
"help": "Hilfe",
|
||||
"codelist": "Verfügbare Codes",
|
||||
"stageloader": "Stage Loader"
|
||||
},
|
||||
"codeinfo": {
|
||||
"author": "Autor:",
|
||||
"authors": "Autoren:",
|
||||
|
@ -44,11 +47,21 @@
|
|||
"stageloader": {
|
||||
"levelorder": {
|
||||
"label": "Level Reihenfolge:",
|
||||
"options": {}
|
||||
"options": {
|
||||
"list": "Wie angegeben",
|
||||
"shuffle": "Mixen",
|
||||
"random": "Zufällig"
|
||||
}
|
||||
},
|
||||
"postgame": {
|
||||
"label": "Nach der Route:",
|
||||
"options": {}
|
||||
"options": {
|
||||
"0F00": "Zurück zum Titelbildschirm",
|
||||
"0109": "Lade die geflutete Plaza",
|
||||
"0102": "Lade Post-Corona Plaza",
|
||||
"3400": "Lade Corona",
|
||||
"3C00": "Lade den Bowserkampf"
|
||||
}
|
||||
},
|
||||
"removedialogue": {
|
||||
"label": "Dialoge entfernen:",
|
||||
|
@ -60,11 +73,18 @@
|
|||
},
|
||||
"skippablefmvs": {
|
||||
"label": "Überspringbare FMVs:",
|
||||
"options": {}
|
||||
"options": {
|
||||
"pp": "Nicht in Pinna",
|
||||
"yes": "Immer",
|
||||
"no": "Nie"
|
||||
}
|
||||
},
|
||||
"levelselectplaceholder": "Wähle ein Level..",
|
||||
"loadpresetplaceholder": "Lade eine Vorlage..",
|
||||
"route": "Route",
|
||||
"clear": "Liste leeren"
|
||||
},
|
||||
"misc": {
|
||||
"defaulthelpmessage": "Wähle deine Codes von der Liste auf der linken Seite."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,6 +85,6 @@
|
|||
"clear": "Clear List"
|
||||
},
|
||||
"misc": {
|
||||
"defaulthelpmessage": "Select your codes from the list on the left"
|
||||
"defaulthelpmessage": "Select your codes from the list on the left."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue