From 8f63bfb29c6bbc28c474d4b636e56fc563e763d4 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 27 Mar 2023 17:46:38 +0200 Subject: [PATCH 1/4] Add Romanian translations Complete changes for #36 which is based on original pull request by @rumbu13: AitorDB#137 --- src/assets/localization/languages/ro.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/assets/localization/languages/ro.json diff --git a/src/assets/localization/languages/ro.json b/src/assets/localization/languages/ro.json new file mode 100644 index 0000000..73bb7e8 --- /dev/null +++ b/src/assets/localization/languages/ro.json @@ -0,0 +1,12 @@ +{ + "Azimuth": "Azimut", + "Dawn": "Zori", + "Dusk": "Amurg", + "Elevation": "Elevație", + "Noon": "Zenit", + "Sunrise": "Răsărit", + "Sunset": "Apus", + "errors": { + "SunIntegrationNotFound": "Integrare solară indisponibilă" + } +} From 090185d838475907704d18fe263d97081ab8160a Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 27 Mar 2023 17:48:26 +0200 Subject: [PATCH 2/4] Add Romanian --- src/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 9f18428..051e2ec 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -18,6 +18,7 @@ import nl from './assets/localization/languages/nl.json' import nn from './assets/localization/languages/nn.json' import pl from './assets/localization/languages/pl.json' import ptBR from './assets/localization/languages/pt-BR.json' +import ro from './assets/localization/languages/ro.json' import ru from './assets/localization/languages/ru.json' import sk from './assets/localization/languages/sk.json' import sl from './assets/localization/languages/sl.json' @@ -82,7 +83,7 @@ export class Constants { } static readonly LOCALIZATION_LANGUAGES: Record = { - bg, ca, cs, da, de, en, es, et, fi, fr, he, hu, is, it, lt, nb, nl, nn, pl, 'pt-BR': ptBR, ru, sk, sl, sv, tr, uk + bg, ca, cs, da, de, en, es, et, fi, fr, he, hu, is, it, lt, nb, nl, nn, pl, 'pt-BR': ptBR, ro, ru, sk, sl, sv, tr, uk } static readonly FALLBACK_LOCALIZATION = en From 84063e1fcd6973dfcb66725aff9177d40f2665c5 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 27 Mar 2023 17:49:21 +0200 Subject: [PATCH 3/4] Add Romanian to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3e326c8..6e01a06 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ Supported options for the `language` setting: - `nn` Norwegian (Nynorsk) - `pl` Polish - `pt-BR` Portuguese (Brazil) +- `ro` Romanian - `ru` Russian - `sk` Slovak - `sl` Slovenian From a6bdfdc7ac4a25fdd8348383fbea206b05bedb8f Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 27 Mar 2023 17:56:24 +0200 Subject: [PATCH 4/4] Fix indentation --- src/assets/localization/languages/ro.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/assets/localization/languages/ro.json b/src/assets/localization/languages/ro.json index 73bb7e8..a9b7b2c 100644 --- a/src/assets/localization/languages/ro.json +++ b/src/assets/localization/languages/ro.json @@ -1,12 +1,12 @@ { - "Azimuth": "Azimut", - "Dawn": "Zori", - "Dusk": "Amurg", - "Elevation": "Elevație", - "Noon": "Zenit", - "Sunrise": "Răsărit", - "Sunset": "Apus", - "errors": { - "SunIntegrationNotFound": "Integrare solară indisponibilă" - } + "Azimuth": "Azimut", + "Dawn": "Zori", + "Dusk": "Amurg", + "Elevation": "Elevație", + "Noon": "Zenit", + "Sunrise": "Răsărit", + "Sunset": "Apus", + "errors": { + "SunIntegrationNotFound": "Integrare solară indisponibilă" + } }