UNPKG

multiple-select-vanilla

Version:

This lib allows you to select multiple elements with checkboxes

35 lines (29 loc) 919 B
/** * Multiple Select de-DE translation * Author: Bugi Goertz */ import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; const ms = typeof window !== 'undefined' && window.multipleSelect !== undefined ? window.multipleSelect : ({ locales: {} as MultipleSelectLocales } as Partial<MultipleSelectInstance>); export const German = { formatSelectAll() { return '[Alles auswählen]'; }, formatAllSelected() { return 'Alles ausgewählt'; }, formatCountSelected(count: number, total: number) { return `${count} von ${total} ausgewählt`; }, formatNoMatchesFound() { return 'Keine Ergebnisse'; }, formatOkButton() { return 'Schließen'; }, } as MultipleSelectLocale; (ms.locales as MultipleSelectLocales)['de-DE'] = German; export default ms.locales;