Skip to content

Commit

Permalink
manage specific lang files URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaum31 committed Aug 20, 2024
1 parent 19cea34 commit 082fdf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lang/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ Authors: See CONTRIBUTORS.txt file
Software description: Experience in a playful way the challenges faced by people with digital disabilities
*/

const basePath = '/locales/';
// Détecter l'environnement
const isLocal = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
const isOrangeSite = window.location.hostname.indexOf('tota11ylost.orange') > -1;
const basePath = (isLocal || isOrangeSite) ? '/locales/' : '/Tota11ylost/locales/';

const langManager = function () {
let tabFn = [];
Expand Down

0 comments on commit 082fdf4

Please sign in to comment.