deduplicate i18n for zone names
This commit is contained in:
parent
85e5e1ba65
commit
36f1675577
|
@ -137,18 +137,18 @@ function LayerSidebar({
|
||||||
) : attribute.endsWith('zone') ? (
|
) : attribute.endsWith('zone') ? (
|
||||||
<>
|
<>
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Label size="small" style={{background: "blue",color:"white"}}>{t("general.urban")} (1.5 m)</Label>
|
<Label size="small" style={{background: "blue",color:"white"}}>{t("general.zone.urban")} (1.5 m)</Label>
|
||||||
<Label size="small" style={{background: "cyan", color:"black"}}>{t("general.rural")}(2 m)</Label>
|
<Label size="small" style={{background: "cyan", color:"black"}}>{t("general.zone.rural")}(2 m)</Label>
|
||||||
</List.Item></>
|
</List.Item></>
|
||||||
) :
|
) :
|
||||||
(
|
(
|
||||||
<>
|
<>
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<List.Header>{_.upperFirst(t("general.urban"))}</List.Header>
|
<List.Header>{_.upperFirst(t("general.zone.urban"))}</List.Header>
|
||||||
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][5].slice(2)} />
|
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][5].slice(2)} />
|
||||||
</List.Item>
|
</List.Item>
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<List.Header>{_.upperFirst(t("general.rural"))}</List.Header>
|
<List.Header>{_.upperFirst(t("general.zone.rural"))}</List.Header>
|
||||||
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][3].slice(2)} />
|
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][3].slice(2)} />
|
||||||
</List.Item>
|
</List.Item>
|
||||||
</>
|
</>
|
||||||
|
@ -172,11 +172,11 @@ function LayerSidebar({
|
||||||
{showEvents && (
|
{showEvents && (
|
||||||
<>
|
<>
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<List.Header>{_.upperFirst(t('general.urban'))}</List.Header>
|
<List.Header>{_.upperFirst(t('general.zone.urban'))}</List.Header>
|
||||||
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][5].slice(2)} />
|
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][5].slice(2)} />
|
||||||
</List.Item>
|
</List.Item>
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<List.Header>{_.upperFirst(t('general.rural'))}</List.Header>
|
<List.Header>{_.upperFirst(t('general.zone.rural'))}</List.Header>
|
||||||
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][3].slice(2)} />
|
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][3].slice(2)} />
|
||||||
</List.Item>
|
</List.Item>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -185,7 +185,7 @@ export default function RoadInfo({ clickLocation }) {
|
||||||
|
|
||||||
{info?.road.zone && (
|
{info?.road.zone && (
|
||||||
<Label size="small" color={ZONE_COLORS[info?.road.zone]}>
|
<Label size="small" color={ZONE_COLORS[info?.road.zone]}>
|
||||||
{t(`MapPage.roadInfo.zone.${info.road.zone}`)}
|
{t(`general.zone.${info.road.zone}`)}
|
||||||
</Label>
|
</Label>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
general:
|
general:
|
||||||
loading: Lädt
|
loading: Lädt
|
||||||
unnamedTrack: Unbenannte Fahrt
|
unnamedTrack: Unbenannte Fahrt
|
||||||
urban: innerorts
|
|
||||||
rural: außerorts
|
|
||||||
public: Öffentlich
|
public: Öffentlich
|
||||||
private: Privat
|
private: Privat
|
||||||
show: Anzeigen
|
show: Anzeigen
|
||||||
|
@ -15,6 +13,11 @@ general:
|
||||||
copied: Kopiert
|
copied: Kopiert
|
||||||
copyError: Kopieren fehlgeschlagen
|
copyError: Kopieren fehlgeschlagen
|
||||||
|
|
||||||
|
zone:
|
||||||
|
rural: außerorts
|
||||||
|
urban: innerorts
|
||||||
|
motorway: Autobahn
|
||||||
|
|
||||||
App:
|
App:
|
||||||
footer:
|
footer:
|
||||||
aboutTheProject: Über das Projekt
|
aboutTheProject: Über das Projekt
|
||||||
|
@ -159,12 +162,6 @@ MapPage:
|
||||||
unnamedWay: Unbenannter Weg
|
unnamedWay: Unbenannter Weg
|
||||||
oneway: Einbahnstraße
|
oneway: Einbahnstraße
|
||||||
direction: Richtung
|
direction: Richtung
|
||||||
|
|
||||||
zone:
|
|
||||||
rural: außerorts
|
|
||||||
urban: innerorts
|
|
||||||
motorway: Autobahn
|
|
||||||
|
|
||||||
distanceOvertaker: Links
|
distanceOvertaker: Links
|
||||||
distanceStationary: Rechts
|
distanceStationary: Rechts
|
||||||
speed: Geschwindigkeit
|
speed: Geschwindigkeit
|
||||||
|
|
|
@ -5,8 +5,6 @@ locales:
|
||||||
general:
|
general:
|
||||||
loading: Loading
|
loading: Loading
|
||||||
unnamedTrack: Unnamed track
|
unnamedTrack: Unnamed track
|
||||||
urban: urban
|
|
||||||
rural: rural
|
|
||||||
public: Public
|
public: Public
|
||||||
private: Private
|
private: Private
|
||||||
show: Show
|
show: Show
|
||||||
|
@ -19,6 +17,11 @@ general:
|
||||||
copied: Copied.
|
copied: Copied.
|
||||||
copyError: Failed to copy.
|
copyError: Failed to copy.
|
||||||
|
|
||||||
|
zone:
|
||||||
|
urban: urban
|
||||||
|
rural: rural
|
||||||
|
motorway: Motorway
|
||||||
|
|
||||||
App:
|
App:
|
||||||
footer:
|
footer:
|
||||||
aboutTheProject: About the project
|
aboutTheProject: About the project
|
||||||
|
@ -163,12 +166,6 @@ MapPage:
|
||||||
unnamedWay: Unnamed way
|
unnamedWay: Unnamed way
|
||||||
oneway: oneway
|
oneway: oneway
|
||||||
direction: Direction
|
direction: Direction
|
||||||
|
|
||||||
zone:
|
|
||||||
rural: Rural
|
|
||||||
urban: Urban
|
|
||||||
motorway: Motorway
|
|
||||||
|
|
||||||
distanceOvertaker: Left
|
distanceOvertaker: Left
|
||||||
distanceStationary: Right
|
distanceStationary: Right
|
||||||
speed: Speed
|
speed: Speed
|
||||||
|
|
Loading…
Reference in a new issue