Skip to content

Commit

Permalink
fix: translation
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv committed Dec 15, 2024
1 parent 51add82 commit 0c2a734
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-12-13T11:35:42.356Z\n"
"PO-Revision-Date: 2024-12-13T11:35:42.356Z\n"
"POT-Creation-Date: 2024-12-15T15:25:38.375Z\n"
"PO-Revision-Date: 2024-12-15T15:25:38.375Z\n"

msgid "Choose one or more dates..."
msgstr "Choose one or more dates..."
Expand Down Expand Up @@ -107,6 +107,12 @@ msgstr "Lat"
msgid "Long"
msgstr "Long"

msgid "lat"
msgstr "lat"

msgid "long"
msgstr "long"

msgid "Show less"
msgstr "Show less"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const PolygonCoordinatesPlain = ({ coordinates, classes }: Props) => {
{coordinates.slice(0, showMore ? coordinates.length : 1).map((coordinatePair, index) => (
// eslint-disable-next-line react/no-array-index-key
<div key={index}>
{`${i18n('lat')}: ${coordinatePair[1]}`}<br />
{`${i18n('long')}: ${coordinatePair[0]}`}
{`${i18n.t('lat')}: ${coordinatePair[1]}`}<br />
{`${i18n.t('long')}: ${coordinatePair[0]}`}
</div>
))}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getTrackerProgram(suggestedProgramId: string) {
log.error(
errorCreator('tracker program for id not found')({ suggestedProgramId, error }),
);
throw Error(i18n('Metadata error. see log for details'));
throw Error(i18n.t('Metadata error. see log for details'));
}
return trackerProgram;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getTrackerProgram(suggestedProgramId: string) {
log.error(
errorCreator('tracker program for id not found')({ suggestedProgramId, error }),
);
throw Error(i18n('Metadata error. see log for details'));
throw Error(i18n.t('Metadata error. see log for details'));
}
return trackerProgram;
}
Expand Down

0 comments on commit 0c2a734

Please sign in to comment.