Skip to content

Commit

Permalink
fix: we use now 'en' for 'en-us'
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemog authored Jan 16, 2024
1 parent 2b6d647 commit e408037
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/RulesProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ const EngineWrapper = ({ children }) => {
const url =
currLangAbrv &&
currentRegionCode &&
`https://nosgestesclimat-api.osc-fr1.scalingo.io/1.0.5/${
i18n.language === 'en' ? 'en-us' : currLangAbrv
}/${currentRegionCode}/${optimizedOption ? 'optim-rules' : 'rules'}`
`https://nosgestesclimat-api.osc-fr1.scalingo.io/1.0.5/${currLangAbrv}/${currentRegionCode}/${optimizedOption ? 'optim-rules' : 'rules'}`
console.log('fetching:', url)
fetch(url, { mode: 'cors' })
.then((response) => response.json())
Expand Down

0 comments on commit e408037

Please sign in to comment.