Skip to content

Commit 1b16e3f

Browse files
CLIM-1145: Fix: Missing a dash between "30" and "year" (#616)
* fix(i18n): map 30-year range * fix(i18n): adjust this too? * fix: consistency in comments --------- Co-authored-by: Renoir Boulanger <renoir.boulanger@crim.ca>
1 parent dfce42d commit 1b16e3f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

apps/src/components/climate-data-chart.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const ClimateDataChart: React.FC<{
156156
// Get the label for the current threshold, or null if not found.
157157
const thresholdLabel = getLabelByValue(threshold);
158158

159-
// Tooltip: find closest timestamp for 30 years options
159+
// Tooltip: find closest timestamp for 30-years options
160160
const findClosetTimestamp = (timestamp: number, data: Record<string, number[]> | undefined) => {
161161
if (!data) return null;
162162
const sortedKeys = Object.keys(data)
@@ -175,7 +175,7 @@ const ClimateDataChart: React.FC<{
175175
[data, version, climateVariableId, chartDataOptions]
176176
);
177177

178-
// Tooltip formatter for 30 years averages and changes
178+
// Tooltip formatter for 30-years averages and changes
179179
const tooltip30yFormatter = (x: number, prefix: string, isDelta: boolean, currentActiveSeries: string[]) => {
180180
// Chart reference
181181
const chart = chartRef.current?.chart;
@@ -202,7 +202,7 @@ const ClimateDataChart: React.FC<{
202202
const startYear = new Date(timestampKey).getUTCFullYear();
203203
const endYear = startYear + 29;
204204

205-
// Add plot band on 30 years range
205+
// Add plot band on 30-years range
206206
chart.xAxis[0].addPlotBand({
207207
from: Date.UTC(startYear, 0, 1),
208208
to: Date.UTC(startYear + 29, 11, 31),
@@ -420,12 +420,12 @@ const ClimateDataChart: React.FC<{
420420
},
421421
{
422422
value: '30-year-averages',
423-
label: __('30 year averages'),
423+
label: __('30-year averages'),
424424
enabled: isThirtyYearAveragingEnabled(),
425425
},
426426
{
427427
value: '30-year-changes',
428-
label: __('30 year changes'),
428+
label: __('30-year changes'),
429429
enabled: isThirtyYearAveragingEnabled(),
430430
},
431431
], [isThirtyYearAveragingEnabled, __]);

apps/src/components/download/step-additional-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const StepAdditionalDetails = React.forwardRef<StepComponentRef>((_, ref) => {
164164
},
165165
{
166166
value: AveragingType.THIRTY_YEARS,
167-
label: __('30 year averages'),
167+
label: __('30-year averages'),
168168
},
169169
].filter((option) =>
170170
climateVariable?.getAveragingOptions()?.includes(option.value)
0 Bytes
Binary file not shown.

fw-child/languages/react-apps/fr_CA.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ msgstr "Choisir la date"
7171
msgid "All years"
7272
msgstr "Toutes les années"
7373

74-
msgid "30 years"
74+
msgid "30-years"
7575
msgstr "Moyennes sur 30 ans"
7676

7777
msgid "WMO Parameters"
@@ -237,7 +237,7 @@ msgstr "Désélectionnez tout pour obtenir les résultats des modèles individue
237237
msgid "Temporal frequency"
238238
msgstr "Fréquence temporelle"
239239

240-
msgid "30 years average"
240+
msgid "30-years average"
241241
msgstr "Moyennes sur 30 ans"
242242

243243
msgid "Station type"
@@ -456,10 +456,10 @@ msgstr "Changement par rapport à "
456456
msgid "Annual values"
457457
msgstr "Valeurs annuelles"
458458

459-
msgid "30 year averages"
459+
msgid "30-year averages"
460460
msgstr "Moyennes sur 30 ans"
461461

462-
msgid "30 year changes"
462+
msgid "30-year changes"
463463
msgstr "Changements sur 30 ans"
464464

465465
msgid "Export failed. Please try again."

0 commit comments

Comments
 (0)