-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from OpenUpSA/feature/update-available-languages
xh (isiXhosa), en (English), and af (Afrikaans) added, zu (isiZulu) d…
- Loading branch information
Showing
17 changed files
with
227 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
{ | ||
"metadata": { | ||
"title": "Green Connection's Gaslit! (Afrikaans)", | ||
"description": "by Green Connection and OpenUp (Afrikaans)" | ||
}, | ||
"home": { | ||
"get-started": "How does it work?", | ||
"credit": "A news game created by" | ||
}, | ||
"how-does-it-work": { | ||
"title": "Before you get started", | ||
"sub-title": "How does it work?", | ||
"get-started": "Get started", | ||
"intro": "This game features <strong>8 scenarios</strong> that will put you in the drivers seat behind some of South Africa’s most pivotal energy sector decisions from the past 20 years.", | ||
"your-role": { | ||
"heading": "What's your role?", | ||
"content": "In each of the 8 scenarios, you will be asked to act as the CEO of PetroSA for the period in question." | ||
}, | ||
"what-is-petro-sa": { | ||
"heading": "Who or what is PetroSA?", | ||
"content": "PetroSA is one of the key state owned companies in South Africa’s energy sector, and was formed in 2002 as a result of the merger of several older organisations which looked after oil and gas supplies. Its parent organisation is the Central Energy Fund (CEF), and it reports to the Department of Energy. PetroSA’s role today includes offshore prospecting for natural gas, importing diesel and managing gas to liquid (GTL) refineries." | ||
}, | ||
"scenario-steps": { | ||
"heading": "Scenario steps", | ||
"content": "Each scenario will guide you through 4 steps to get you up to speed, present you with a dilemma and a set of decisions, and then give you the information about what really happened!" | ||
}, | ||
"step-1": { | ||
"label": "Step 1", | ||
"heading": "The set-up", | ||
"content": "Read the briefing and check out the investigation board to understand the factors at play in each scenario." | ||
}, | ||
"step-2": { | ||
"label": "Step 2", | ||
"heading": "The dilemma", | ||
"content": "You will be presented with a dilemma from the past that will test your moral and ethical boundaries." | ||
}, | ||
"step-3": { | ||
"label": "Step 3", | ||
"heading": "The choices", | ||
"content": "Assess your options and make the choice that feels right to you!" | ||
}, | ||
"step-4": { | ||
"label": "Step 4", | ||
"heading": "The real story", | ||
"content": "See how your answer compares to the decision that was actually taken and get more information about what went down. You might be surprised!" | ||
}, | ||
"end-line": "Ready to get started? Good luck!" | ||
}, | ||
"debrief": { | ||
"title": "What now?", | ||
"sub-title": "The debrief", | ||
"intro": "So you’re done playing... what next?", | ||
"references": "References" | ||
}, | ||
"references": { | ||
"title": "Want to learn more?", | ||
"sub-title": "References", | ||
"back": "Back" | ||
}, | ||
"global": { | ||
"title": "Green Connection's", | ||
"title-name": "Gaslit! (af)", | ||
"sub-title": "The game of greed and gas at PetroSA", | ||
"scenarios": [ | ||
{ | ||
"format": "normal", | ||
"slug": "getting-started", | ||
"title": "Getting started!", | ||
"setup": "Congratulations! You have just been appointment as CEO of the newly formed SOE, PetroSA. One of your first tasks is to secure a supply of oil for the Strategic Fuel Fund (SFF - aka “the strategic reserve”).", | ||
"dilema": "You have found a potential source for this oil. A politically linked company has a deal via Glencore for getting oil out of sanctioned Iraq, but needs cash up front to do the job.", | ||
"options": [ | ||
{ | ||
"text": "Refuse the deal and insist on a transparent tender process in line with procurement regulations", | ||
"goto": "incorrect" | ||
}, | ||
{ | ||
"text": "Refuse the deal and report the issue to parliamentary oversight committees", | ||
"goto": "correct" | ||
}, | ||
{ | ||
"text": "Hand over the cash!", | ||
"goto": "incorrect" | ||
} | ||
], | ||
"answers": { | ||
"correct": { | ||
"title": "You handed over the cash, well done!", | ||
"description": "PetroSA seemingly handed over several early payments to Imvume Management, a company which was later accused by an independent inquiry of illicit dealing under the oil-for-food programme in Iraq - and it did so, apparently, with the government's blessing. At least R11m of the money paid from PetroSA was alleged to have ended up going back to the ANC to fund its 2004 election campaign. Here's the real kicker - most of the Iraqi oil never actually came to SA, and you ended up buying from Russia instead! Start as you mean to go on." | ||
}, | ||
"incorrect": { | ||
"title": "Are you sure you are cut out for this business?", | ||
"description": "PetroSA seemingly handed over several early payments to Imvume Management, a company which was later accused by an independent inquiry of illicit dealing under the oil-for-food programme in Iraq - and it did so, apparently, with the government's blessing. At least R11m of the money paid from PetroSA was alleged to have ended up going back to the ANC to fund its 2004 election campaign. Here's the real kicker - most of the Iraqi oil never actually came to SA, and you ended up buying from Russia instead! Start as you mean to go on." | ||
} | ||
} | ||
}, | ||
{ | ||
"format": "normal", | ||
"slug": "lorem-ipsum-doler", | ||
"title": "Lorem ipsum doler", | ||
"setup": "Lorem ipsum doler sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", | ||
"dilema": "Ipsum doler sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", | ||
"options": [ | ||
{ | ||
"text": "Lorem ipsum 1", | ||
"goto": "incorrect" | ||
}, | ||
{ | ||
"text": "Doler sit amet 2", | ||
"goto": "incorrect" | ||
}, | ||
{ | ||
"text": "Sit amet lorem 3", | ||
"goto": "correct" | ||
} | ||
], | ||
"answers": { | ||
"correct": { | ||
"title": "Lorem dipsum, well done!", | ||
"description": "Ipsum doler sit amet adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | ||
}, | ||
"incorrect": { | ||
"title": "Are you sure you are cut out for this business?", | ||
"description": "Ipsum doler sit amet adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Start as you mean to go on." | ||
} | ||
} | ||
}, | ||
{ | ||
"format": "no-correct-incorrect", | ||
"slug": "lorem-ipsum-doler-2", | ||
"title": "Lorem ipsum doler 2", | ||
"setup": "Lorem ipsum doler sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", | ||
"dilema": "Ipsum doler sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", | ||
"options": [ | ||
{ | ||
"text": "Lorem ipsum 1", | ||
"goto": "answer" | ||
}, | ||
{ | ||
"text": "Doler sit amet 2", | ||
"goto": "answer" | ||
}, | ||
{ | ||
"text": "Sit amet lorem 3", | ||
"goto": "answer" | ||
} | ||
], | ||
"answers": { | ||
"answer": { | ||
"title": "Lorem dipsum!", | ||
"description": "Ipsum doler sit amet adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import createMiddleware from "next-intl/middleware"; | ||
import { NextRequest } from "next/server"; | ||
import { locales } from "i18n"; | ||
|
||
export default createMiddleware({ | ||
// A list of all locales that are supported | ||
locales: locales, | ||
|
||
// Used when no locale matches | ||
defaultLocale: locales[0], | ||
}); | ||
export default async function middleware(request: NextRequest) { | ||
const handleI18nRouting = createMiddleware({ | ||
locales: locales, | ||
defaultLocale: locales[0], | ||
}); | ||
const response = handleI18nRouting(request); | ||
return response; | ||
} | ||
|
||
export const config = { | ||
matcher: ["/", "/(zu|en)/:path*"], | ||
matcher: ["/", "/(en|xh|af)/:path*"], | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.