Skip to content

Commit

Permalink
Update localization declaration in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bilde2910 committed Nov 5, 2019
1 parent 046d227 commit e43720c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend-php/include/inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// backend. It loads the configuration file and declares it as a constant.

const BACKEND_VERSION = "1.3";
const LANGUAGES = ["de", "en", "eu", "nb_NO", "nn"];
const LANGUAGES = ["de", "en", "eu", "fr", "nb_NO", "nl", "nn"];

// Create mode for create.php. Corresponds with the constants from the Android
// app in android/app/src/main/java/info/varden/hauk/HaukConst.java.
Expand Down
2 changes: 1 addition & 1 deletion frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const EARTH_DIAMETER_KM = 6371 * 2;
const HAV_MOD = EARTH_DIAMETER_KM * 1000;

// Find preferred language.
var locales = ['de', 'en', 'eu', 'nb_NO', 'nn'];
var locales = ['de', 'en', 'eu', 'fr', 'nb_NO', 'nl', 'nn'];
var prefLang = 'en';
if (navigator.languages) {
for (var i = navigator.languages.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit e43720c

Please sign in to comment.