Skip to content

Commit

Permalink
Merge pull request #8 from Orange-OpenSource/netlify
Browse files Browse the repository at this point in the history
Fix bug : configure JSON lang files URL for Netlify (same for all)
  • Loading branch information
damiengomez authored Sep 5, 2024
2 parents a8c819e + 1682e1b commit 71d225c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lang/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ Authors: See CONTRIBUTORS.txt file
Software description: Experience in a playful way the challenges faced by people with digital disabilities
*/

// 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 basePath = '/locales/';

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

0 comments on commit 71d225c

Please sign in to comment.