From 4e1cf11461354ececc37edd5cd12be9f9a9b372e Mon Sep 17 00:00:00 2001 From: Buni48 <37407974+Buni48@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:37:22 +0300 Subject: [PATCH] Added turkish, british and austrian translations (#989) * turkish translation * austrian translation * british translations * updated changelog * Update src/translations/en-gb.ts Co-authored-by: Cory LaViska --- docs/resources/changelog.md | 1 + src/translations/de-at.ts | 27 +++++++++++++++++++++++++++ src/translations/en-gb.ts | 27 +++++++++++++++++++++++++++ src/translations/tr.ts | 27 +++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 src/translations/de-at.ts create mode 100644 src/translations/en-gb.ts create mode 100644 src/translations/tr.ts diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index c7af0648..79eafc67 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -12,6 +12,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Added `button--checked` to `` and `control--checked` to `` to style just the checked state [#933](https://github.com/shoelace-style/shoelace/pull/933) - Added tests for `` and `` [#935](https://github.com/shoelace-style/shoelace/pull/935) +- Added translations for Turkish, English (United Kingdom) and German (Austria) [#989](https://github.com/shoelace-style/shoelace/pull/989) - Added `--indicator-transition-duration` custom property to `` [#986](https://github.com/shoelace-style/shoelace/issues/986) - Fixed a bug in `` that prevented the border radius to apply correctly to the header [#934](https://github.com/shoelace-style/shoelace/pull/934) - Fixed a bug in `` where the inner border disappeared on focus [#980](https://github.com/shoelace-style/shoelace/pull/980) diff --git a/src/translations/de-at.ts b/src/translations/de-at.ts new file mode 100644 index 00000000..5ba5daf2 --- /dev/null +++ b/src/translations/de-at.ts @@ -0,0 +1,27 @@ +import { registerTranslation } from '../utilities/localize'; +import type { Translation } from '../utilities/localize'; + +const translation: Translation = { + $code: 'de-AT', + $name: 'Deutsch (Österreich)', + $dir: 'ltr', + + clearEntry: 'Eingabe löschen', + close: 'Schließen', + copy: 'Kopieren', + currentValue: 'Aktueller Wert', + hidePassword: 'Passwort verbergen', + loading: 'Wird geladen', + progress: 'Fortschritt', + remove: 'Entfernen', + resize: 'Größe ändern', + scrollToEnd: 'Zum Ende scrollen', + scrollToStart: 'Zum Anfang scrollen', + selectAColorFromTheScreen: 'Wähle eine Farbe vom Bildschirm', + showPassword: 'Passwort anzeigen', + toggleColorFormat: 'Farbformat umschalten' +}; + +registerTranslation(translation); + +export default translation; diff --git a/src/translations/en-gb.ts b/src/translations/en-gb.ts new file mode 100644 index 00000000..a839e757 --- /dev/null +++ b/src/translations/en-gb.ts @@ -0,0 +1,27 @@ +import { registerTranslation } from '../utilities/localize'; +import type { Translation } from '../utilities/localize'; + +const translation: Translation = { + $code: 'en-GB', + $name: 'English (United Kingdom)', + $dir: 'ltr', + + clearEntry: 'Clear entry', + close: 'Close', + copy: 'Copy', + currentValue: 'Current value', + hidePassword: 'Hide password', + loading: 'Loading', + progress: 'Progress', + remove: 'Remove', + resize: 'Resize', + scrollToEnd: 'Scroll to end', + scrollToStart: 'Scroll to start', + selectAColorFromTheScreen: 'Select a colour from the screen', + showPassword: 'Show password', + toggleColorFormat: 'Toggle colour format' +}; + +registerTranslation(translation); + +export default translation; diff --git a/src/translations/tr.ts b/src/translations/tr.ts new file mode 100644 index 00000000..cb7d21d9 --- /dev/null +++ b/src/translations/tr.ts @@ -0,0 +1,27 @@ +import { registerTranslation } from '../utilities/localize'; +import type { Translation } from '../utilities/localize'; + +const translation: Translation = { + $code: 'tr', + $name: 'Türkçe', + $dir: 'ltr', + + clearEntry: 'Girişi sil', + close: 'Kapat', + copy: 'Kopya', + currentValue: 'Mevcut değer', + hidePassword: 'Şifreyi sakla', + loading: 'Yükleme', + progress: 'İlerleme', + remove: 'Kaldır', + resize: 'Yeniden boyutlandır', + scrollToEnd: 'Sona kay', + scrollToStart: 'Başa kay', + selectAColorFromTheScreen: 'Ekrandan bir renk seçin', + showPassword: 'Şifreyi göster', + toggleColorFormat: 'Renk biçimini değiştir' +}; + +registerTranslation(translation); + +export default translation;