Skip to content

Commit 00cfa74

Browse files
committed
fix: correct typos
1 parent 7c4e136 commit 00cfa74

File tree

93 files changed

+199
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+199
-192
lines changed

app/scripts/translatte/commands/applyMigrations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async function applyMigrations(
135135
console.info(`Found ${selectedMigrationFilesAttrs.length} migration files`);
136136

137137
if (selectedMigrationFilesAttrs.length < 1) {
138-
throw 'There should be atleast 1 migration file';
138+
throw 'There should be at least 1 migration file';
139139
}
140140

141141
const selectedMigrations = await readMigrations(

app/src/App/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ function Application() {
157157
] = useState<Record<string, LanguageNamespaceStatus>>({});
158158

159159
const setAndStoreCurrentLanguage = useCallback(
160-
(newLanugage: Language) => {
161-
setCurrentLanguage(newLanugage);
162-
setToStorage(KEY_LANGUAGE_STORAGE, newLanugage);
160+
(newLanguage: Language) => {
161+
setCurrentLanguage(newLanguage);
162+
setToStorage(KEY_LANGUAGE_STORAGE, newLanguage);
163163
},
164164
[],
165165
);

app/src/components/Navbar/LanguageDropdown/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const languageList = mapToList(
3232
(value, key) => ({ key: key as Language, value }),
3333
);
3434

35-
function LangaugeDropdown() {
35+
function LanguageDropdown() {
3636
const {
3737
currentLanguage,
3838
setCurrentLanguage,
@@ -90,4 +90,4 @@ function LangaugeDropdown() {
9090
);
9191
}
9292

93-
export default LangaugeDropdown;
93+
export default LanguageDropdown;

app/src/components/Navbar/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import useAuth from '#hooks/domain/useAuth';
2121

2222
import AuthenticatedUserDropdown from './AuthenticatedUserDropdown';
2323
import CountryDropdown from './CountryDropdown';
24-
import LangaugeDropdown from './LanguageDropdown';
24+
import LanguageDropdown from './LanguageDropdown';
2525

2626
import i18n from './i18n.json';
2727
import styles from './styles.module.css';
@@ -71,7 +71,7 @@ function Navbar(props: Props) {
7171
className={styles.actions}
7272
variant="tertiary"
7373
>
74-
<LangaugeDropdown />
74+
<LanguageDropdown />
7575
{!isAuthenticated && (
7676
<>
7777
<NavigationTab

app/src/components/domain/ActiveOperationMap/i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"operationPopoverEmpty": "No Current Operations",
1616
"operationType": "Type of Appeal",
1717
"operationFilterTypePlaceholder": "All Appeal Types",
18-
"operationDisastertype": "Disaster Type",
18+
"operationDisasterType": "Disaster Type",
1919
"operationFilterDisastersPlaceholder": "All Disaster Types",
2020
"mapStartDateAfter": "Start After",
2121
"mapStartDateBefore": "Start Before",

app/src/components/domain/ActiveOperationMap/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function ActiveOperationMap(props: Props) {
349349
[setClickedPoint],
350350
);
351351

352-
const handleClearFiltersButtonclick = useCallback(() => {
352+
const handleClearFiltersButtonClick = useCallback(() => {
353353
setFilter({});
354354
}, [setFilter]);
355355

@@ -403,15 +403,15 @@ function ActiveOperationMap(props: Props) {
403403
/>
404404
<DisasterTypeSelectInput
405405
placeholder={strings.operationFilterDisastersPlaceholder}
406-
label={strings.operationDisastertype}
406+
label={strings.operationDisasterType}
407407
name="displacement"
408408
value={rawFilter.displacement}
409409
onChange={setFilterField}
410410
/>
411411
<div>
412412
<Button
413413
name={undefined}
414-
onClick={handleClearFiltersButtonclick}
414+
onClick={handleClearFiltersButtonClick}
415415
variant="secondary"
416416
disabled={!filtered}
417417
>

app/src/components/domain/AppealsTable/i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"appealsTableType": "Appeal Type",
88
"appealsTableCode": "Appeal Code",
99
"appealsTableOperation": "Active Operation",
10-
"appealsTableDisastertype": "Disaster Type",
10+
"appealsTableDisasterType": "Disaster Type",
1111
"appealsTableRequestedAmount": "Funding Requirements",
1212
"appealsTableFundedAmount": "Funding Coverage",
1313
"appealsTableCountry": "Country",

app/src/components/domain/AppealsTable/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function AppealsTable(props: Props) {
107107
const strings = useTranslation(i18n);
108108
const { api_appeal_type: appealTypeOptions } = useGlobalEnums();
109109

110-
const handleClearFiltersButtonclick = useCallback(() => {
110+
const handleClearFiltersButtonClick = useCallback(() => {
111111
setFilter({});
112112
}, [setFilter]);
113113

@@ -157,7 +157,7 @@ function AppealsTable(props: Props) {
157157
),
158158
createStringColumn<AppealListItem, string>(
159159
'dtype',
160-
strings.appealsTableDisastertype,
160+
strings.appealsTableDisasterType,
161161
(item) => item.dtype?.name,
162162
{ sortable: true },
163163
),
@@ -198,7 +198,7 @@ function AppealsTable(props: Props) {
198198
strings.appealsTableType,
199199
strings.appealsTableCode,
200200
strings.appealsTableOperation,
201-
strings.appealsTableDisastertype,
201+
strings.appealsTableDisasterType,
202202
strings.appealsTableRequestedAmount,
203203
strings.appealsTableFundedAmount,
204204
strings.appealsTableCountry,
@@ -294,15 +294,15 @@ function AppealsTable(props: Props) {
294294
/>
295295
<DisasterTypeSelectInput
296296
placeholder={strings.appealsTableFilterDisastersPlaceholder}
297-
label={strings.appealsTableDisastertype}
297+
label={strings.appealsTableDisasterType}
298298
name="displacement"
299299
value={rawFilter.displacement}
300300
onChange={setFilterField}
301301
/>
302302
<div className={styles.filterActions}>
303303
<Button
304304
name={undefined}
305-
onClick={handleClearFiltersButtonclick}
305+
onClick={handleClearFiltersButtonClick}
306306
variant="secondary"
307307
disabled={!filtered}
308308
>

app/src/components/domain/GlobalMap/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,22 @@ function GlobalMap(props: Props) {
7878
...baseMapProps
7979
} = props;
8080

81-
const [hoveredCountryIso3, setHoverdCountryIso3] = useState<string | undefined>();
81+
const [hoveredCountryIso3, setHoveredCountryIso3] = useState<string | undefined>();
8282

8383
const handleFeatureMouseEnter = (feature: MapboxGeoJSONFeature) => {
8484
const hoveredFeatureProperties = feature.properties as (
8585
AdminZeroFeatureProperties | undefined
8686
);
8787

88-
setHoverdCountryIso3(hoveredFeatureProperties?.iso3);
88+
setHoveredCountryIso3(hoveredFeatureProperties?.iso3);
8989

9090
if (onHover) {
9191
onHover(hoveredFeatureProperties);
9292
}
9393
};
9494

9595
const handleFeatureMouseLeave = () => {
96-
setHoverdCountryIso3(undefined);
96+
setHoveredCountryIso3(undefined);
9797

9898
if (onHover) {
9999
onHover(undefined);

app/src/components/domain/GoMultiFileInput/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import React, {
33
useRef,
44
} from 'react';
55
import { DeleteBinFillIcon } from '@ifrc-go/icons';
6-
import type {
6+
import {
77
Button,
8-
ButtonVariant,
8+
type ButtonVariant,
99
InputError,
1010
type NameType,
1111
RawFileInput,

app/src/components/domain/HighlightedOperations/OperationCard/i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"strings": {
44
"operationCardLastUpdated": "Last updated",
55
"operationCardTargetedPopulation": "Targeted Population",
6-
"operationCardDepoloyedUnits": "Deployed Emergency Response Units",
6+
"operationCardDeployedUnits": "Deployed Emergency Response Units",
77
"operationCardFunding": "Funding Requirements",
88
"operationCardIFRCSurgePersonnel": "IFRC Surge Personnel",
99
"operationCardNSReportingActivities": "NS Reporting Activities",

app/src/components/domain/MultiImageWithCaptionInput/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function MultiImageWithCaptionInput<const N extends string | number>(props: Prop
147147
<div className={styles.fileList}>
148148
{value?.map((fileValue, index) => {
149149
// NOTE: Not sure why this is here, need to
150-
// talk with @frozenhelium
150+
// TODO: talk with @frozenhelium
151151
if (isNotDefined(fileValue.id)) {
152152
return null;
153153
}

app/src/components/domain/OperationListItem/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type EventResponseItem = NonNullable<EventGet['results']>[number];
1919
export interface Props {
2020
className?: string;
2121
eventItem: EventResponseItem;
22-
updateSubscibedEvents: () => void;
22+
updateSubscribedEvents: () => void;
2323
isLastItem: boolean;
2424
}
2525

@@ -31,7 +31,7 @@ function OperationInfoCard(props: Props) {
3131
name,
3232
updated_at,
3333
},
34-
updateSubscibedEvents: updateSubscribedEvents,
34+
updateSubscribedEvents,
3535
isLastItem,
3636
} = props;
3737

app/src/components/domain/RiskImminentEventMap/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {
4545
exposureFillLayer,
4646
exposureFillOutlineLayer,
4747
geojsonSourceOptions,
48-
hazardKeyToIconmap,
48+
hazardKeyToIconMap,
4949
hazardPointIconLayout,
5050
hazardPointLayer,
5151
invisibleCircleLayer,
@@ -68,10 +68,10 @@ const mapImageOption = {
6868

6969
type HazardType = components<'read'>['schemas']['HazardTypeEnum'];
7070

71-
const hazardKeys = Object.keys(hazardKeyToIconmap) as HazardType[];
71+
const hazardKeys = Object.keys(hazardKeyToIconMap) as HazardType[];
7272

7373
const mapIcons = mapToList(
74-
hazardKeyToIconmap,
74+
hazardKeyToIconMap,
7575
(icon, key) => (icon ? ({ key, icon }) : undefined),
7676
).filter(isDefined);
7777

@@ -282,7 +282,7 @@ function RiskImminentEventMap<
282282
{hazardTypeSelector(event) === 'TC' && (
283283
<LayerOptions
284284
value={layerOptions}
285-
// NOTE: Currently the information is only visible in gdacas
285+
// NOTE: Currently the information is only visible in gdacs
286286
exposureAreaControlHidden={source !== 'gdacs'}
287287
onChange={setLayerOptions}
288288
/>
@@ -355,7 +355,7 @@ function RiskImminentEventMap<
355355
className={styles.mapContainer}
356356
/>
357357
{hazardKeys.map((key) => {
358-
const url = hazardKeyToIconmap[key];
358+
const url = hazardKeyToIconMap[key];
359359

360360
if (isNotDefined(url)) {
361361
return null;

app/src/components/domain/RiskImminentEventMap/mapStyles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535

3636
type HazardType = components<'read'>['schemas']['HazardTypeEnum'];
3737

38-
export const hazardKeyToIconmap: Record<HazardType, string | null> = {
38+
export const hazardKeyToIconMap: Record<HazardType, string | null> = {
3939
EQ: earthquakeIcon,
4040
FL: floodIcon,
4141
TC: cycloneIcon,
@@ -49,7 +49,7 @@ export const hazardKeyToIconmap: Record<HazardType, string | null> = {
4949
};
5050

5151
const mapIcons = mapToList(
52-
hazardKeyToIconmap,
52+
hazardKeyToIconMap,
5353
(icon, key) => (icon ? ({ key, icon }) : undefined),
5454
).filter(isDefined);
5555

app/src/components/domain/RiskImminentEvents/i18n.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"namespace": "riskImminentEvents",
33
"strings": {
44
"imminentEventsHeading": "Imminent Events",
5-
"imminentEventsDescription": "This map displays information about the modeled impact of specific forecasted or detected natural hazards (floods, storms, droughts, wildfires, earthquakes). By hovering over the icons, if available, you can see the forecasted/observed footprint of the hazard; when you click on it, the table of modeled impact estimates will appear, as well as an information about who produced the impact estimate.",
5+
"imminentEventsDescription": "This map displays information about the modelled impact of specific forecasted or detected natural hazards (floods, storms, droughts, wildfires, earthquakes). By hovering over the icons, if available, you can see the forecasted/observed footprint of the hazard; when you click on it, the table of modelled impact estimates will appear, as well as an information about who produced the impact estimate.",
66
"imminentEventsSourcePdcLabel": "PDC",
77
"imminentEventsSourceWfpAdamLabel": "WFP ADAM",
88
"imminentEventsSourceGdacsLabel": "GDACS",
@@ -11,7 +11,7 @@
1111
"pdcTooltipDescription": "These impacts are produced by the Pacific Disaster Center's All-hazards Impact Model (AIM) 3.0. Click {here} for more information about the model and its inputs.",
1212
"here": "here",
1313
"wfpAdamTitle": "Source: WFP ADAM",
14-
"wfpAdamDescription": "These data points are recieved from the WFP ADAM, which performs a 24/7 automated data harvesting, analysis and mapping of natural hazards events. Click {here} for more information.",
14+
"wfpAdamDescription": "These data points are received from the WFP ADAM, which performs a 24/7 automated data harvesting, analysis and mapping of natural hazards events. Click {here} for more information.",
1515
"gdacsTitle": "Source: GDACS",
1616
"gdacsDescription": "Click {here} for more information about the model and its inputs.",
1717
"meteoSwissTitle": "Source: MeteoSwiss",

app/src/utils/domain/risk.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function getDataWithTruthyHazardType<
6161

6262
return {
6363
...data,
64-
// FIXME: server should not pass emtpy string
64+
// FIXME: server should not pass empty string
6565
hazard_type: data.hazard_type as Exclude<HazardType, ''>,
6666
};
6767
}
@@ -176,7 +176,7 @@ export function getPrioritizedIpcData(data: IpcData) {
176176
// For IPC, we can have multiple estimations or observed value
177177
// for same year and month.
178178
// So we need to prioritize entries that is from latest
179-
// observation or predection
179+
// observation or prediction
180180
// So the priority order is
181181
// Observed > Estimated
182182
// Latest analysis date

app/src/views/AccountDetails/EditAccountInfo/i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"phoneNumberInputLabel": "Phone Number",
1313
"editProfileConfirmButtonLabel": "Confirm",
1414
"editProfileCancelButtonLabel": "Cancel",
15-
"editAccoutSuccessfulMessage": "Account edited successfully!",
15+
"editAccountSuccessfulMessage": "Account edited successfully!",
1616
"editAccountFailureMessage": "Sorry, failed to edit account!"
1717
}
1818
}

app/src/views/AccountDetails/EditAccountInfo/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function EditAccountInfo(props: Props) {
153153
body: (body: AccountRequestBody) => body,
154154
onSuccess: () => {
155155
alert.show(
156-
strings.editAccoutSuccessfulMessage,
156+
strings.editAccountSuccessfulMessage,
157157
{ variant: 'success' },
158158
);
159159
invalidate('user-me');

app/src/views/AccountDetails/i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"changePasswordButtonLabel": "Change Password",
1515
"editProfileButtonLabel": "Edit Profile",
1616
"externalConnectionsTitle": "External Connections",
17-
"externalConnectionsDescription": "You can connect and recieve the data to use it in the external platform or dashboard using the GO APIs. You'll need an access token to make the connection.",
17+
"externalConnectionsDescription": "You can connect and receive the data to use it in the external platform or dashboard using the GO APIs. You'll need an access token to make the connection.",
1818
"externalConnectionMontandonTitle": "Montandon - Global Crisis Data Bank",
1919
"externalConnectionMontandonDescription": "The Montandon is the world’s largest disaster database: a public good with applications beyond IFRC. It contains information about natural hazards (both forecasted and observed), their impacts (also modeled and observed) as well as what actions were taken when, where, by whom and to what effect.",
2020
"viewMoreDetailsLabel": "View more details",

0 commit comments

Comments
 (0)