multiple-select-vanilla
Version:
This lib allows you to select multiple elements with checkboxes
35 lines (29 loc) • 950 B
text/typescript
/**
* Multiple Select ja-JP translation
* Author: Nozomi Anzai<nozomi.anzai@gmail.com>
*/
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 Japanese = {
formatSelectAll() {
return '[すべて選択]';
},
formatAllSelected() {
return 'すべて選択';
},
formatCountSelected(count: number, total: number) {
return `${total} 件中 ${count} 件選択`;
},
formatNoMatchesFound() {
return '見つかりません';
},
formatOkButton() {
return '閉める';
},
} as MultipleSelectLocale;
(ms.locales as MultipleSelectLocales)['ja-JP'] = Japanese;
export default ms.locales;