Skip to content

Commit

Permalink
fix unexpected i18next link parse
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Nov 26, 2024
1 parent bef138a commit 33f346f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/fishing-map/features/i18n/utils.datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ export const getDatasetDescriptionTranslated = (dataset: {
id: string
description?: string
}): string => {
return t(`datasets:${removeDatasetVersion(dataset?.id)}.description`, dataset?.description || '')
return (
t(`datasets:${removeDatasetVersion(dataset?.id)}.description`, {
defaultValue: dataset?.description || '',
})
// can't understand why i18next introduces an space in the url
// TODO remove this ugly fix to remove it
.replace('https://globalfishingwatch. org/', 'https://globalfishingwatch.org/')
)
}

0 comments on commit 33f346f

Please sign in to comment.