Locale business

This commit is contained in:
Jip Fr 2020-05-07 12:13:58 +02:00
parent 85c1fd59bc
commit 00102ee738
5 changed files with 152 additions and 139 deletions

128
locales/US_en.json Normal file
View File

@ -0,0 +1,128 @@
{
"nav": {
"about": "About",
"faq": "Faq",
"credits": "Credits"
},
"hero": {
"subtitle": "Game servers",
"title": "Recreated",
"text": "An open source project that aims to recreate all Nintendo servers for 3DS and WiiU. This way the services can persist after officially killed by Nintendo.",
"buttons": {
"readMore": "Read more"
}
},
"aboutUs": {
"title": "About us",
"paragraphs": [
"We are a bunch of programmers spending our free time reverse engineering and coding game servers for 3DS and WiiU",
"An open source project that aims to recreate all Nintendo servers for 3DS and WiiU. This way the services can persist after they are officialy killed by Nintendo"
]
},
"progress": {
"title": "Progress",
"paragraphs": [
"Now what are the possibilities of warp drive? Hello world, this is just s'more text. Hello hello world world hello! Some.",
"10.000 luchtballonnen, kleuren de hemel blauw. 10.000 luchtballonnen, zijn op weg naar jou. 10.000 luchtballonnen, kleuren de horizon."
]
},
"faq": {
"title": "Answered questions",
"text": "This is where some text about the questions would go, however jvs didn't write copy for it. So now I have to write this.",
"QAs": [
{
"question": "What is Pretendo?",
"answer": "Pretendo is an open source Nintendo Network replacement that aims to build custom servers for the WiiU and 3DS family of consoles. Our goal is to preserve the online functionality of these consoles, to allow players to continue to play their favorite WiiU and 3DS games to their fullest capacity"
},
{
"question": "Will my existing NNIDs work on Pretendo?",
"answer": "Sadly, no. The only ones with access to the data about your existing NNIDs is Nintendo. A NNID-to-PNID migration could theoretically be possible, but it would be a slow and lengthy process requiring sensitive user information"
},
{
"question": "How do I use Pretendo?",
"answer": "Pretendo is currently not in a state that is ready for public use. However, once it is you will be able to use Pretendo simply by running our homebrew patcher on your console"
},
{
"question": "Is there an ETA for XYZ?",
"answer": "We do not have an exact ETA for any specific features or the project as a whole. There are many parts to the network, updates release for them individually whenever they are ready (for example updates to the account server are (almost always) independent on other parts of the network, such as the friends server). Due to that we cannot give an exact ETA"
},
{
"question": "Does Pretendo work on Cemu/emulators?",
"answer": "Pretendo is designed for the WiiU and (eventually) 3DS. At this time the only emulator for these consoles with real online capability is Cemu. Cemu does not officially support custom servers, but it will still be possible to use Pretendo with Cemu<br>See the <a href=\"/cemu\">Cemu</a> page for more details"
},
{
"question": "If I am account/console banned on Nintendo Network, will I stay banned when using Pretendo?",
"answer": "Any account/console bans only exist server-side. This means any existing bans would not carry over to Pretendo. However Pretendo still reserves the right to issue a ban for our network if we see fit"
},
{
"question": "Will Pretendo support the Wii/Switch?",
"answer": "The Wii already has custom servers provided by <a href=\"https://wiimmfi.de/\" target=\"_blank\">Wiimmfi</a>. We currently have no plans on supporting the Switch, as not only is it a completely different platform with a different online network, but Switch online is a paid service"
},
{
"question": "Do I need Haxchi to run the patcher?",
"answer": "No. The only thing you need to run the patcher is a way to access the Homebrew Launcher, whether it's the browser exploit, Haxchi or Coldboot Haxchi"
}
]
},
"credits": {
"title": "The team",
"text": "Our amazing team has spent countless hours helping out on making Pretendo better.",
"people": [
{
"name": "Jonathan Barrow (RedDucks)",
"caption": "Project owner and lead developer",
"picture": "https://github.com/redduckss.png",
"github": "https://github.com/RedDuckss"
},
{
"name": "Jemma (CaramelKat)",
"caption": "Miiverse research and development",
"picture": "https://github.com/caramelkat.png",
"github": "https://github.com/CaramelKat"
},
{
"name": "superwhiskers",
"caption": "crunch library development",
"picture": "https://github.com/superwhiskers.png",
"github": "https://github.com/superwhiskers"
},
{
"name": "SuperMarioDaBom",
"caption": "Console and other system research",
"picture": "https://github.com/supermariodabom.png",
"github": "https://github.com/SuperMarioDaBom"
},
{
"name": "Rambo6Glaz",
"caption": "Network installer and console research",
"picture": "https://github.com/NexoDevelopment.png",
"github": "https://github.com/NexoDevelopment"
},
{
"name": "mrjvs",
"caption": "Web development and early eShop research",
"picture": "https://github.com/mrjvs.png",
"github": "https://github.com/mrjvs"
},
{
"name": "Benjamin Moss (kxpler442b)",
"caption": "Web development",
"picture": "https://github.com/kxpler442b.png",
"github": "https://github.com/kxpler442b"
},
{
"name": "Jip Fr",
"caption": "Web development",
"picture": "https://github.com/jipfr.png",
"github": "https://github.com/jipfr"
},
{
"name": "Kinnay",
"special": "Special thanks",
"caption": "Research on Nintendo datastructures",
"picture": "https://cdn.discordapp.com/avatars/186572995848830987/b55c0d4e7bfd792edf0689f83a25d8ea.png?size=2048",
"github": "https://github.com/Kinnay"
}
]
}
}

View File

@ -255,6 +255,10 @@ section.team {
.card .text, .card .title {
margin: 0;
}
.card .sub {
color: #59C9A5;
font-size: .875rem;
}
.card .title {
display: flex;
justify-content: space-between;
@ -278,6 +282,6 @@ section.team {
footer {
text-align: center;
color: var(--text-secondary);
margin-top: 100px;
margin-top: 290px;
margin-bottom: 40px;
}

8
util/getLocale.js Normal file
View File

@ -0,0 +1,8 @@
module.exports = (variant, language) => {
try {
return require(`../locales/${variant}_${language}.json`);
} catch(e) {
// Use US_en as a fallback
return require("../locales/US_en.json");
}
}

View File

@ -52,17 +52,17 @@
<section class="progress column-2">
<div class="left sect">
<div class="left-meta">
<h2 class="dot title">{{ locale.section2.left.title }}</h2>
{{#each locale.section2.left.paragraphs}}
<h2 class="dot title">{{ locale.aboutUs.title }}</h2>
{{#each locale.aboutUs.paragraphs}}
<p class="text">{{ this }}</p>
{{/each}}
</div>
</div>
<div class="right sect">
<h2 class="title">{{ locale.section2.right.title }}</h2>
{{#each locale.section2.right.paragraphs}}
<p class="text">{{ this }}</p>
{{/each}}
<h2 class="title">{{ locale.progress.title }}</h2>
{{#each locale.progress.paragraphs}}
<p class="text">{{ this }}</p>
{{/each}}
</div>
</section>
@ -99,9 +99,10 @@
<img src="{{ picture }}" class="pfp">
</div>
<div class="card-core">
{{#if special}}<span class="sub">{{ special }}</span>{{/if}}
<h3 class="title">
<span>{{ name }}</span>
<a href="{{ github }}" class="github">
<a href="{{ github }}" class="github" target="_blank">
<svg data-prefix="fab" data-icon="github" class="svg-inline--fa fa-github fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg>
</a>
</h3>

View File

@ -1,140 +1,12 @@
const getLocale = require("../../util/getLocale");
const { Router } = require("express");
const router = new Router();
router.get("/", (req, res) => {
const tmpLocale = {
// TODO
nav: {
about: "About",
faq: "Faq",
credits: "Credits"
},
hero: {
subtitle: "Game servers",
title: "Recreated", // No dot here.
text: "An open source project that aims to recreate all Nintendo servers for 3DS and WiiU. This way the services can persist after officially killed by Nintendo.",
buttons: {
readMore: "Read more"
}
},
section2: {
left: {
title: "About us",
paragraphs: [
"We are a bunch of programmers spending our free time reverse engineering and coding game servers for 3DS and WiiU",
"An open source project that aims to recreate all Nintendo servers for 3DS and WiiU. This way the services can persist after they are officialy killed by Nintendo"
]
},
right: {
title: "Progress",
paragraphs: [
"Now what are the possibilities of warp drive? Hello world, this is just s'more text. Hello hello world world hello! Some.",
"10.000 luchtballonnen, kleuren de hemel blauw. 10.000 luchtballonnen, zijn op weg naar jou. 10.000 luchtballonnen, kleuren de horizon."
]
}
},
faq: {
title: "Answered questions",
text: "This is where some text about the questions would go, however jvs didn't write copy for it. So now I have to write this.",
QAs: [
{
"question": "What is Pretendo?",
"answer": "Pretendo is an open source Nintendo Network replacement that aims to build custom servers for the WiiU and 3DS family of consoles. Our goal is to preserve the online functionality of these consoles, to allow players to continue to play their favorite WiiU and 3DS games to their fullest capacity"
},
{
"question": "Will my existing NNIDs work on Pretendo?",
"answer": "Sadly, no. The only ones with access to the data about your existing NNIDs is Nintendo. A NNID-to-PNID migration could theoretically be possible, but it would be a slow and lengthy process requiring sensitive user information"
},
{
"question": "How do I use Pretendo?",
"answer": "Pretendo is currently not in a state that is ready for public use. However, once it is you will be able to use Pretendo simply by running our homebrew patcher on your console"
},
{
"question": "Is there an ETA for XYZ?",
"answer": "We do not have an exact ETA for any specific features or the project as a whole. There are many parts to the network, updates release for them individually whenever they are ready (for example updates to the account server are (almost always) independent on other parts of the network, such as the friends server). Due to that we cannot give an exact ETA"
},
{
"question": "Does Pretendo work on Cemu/emulators?",
"answer": "Pretendo is designed for the WiiU and (eventually) 3DS. At this time the only emulator for these consoles with real online capability is Cemu. Cemu does not officially support custom servers, but it will still be possible to use Pretendo with Cemu<br>See the <a href=\"/cemu\">Cemu</a> page for more details"
},
{
"question": "If I am account/console banned on Nintendo Network, will I stay banned when using Pretendo?",
"answer": "Any account/console bans only exist server-side. This means any existing bans would not carry over to Pretendo. However Pretendo still reserves the right to issue a ban for our network if we see fit"
},
{
"question": "Will Pretendo support the Wii/Switch?",
"answer": "The Wii already has custom servers provided by <a href=\"https://wiimmfi.de/\" target=\"_blank\">Wiimmfi</a>. We currently have no plans on supporting the Switch, as not only is it a completely different platform with a different online network, but Switch online is a paid service"
},
{
"question": "Do I need Haxchi to run the patcher?",
"answer": "No. The only thing you need to run the patcher is a way to access the Homebrew Launcher, whether it's the browser exploit, Haxchi or Coldboot Haxchi"
}
]
},
credits: {
title: "The team",
text: "Our amazing team has spent countless hours helping out on making Pretendo better.",
people: [
{
"name": "Jonathan Barrow (RedDucks)",
"caption": "Project owner and lead developer",
"picture": "https://github.com/redduckss.png",
"github": "https://github.com/RedDuckss"
},
{
"name": "Jemma (CaramelKat)",
"caption": "Miiverse research and development",
"picture": "https://github.com/caramelkat.png",
"github": "https://github.com/CaramelKat"
},
{
"name": "superwhiskers",
"caption": "crunch library development",
"picture": "https://github.com/superwhiskers.png",
"github": "https://github.com/superwhiskers"
},
{
"name": "SuperMarioDaBom",
"caption": "Console and other system research",
"picture": "https://github.com/supermariodabom.png",
"github": "https://github.com/SuperMarioDaBom"
},
{
"name": "Rambo6Glaz",
"caption": "Network installer and console research",
"picture": "https://github.com/NexoDevelopment.png",
"github": "https://github.com/NexoDevelopment"
},
{
"name": "mrjvs",
"caption": "Web development and early eShop research",
"picture": "https://github.com/mrjvs.png",
"github": "https://github.com/mrjvs"
},
{
"name": "Benjamin Moss (kxpler442b)",
"caption": "Web development",
"picture": "https://github.com/kxpler442b.png",
"github": "https://github.com/kxpler442b"
},
{
"name": "Jip Fr",
"caption": "Web development",
"picture": "https://github.com/jipfr.png",
"github": "https://github.com/jipfr"
},
{
"name": "Kinnay",
"caption": "None of this would be possible without the research and help done by Kinnay on PRUDP and nex",
"picture": "https://cdn.discordapp.com/avatars/186572995848830987/b55c0d4e7bfd792edf0689f83a25d8ea.png?size=2048",
"github": "https://github.com/Kinnay"
}
]
}
}
const tmpLocale = getLocale("US", "en")
res.render("home", {
layout: "main",
locale: tmpLocale