diff --git a/apps/web/src/locales/de.ts b/apps/web/src/locales/de.ts index c46795ad..8d1381c8 100644 --- a/apps/web/src/locales/de.ts +++ b/apps/web/src/locales/de.ts @@ -34,10 +34,8 @@ export default { "settings.wind speed units": "Windgeschwindigkeitseinheit", "settings.language": "Sprache", - "settings.english": "Englisch", - "settings.german": "Deutsch", - "settings.indonesian": "Indonesisch", - "settings.chinese": "中文", + "settings.celsius": "Celsius", + "settings.fahrenheit": "Fahrenheit", // locationsettings page translations "locationsettings.add new location": "Füge einen Ort hinzu", diff --git a/apps/web/src/locales/en.ts b/apps/web/src/locales/en.ts index e93d9d14..b3b2e336 100644 --- a/apps/web/src/locales/en.ts +++ b/apps/web/src/locales/en.ts @@ -34,10 +34,8 @@ export default { "settings.wind speed units": "Wind speed units", "settings.language": "Language", - "settings.english": "English", - "settings.german": "German", - "settings.indonesian": "Indonesian", - "settings.chinese": "中文", + "settings.celsius": "Celsius", + "settings.fahrenheit": "Fahrenheit", // locationsettings page translations "locationsettings.add new location": "Add new location", diff --git a/apps/web/src/locales/id.ts b/apps/web/src/locales/id.ts index 9b6a36a8..0937ec35 100644 --- a/apps/web/src/locales/id.ts +++ b/apps/web/src/locales/id.ts @@ -34,10 +34,8 @@ export default { "settings.wind speed units": "Satuan kecepatan angin", "settings.language": "Bahasa", - "settings.english": "Inggris", - "settings.german": "Jerman", - "settings.indonesian": "Indonesia", - "settings.chinese": "中文", + "settings.celsius": "Celsius", + "settings.fahrenheit": "Fahrenheit", // locationsettings page translations "locationsettings.add new location": "Tambah lokasi baru", diff --git a/apps/web/src/locales/zh-CN.ts b/apps/web/src/locales/zh-CN.ts index c63572cb..63474a82 100644 --- a/apps/web/src/locales/zh-CN.ts +++ b/apps/web/src/locales/zh-CN.ts @@ -34,10 +34,8 @@ export default { "settings.wind speed units": "风速单位", "settings.language": "语言", - "settings.english": "English", - "settings.german": "Deutsch", - "settings.indonesian": "Bahasa Indonesia", - "settings.chinese": "中文", + "settings.celsius": "摄氏度", + "settings.fahrenheit": "华氏度", // locationsettings page translations "locationsettings.add new location": "添加新位置", diff --git a/apps/web/src/pages/settings/index.tsx b/apps/web/src/pages/settings/index.tsx index 20dfcfc3..3fd418c2 100644 --- a/apps/web/src/pages/settings/index.tsx +++ b/apps/web/src/pages/settings/index.tsx @@ -52,7 +52,9 @@ const Settings = observer(() => { }`} onClick={() => handleTemperatureUnitClick("Celsius")} > -

Celsius (°C)

+

+ {translationSettings("celsius")} (°C) +

{temperatureUnit$.get() === "Celsius" && ( )} @@ -63,7 +65,9 @@ const Settings = observer(() => { }`} onClick={() => handleTemperatureUnitClick("Fahrenheit")} > -

Fahrenheit (°F)

+

+ {translationSettings("fahrenheit")} (°F) +

{temperatureUnit$.get() === "Fahrenheit" && ( )} @@ -155,9 +159,7 @@ const Settings = observer(() => { width={20} height={20} /> -

- {translationSettings("english")} -

+

English

{locale === "en" && ( )} @@ -174,9 +176,7 @@ const Settings = observer(() => { width={20} height={20} /> -

- {translationSettings("german")} -

+

Deutsch

{locale === "de" && ( )} @@ -193,9 +193,7 @@ const Settings = observer(() => { width={20} height={20} /> -

- {translationSettings("indonesian")} -

+

Bahasa Indonesia

{locale === "id" && ( )} @@ -212,9 +210,7 @@ const Settings = observer(() => { width={20} height={20} /> -

- {translationSettings("chinese")} -

+

中文

{locale === "zh-CN" && ( )}