Skip to content

Commit faf991a

Browse files
committed
commit chnages of woldMap Localizations
1 parent 543d6d2 commit faf991a

36 files changed

+74
-6
lines changed

src/controls/worldMap/MapNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const MapNavigation: React.FC<MapNavigationProps> = ({
7474
onClick={handleZoomIn}
7575
/>
7676
</Tooltip>
77-
<Tooltip content="Zoom out" relationship="label">
77+
<Tooltip content={strings.worldMapZoomOut} relationship="label">
7878
<Button
7979
appearance="subtle"
8080
icon={<ZoomOut24Regular />}
@@ -83,7 +83,7 @@ export const MapNavigation: React.FC<MapNavigationProps> = ({
8383
onClick={handleZoomOut}
8484
/>
8585
</Tooltip>
86-
<Tooltip content="Reset map" relationship="label">
86+
<Tooltip content={strings.worldMapResetMap} relationship="label">
8787
<Button
8888
appearance="subtle"
8989
icon={<ArrowReset24Regular />}

src/controls/worldMap/Marker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { IMarkerProps } from './IMarkerProps';
66
import { Marker as MapMarker } from 'react-map-gl/maplibre';
77
import TooltipContent from './TooltipContent';
88
import { css } from '@emotion/css';
9+
import strings from 'ControlStrings';
910

1011
const useStyles = (): { flag: string; tooltipContent: string } => {
1112
return {
@@ -56,7 +57,7 @@ export const Marker: React.FC<IMarkerProps> = ({
5657
>
5758
<img
5859
src={data.imageUrl}
59-
alt={`${data.name} flag`}
60+
alt={`${data.name} ${strings.worldMapFlag}`}
6061
onMouseEnter={(e) => (e.currentTarget.style.transform = 'scale(1.1)')}
6162
onMouseLeave={(e) => (e.currentTarget.style.transform = '')}
6263
style={{ cursor: 'pointer' }}

src/controls/worldMap/TooltipContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const TooltipContent: React.FC<CountryTooltipContentProps> = ({
5757
<div className={rowStyles}>
5858
<img
5959
src={data.imageUrl}
60-
alt={`${data.name} flag`}
60+
alt={`${data.name} ${strings.worldMapFlag}`}
6161
className={imageStyles}
6262
/>
6363
<Text className={titleStyles}>{data.name}</Text>

src/controls/worldMap/WorldMapControl.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ export const MaplibreWorldMap: React.FC<IMaplibreWorldMapProps> = ({
260260
/>
261261
{searchTerm && (
262262
<div className={styles.searchResults}>
263-
{filteredData.length} {strings.worldMapLocationLabel}
264-
{filteredData.length !== 1 ? 's' : ''} {strings.worldMapFoundLabel}
263+
{filteredData.length} {filteredData.length === 1 ? strings.worldMapLocationLabel : strings.worldMapLocationPluralLabel} {strings.worldMapFoundLabel}
265264
</div>
266265
)}
267266
</div>

src/loc/bg-bg.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ define([], () => {
77
TermSetNavigationNoTerms: "No terms defined",
88
worldMapCoord: "Coord:",
99
worldMapE: "° E",
10+
worldMapFlag: "flag",
1011
worldMapFoundLabel: "found",
1112
worldMapLoadintText: "Loading map style…",
1213
worldMapLocationLabel: "___location",
1314
worldMapN: "° N",
15+
worldMapResetMap: "Reset map",
1416
worldMapSearchField: "name",
1517
worldMapSearchLocations: "Search locations...",
1618
worldMapTitle: "World Map",

src/loc/ca-es.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ define([], () => {
77
TermSetNavigationNoTerms: "No terms defined",
88
worldMapCoord: "Coord:",
99
worldMapE: "° E",
10+
worldMapFlag: "flag",
1011
worldMapFoundLabel: "found",
1112
worldMapLoadintText: "Loading map style…",
1213
worldMapLocationLabel: "___location",
1314
worldMapN: "° N",
15+
worldMapResetMap: "Reset map",
1416
worldMapSearchField: "name",
1517
worldMapSearchLocations: "Search locations...",
1618
worldMapTitle: "World Map",

src/loc/cs-cz.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,12 @@ define([], () => {
480480
ImagePickerDeleteLabel: "Odstranit",
481481
worldMapCoord: "Coord:",
482482
worldMapE: "° E",
483+
worldMapFlag: "flag",
483484
worldMapFoundLabel: "found",
484485
worldMapLoadintText: "Loading map style…",
485486
worldMapLocationLabel: "___location",
486487
worldMapN: "° N",
488+
worldMapResetMap: "Reset map",
487489
worldMapSearchField: "name",
488490
worldMapSearchLocations: "Search locations...",
489491
worldMapTitle: "World Map",

src/loc/da-dk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ define([], () => {
77
TermSetNavigationNoTerms: "No terms defined",
88
worldMapCoord: "Coord:",
99
worldMapE: "° E",
10+
worldMapFlag: "flag",
1011
worldMapFoundLabel: "found",
1112
worldMapLoadintText: "Loading map style…",
1213
worldMapLocationLabel: "___location",
1314
worldMapN: "° N",
15+
worldMapResetMap: "Reset map",
1416
worldMapSearchField: "name",
1517
worldMapSearchLocations: "Search locations...",
1618
worldMapTitle: "World Map",

src/loc/de-de.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ define([], () => {
77
TermSetNavigationNoTerms: "No terms defined",
88
worldMapCoord: "Coord:",
99
worldMapE: "° E",
10+
worldMapFlag: "flag",
1011
worldMapFoundLabel: "found",
1112
worldMapLoadintText: "Loading map style…",
1213
worldMapLocationLabel: "___location",
1314
worldMapN: "° N",
15+
worldMapResetMap: "Reset map",
1416
worldMapSearchField: "name",
1517
worldMapSearchLocations: "Search locations...",
1618
worldMapTitle: "World Map",

src/loc/el-gr.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ define([], () => {
77
TermSetNavigationNoTerms: "No terms defined",
88
worldMapCoord: "Coord:",
99
worldMapE: "° E",
10+
worldMapFlag: "flag",
1011
worldMapFoundLabel: "found",
1112
worldMapLoadintText: "Loading map style…",
1213
worldMapLocationLabel: "___location",
1314
worldMapN: "° N",
15+
worldMapResetMap: "Reset map",
1416
worldMapSearchField: "name",
1517
worldMapSearchLocations: "Search locations...",
1618
worldMapTitle: "World Map",

0 commit comments

Comments
 (0)