Skip to content

Commit

Permalink
Added Finnish translations. (#2211)
Browse files Browse the repository at this point in the history
* Added Finnish translations.

* add changelog entry

* prettier

---------

Co-authored-by: konnorrogers <[email protected]>
  • Loading branch information
J0ne and KonnorRogers authored Oct 10, 2024
1 parent 4e09bac commit 8806672
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
39 changes: 39 additions & 0 deletions src/translations/fi.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 8806672

Please sign in to comment.