Adding support for French

pull/91/head
Kevin Payravi 2023-03-05 23:52:28 -06:00
parent 58a6868b15
commit 5bfdcc422b
7 changed files with 7 additions and 3 deletions

View File

@ -74,7 +74,7 @@ function redirectToBreezeWiki(storage, eventInfo, url) {
// Load website data.
async function getData() {
const LANGS = ["DE", "EN", "ES", "IT", "PL"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

View File

@ -25,7 +25,7 @@ function addLocationObserver(callback) {
// Load website data
async function getData() {
const LANGS = ["DE", "EN", "ES", "IT", "PL"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

1
data/sitesFR.json Normal file
View File

@ -0,0 +1 @@
[]

View File

@ -29,6 +29,7 @@
"data/sitesDE.json",
"data/sitesEN.json",
"data/sitesES.json",
"data/sitesFR.json",
"data/sitesIT.json",
"data/sitesPL.json"
],

View File

@ -31,6 +31,7 @@
"data/sitesDE.json",
"data/sitesEN.json",
"data/sitesES.json",
"data/sitesFR.json",
"data/sitesIT.json",
"data/sitesPL.json"
],

View File

@ -184,6 +184,7 @@
<option value="DE">Deutch</option>
<option value="EN" selected>English</option>
<option value="ES">Español</option>
<option value="FR">Français</option>
<option value="IT">Italiano</option>
<option value="PL">Polski</option>
</select>

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "IT", "PL"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL"];
var sites = [];
// Create object prototypes for getting and setting attributes: