Added Finnish translations. (#2211)

* Added Finnish translations.

* add changelog entry

* prettier

---------

Co-authored-by: konnorrogers <konnor5456@gmail.com>
pull/2210/head
Jouni Männistö 2024-10-10 20:14:03 +03:00 zatwierdzone przez GitHub
rodzic 4e09bacae9
commit 8806672459
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 40 dodań i 0 usunięć

Wyświetl plik

@ -14,6 +14,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
## Next
- Added Finnish translations [#2211]
- Fixed a bug in `<sl-textarea>` causing scroll jumping when using `resize="auto"` [#2182]
- Fixed a bug in `<sl-relative-time>` where the title attribute would show with redundant info [#2184]
- Fixed a bug in `<sl-select>` that caused multi-selects without placeholders to have the wrong padding [#2194]

Wyświetl plik

@ -0,0 +1,39 @@
import { registerTranslation } from '@shoelace-style/localize';
import type { Translation } from '../utilities/localize.js';
const translation: Translation = {
$code: 'fi',
$name: 'Suomi',
$dir: 'ltr',
carousel: 'Karuselli',
clearEntry: 'Poista merkintä',
close: 'Sulje',
copied: 'Kopioitu',
copy: 'Kopioi',
currentValue: 'Nykyinen arvo',
error: 'Virhe',
goToSlide: (slide, count) => `Siirry diaan ${slide} / ${count}`,
hidePassword: 'Piilota salasana',
loading: 'Ladataan',
nextSlide: 'Seuraava dia',
numOptionsSelected: num => {
if (num === 0) return 'Ei valittuja vaihtoehtoja';
if (num === 1) return 'Yksi vaihtoehto valittu';
return `${num} vaihtoehtoa valittu`;
},
previousSlide: 'Edellinen dia',
progress: 'Edistyminen',
remove: 'Poista',
resize: 'Muuta kokoa',
scrollToEnd: 'Vieritä loppuun',
scrollToStart: 'Vieritä alkuun',
selectAColorFromTheScreen: 'Valitse väri näytöltä',
showPassword: 'Näytä salasana',
slideNum: slide => `Dia ${slide}`,
toggleColorFormat: 'Vaihda väriformaattia'
};
registerTranslation(translation);
export default translation;