Skip to content

Commit

Permalink
Merge pull request #969 from ReuschelCGN/translation
Browse files Browse the repository at this point in the history
fix: add new i18n keys, data management page and Update de.json
  • Loading branch information
TurtIeSocks authored Mar 2, 2024
2 parents 31472de + fde1fe5 commit 2b5690a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
32 changes: 31 additions & 1 deletion packages/locales/lib/human/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,5 +704,35 @@
"gender_filters_all": "Geschlecht gilt für alle",
"and_caption": "miteinander verbunden",
"or_caption": "filtert unabhängig",
"filter_help": "Filter Hilfe"
"filter_help": "Filter Hilfe",
"kilometers": "Kilometer",
"miles": "Meilen",
"distance_unit": "Maßeinheit",
"data_management": "Einstellungsverwaltung",
"reset_or_manage_text": "Filter komplett zurücksetzen, oder die Einstellungsverwaltung anzeigen lassen, auf der einzelne Kategorien zurückgesetzt werden können.",
"reset_audio": "Töne zurücksetzen",
"reset_all": "Alles zurücksetzen",
"reset_icons": "Icons zurücksetzen",
"reset_position": "Position zurücksetzen",
"reset_ui": "UI zurücksetzen",
"reset_options": "Optionen zurücksetzen",
"reset_menus": "Menüs zurücksetzen",
"reset_settings": "Einstellungen zurücksetzen",
"reset_general": "Allgemein",
"reset_assets": "Styles",
"reset_filters": "Filter",
"reset_pokemon": "Pokémon zurücksetzen",
"reset_pokestops": "PokéStops zurücksetzen",
"reset_gyms": "Arenen zurücksetzen",
"reset_nests": "Nester zurücksetzen",
"reset_portals": "Portale zurücksetzen",
"reset_routes": "Routen zurücksetzen",
"reset_scan_areas": "Scangebiete zurücksetzen",
"reset_scan_cells": "Scanzellen zurücksetzen",
"reset_devices": "Geräte zurücksetzen",
"reset_weather": "Wetter zurücksetzen",
"reset_s2cells": "S2 Zellen zurücksetzen",
"reset_spawnpoints": "Spawnpoints zurücksetzen",
"reset_submission_cells": "Submission Zellen zurücksetzen",
"hisuian": "Hisui"
}
3 changes: 3 additions & 0 deletions packages/locales/lib/human/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@
"reset_options": "Reset Options",
"reset_menus": "Reset Menus",
"reset_settings": "Reset Settings",
"reset_general": "General",
"reset_assets": "Assets",
"reset_filters": "Filters",
"reset_pokemon": "Reset Pokémon",
"reset_pokestops": "Reset PokéStops",
"reset_gyms": "Reset Gyms",
Expand Down
4 changes: 2 additions & 2 deletions src/features/data/components/ResetFilters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function ResetFilters() {

return (
<ChildContainer>
<StyledSubHeader>Filters</StyledSubHeader>
<StyledSubHeader>{t('reset_filters')}</StyledSubHeader>
{Object.keys(filters)
.filter((perm) => perms[perm])
.map((/** @type {import('@rm/types').Categories} */ key) => (
Expand All @@ -38,7 +38,7 @@ export function ResetFilters() {
<StyledDivider />
<ButtonWithNotification
onClick={resetFilters}
label="Reset All"
label={t('reset_all')}
color="error.main"
category="filter"
all
Expand Down
4 changes: 2 additions & 2 deletions src/features/data/components/ResetGeneral.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function ResetGeneral() {

return (
<ChildContainer>
<StyledSubHeader>General</StyledSubHeader>
<StyledSubHeader>{t('reset_general')}</StyledSubHeader>
<ButtonWithNotification
onClick={resetSettings}
label={t('reset_settings')}
Expand Down Expand Up @@ -64,7 +64,7 @@ export function ResetGeneral() {
isHovering={isHovering}
/>
<StyledDivider />
<StyledSubHeader>Assets</StyledSubHeader>
<StyledSubHeader>{t('reset_assets')}</StyledSubHeader>
<ButtonWithNotification
onClick={resetIcons}
label={t('reset_icons')}
Expand Down

0 comments on commit 2b5690a

Please sign in to comment.