multiple-select-vanilla
Version:
This lib allows you to select multiple elements with checkboxes
35 lines (29 loc) • 943 B
text/typescript
/**
* Multiple Select vi-VN translation
* Author: hoangbaovu <ineo.vn>
*/
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 Vietnamese = {
formatSelectAll() {
return '[Tất cả]';
},
formatAllSelected() {
return 'Chọn tất cả';
},
formatCountSelected(count: number, total: number) {
return `Đã chọn ${count} trong ${total}`;
},
formatNoMatchesFound() {
return 'Không tìm thấy kết quả.';
},
formatOkButton() {
return 'Đóng';
},
} as MultipleSelectLocale;
(ms.locales as MultipleSelectLocales)['vi-VN'] = Vietnamese;
export default ms.locales;