From 6514198cf310b3c9a1c190dd92a8be6efd51a41d Mon Sep 17 00:00:00 2001 From: jubitjohn Date: Sat, 24 Jun 2023 00:08:40 +0530 Subject: [PATCH] English Transilation added --- .../photos/public/locales/de/translation.json | 9 ++++++++ .../photos/public/locales/en/translation.json | 9 ++++++++ .../components/Sidebar/AdvancedMapSetting.tsx | 4 ++-- .../src/components/Sidebar/DisableMap.tsx | 16 ++++---------- .../src/components/Sidebar/EnableMap.tsx | 22 +++++-------------- 5 files changed, 29 insertions(+), 31 deletions(-) diff --git a/apps/photos/public/locales/de/translation.json b/apps/photos/public/locales/de/translation.json index 3837bfb49..42f3300e1 100644 --- a/apps/photos/public/locales/de/translation.json +++ b/apps/photos/public/locales/de/translation.json @@ -232,6 +232,15 @@ "CAPTION_PLACEHOLDER": "", "LOCATION": "", "SHOW_ON_MAP": "", + "MAP":"", + "MAP_SETTINGS":"", + "ENABLE_MAPS":"", + "DISABLE_MAPS":"", + "ENABLE_MAP_DESCRIPTION_1":"", + "ENABLE_MAP_DESCRIPTION_2":"", + "ENABLE_MAP_DESCRIPTION_3":"", + "DISABLE_MAP_DESCRIPTION_1":"", + "DISABLE_MAP_DESCRIPTION_2":"", "DETAILS": "", "VIEW_EXIF": "", "NO_EXIF": "", diff --git a/apps/photos/public/locales/en/translation.json b/apps/photos/public/locales/en/translation.json index 714d5410f..1b5e0e709 100644 --- a/apps/photos/public/locales/en/translation.json +++ b/apps/photos/public/locales/en/translation.json @@ -232,6 +232,15 @@ "CAPTION_PLACEHOLDER": "Add a description", "LOCATION": "Location", "SHOW_ON_MAP": "View on OpenStreetMap", + "MAP":"Map", + "MAP_SETTINGS":"Map Settings", + "ENABLE_MAPS":"Enable Maps?", + "DISABLE_MAPS":"Disable Maps?", + "ENABLE_MAP_DESCRIPTION_1":"This will show your photos on a worldmap.", + "ENABLE_MAP_DESCRIPTION_2":"The map is hosted by OpenStreetMap, and the exact locations of your photos are never shared.", + "ENABLE_MAP_DESCRIPTION_3":"You can disable this feature anytime from Settings.", + "DISABLE_MAP_DESCRIPTION_1":"This will disable the display of your photos on a world map.", + "DISABLE_MAP_DESCRIPTION_2":"You can enable this feature anytime from Settings.", "DETAILS": "Details", "VIEW_EXIF": "View all EXIF data", "NO_EXIF": "No EXIF data", diff --git a/apps/photos/src/components/Sidebar/AdvancedMapSetting.tsx b/apps/photos/src/components/Sidebar/AdvancedMapSetting.tsx index 859b28f24..8b1b934a8 100644 --- a/apps/photos/src/components/Sidebar/AdvancedMapSetting.tsx +++ b/apps/photos/src/components/Sidebar/AdvancedMapSetting.tsx @@ -43,7 +43,7 @@ export default function AdvancedMapSettings({ open, onClose, onRootClose }) { @@ -55,7 +55,7 @@ export default function AdvancedMapSettings({ open, onClose, onRootClose }) { onClick={openMapSettings} variant="toggle" checked={mapEnabledToggle} - label={t('Map Settings')} + label={t('MAP_SETTINGS')} /> diff --git a/apps/photos/src/components/Sidebar/DisableMap.tsx b/apps/photos/src/components/Sidebar/DisableMap.tsx index f53dc7c70..dd2c63adb 100644 --- a/apps/photos/src/components/Sidebar/DisableMap.tsx +++ b/apps/photos/src/components/Sidebar/DisableMap.tsx @@ -8,25 +8,17 @@ export default function EnableMap({ onClose, disableMap, onRootClose }) { {' '} - +

- +
@@ -37,7 +29,7 @@ export default function EnableMap({ onClose, disableMap, onRootClose }) { {t('DISABLE')}
diff --git a/apps/photos/src/components/Sidebar/EnableMap.tsx b/apps/photos/src/components/Sidebar/EnableMap.tsx index 0cc9a953c..1e2585073 100644 --- a/apps/photos/src/components/Sidebar/EnableMap.tsx +++ b/apps/photos/src/components/Sidebar/EnableMap.tsx @@ -8,34 +8,22 @@ export default function EnableMap({ onClose, enableMap, onRootClose }) { {' '} - +

- +

- +
@@ -43,7 +31,7 @@ export default function EnableMap({ onClose, enableMap, onRootClose }) { {t('ENABLE')}