File tree Expand file tree Collapse file tree 4 files changed +38
-1
lines changed
multiple-select-vanilla/src Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ <h2 class="bd-title">
30
30
< option value ="en-US "> English</ option >
31
31
< option value ="fr-FR "> French</ option >
32
32
< option value ="de-DE "> German</ option >
33
+ < option value ="id-ID "> Indonesian</ option >
33
34
< option value ="it-IT "> Italian</ option >
34
35
< option value ="es-ES "> Spanish</ option >
35
36
< option value ="vi-VN "> Vietnamese</ option >
@@ -62,7 +63,7 @@ <h2 class="bd-title">
62
63
63
64
< hr />
64
65
65
- < div class ="mb-3 row ">
66
+ < div class ="my-5 row ">
66
67
< label class ="col-sm-3 "> named Locale import (i.e. Spanish)</ label >
67
68
68
69
< div class ="col-sm-9 ">
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export * from './multiple-select-en-US.js';
5
5
export * from './multiple-select-es-ES.js' ;
6
6
export * from './multiple-select-fr-FR.js' ;
7
7
export * from './multiple-select-hu-HU.js' ;
8
+ export * from './multiple-select-id-ID.js' ;
8
9
export * from './multiple-select-it-IT.js' ;
9
10
export * from './multiple-select-ja-JP.js' ;
10
11
export * from './multiple-select-pt-BR.js' ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Multiple Select id-ID translation
3
+ * Author: AdjadTea<[email protected] >
4
+ */
5
+
6
+ import type { MultipleSelectInstance } from '../MultipleSelectInstance.js' ;
7
+ import type { MultipleSelectLocale , MultipleSelectLocales } from '../models/locale.interface.js' ;
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 Indonesian = {
15
+ formatSelectAll ( ) {
16
+ return '[Pilih Semua]' ;
17
+ } ,
18
+ formatAllSelected ( ) {
19
+ return 'Semua Dipilih' ;
20
+ } ,
21
+ formatCountSelected ( count : number , total : number ) {
22
+ return `${ count } dari ${ total } dipilih` ;
23
+ } ,
24
+ formatNoMatchesFound ( ) {
25
+ return 'Tidak ditemukan' ;
26
+ } ,
27
+ formatOkButton ( ) {
28
+ return 'Tutup' ;
29
+ } ,
30
+ } as MultipleSelectLocale ;
31
+
32
+ ( ms . locales as MultipleSelectLocales ) [ 'id-ID' ] = Indonesian ;
33
+
34
+ export default ms . locales ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type LocaleKey =
7
7
| 'es-ES'
8
8
| 'fr-FR'
9
9
| 'hu-HU'
10
+ | 'id-ID'
10
11
| 'it-IT'
11
12
| 'ja-JP'
12
13
| 'pt-BR'
You can’t perform that action at this time.
0 commit comments