-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eb0bff
commit 667ceca
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
export type LocaleKey = | ||
| 'cz-CS' | ||
| 'da-DK' | ||
| 'de-DE' | ||
| 'en-US' | ||
| 'es-ES' | ||
| 'fr-FR' | ||
|
1 change: 1 addition & 0 deletions
1
packages/multiple-select-vanilla/src/locales/all-locales-index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/multiple-select-vanilla/src/locales/multiple-select-de-DE.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Multiple Select de-DE translation | ||
* Author: Bugi Goertz | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../interfaces'; | ||
|
||
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; |