Skip to content

Commit

Permalink
Merge pull request #1445 from incubateur-ademe/fix-en-lang-code
Browse files Browse the repository at this point in the history
fix: we use now 'en' for 'en-us'
  • Loading branch information
Clemog authored Jan 17, 2024
2 parents 2b6d647 + 79b8e8e commit bbc6bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/RulesProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ 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 bbc6bf1

Please sign in to comment.