kopia lustrzana https://github.com/shoelace-style/shoelace
Porównaj commity
3 Commity
c407a7f9f1
...
f6c6845986
Autor | SHA1 | Data |
---|---|---|
Joe Pea | f6c6845986 | |
Fiqri Syah Redha | eb42671ef3 | |
Joe Pea | d028cef2c2 |
|
@ -129,11 +129,11 @@ export default class SlRadioGroup extends ShoelaceElement implements ShoelaceFor
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleRadioClick(event: MouseEvent) {
|
private handleRadioClick(event: MouseEvent) {
|
||||||
const target = (event.target as HTMLElement).closest<SlRadio | SlRadioButton>('sl-radio, sl-radio-button')!;
|
const target = event.target.closest<SlRadio | SlRadioButton>('sl-radio, sl-radio-button')!;
|
||||||
const radios = this.getAllRadios();
|
const radios = this.getAllRadios();
|
||||||
const oldValue = this.value;
|
const oldValue = this.value;
|
||||||
|
|
||||||
if (target.disabled) {
|
if (!target || target.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
import { registerTranslation } from '@shoelace-style/localize';
|
||||||
|
import type { Translation } from '../utilities/localize.js';
|
||||||
|
|
||||||
|
const translation: Translation = {
|
||||||
|
$code: 'id',
|
||||||
|
$name: 'Bahasa Indonesia',
|
||||||
|
$dir: 'ltr',
|
||||||
|
|
||||||
|
carousel: 'Karousel',
|
||||||
|
clearEntry: 'Hapus entri',
|
||||||
|
close: 'Tutup',
|
||||||
|
copied: 'Disalin',
|
||||||
|
copy: 'Salin',
|
||||||
|
currentValue: 'Nilai saat ini',
|
||||||
|
error: 'Kesalahan',
|
||||||
|
goToSlide: (slide, count) => `Pergi ke slide ${slide} dari ${count}`,
|
||||||
|
hidePassword: 'Sembunyikan sandi',
|
||||||
|
loading: 'Memuat',
|
||||||
|
nextSlide: 'Slide berikutnya',
|
||||||
|
numOptionsSelected: num => {
|
||||||
|
if (num === 0) return 'Tidak ada opsi yang dipilih';
|
||||||
|
if (num === 1) return '1 opsi yang dipilih';
|
||||||
|
return `${num} opsi yang dipilih`;
|
||||||
|
},
|
||||||
|
previousSlide: 'Slide sebelumnya',
|
||||||
|
progress: 'Kemajuan',
|
||||||
|
remove: 'Hapus',
|
||||||
|
resize: 'Ubah ukuran',
|
||||||
|
scrollToEnd: 'Gulir ke akhir',
|
||||||
|
scrollToStart: 'Gulir ke awal',
|
||||||
|
selectAColorFromTheScreen: 'Pilih warna dari layar',
|
||||||
|
showPassword: 'Tampilkan sandi',
|
||||||
|
slideNum: slide => `Slide ${slide}`,
|
||||||
|
toggleColorFormat: 'Beralih format warna'
|
||||||
|
};
|
||||||
|
|
||||||
|
registerTranslation(translation);
|
||||||
|
|
||||||
|
export default translation;
|
Ładowanie…
Reference in New Issue