File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed
multiple-select-vanilla/src Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ <h2 class="bd-title">
34
34
< option value ="vi-VN "> Vietnamese</ option >
35
35
< option value ="zh-CN "> 简体中文</ option >
36
36
< option value ="zh-TW "> 繁體中文</ option >
37
+ < option value ="de-DE "> German</ option >
37
38
</ select >
38
39
</ div >
39
40
</ div >
Original file line number Diff line number Diff line change 2
2
export type LocaleKey =
3
3
| 'cz-CS'
4
4
| 'da-DK'
5
+ | 'de-DE'
5
6
| 'en-US'
6
7
| 'es-ES'
7
8
| 'fr-FR'
Original file line number Diff line number Diff line change 1
1
export * from './multiple-select-cz-CS' ;
2
2
export * from './multiple-select-da-DK' ;
3
+ export * from './multiple-select-de-DE' ;
3
4
export * from './multiple-select-en-US' ;
4
5
export * from './multiple-select-es-ES' ;
5
6
export * from './multiple-select-fr-FR' ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Multiple Select de-DE translation
3
+ * Author: Bugi Goertz
4
+ */
5
+
6
+ import type { MultipleSelectInstance } from '../MultipleSelectInstance' ;
7
+ import type { MultipleSelectLocale , MultipleSelectLocales } from '../interfaces' ;
8
+
9
+ const ms =
10
+ typeof window !== 'undefined' && window . multipleSelect !== undefined
11
+ ? window . multipleSelect
12
+ : ( { locales : { } as MultipleSelectLocales } as Partial < MultipleSelectInstance > ) ;
13
+
14
+ export const German = {
15
+ formatSelectAll ( ) {
16
+ return '[Alles auswählen]' ;
17
+ } ,
18
+ formatAllSelected ( ) {
19
+ return 'Alles ausgewählt' ;
20
+ } ,
21
+ formatCountSelected ( count : number , total : number ) {
22
+ return `${ count } von ${ total } ausgewählt` ;
23
+ } ,
24
+ formatNoMatchesFound ( ) {
25
+ return 'Keine Ergebnisse' ;
26
+ } ,
27
+ formatOkButton ( ) {
28
+ return 'Schließen' ;
29
+ } ,
30
+ } as MultipleSelectLocale ;
31
+
32
+ ( ms . locales as MultipleSelectLocales ) [ 'de-DE' ] = German ;
33
+
34
+ export default ms . locales ;
You can’t perform that action at this time.
0 commit comments