@sparklink-pro/apant
Version:
Apollo & Antd tools
20 lines • 1.09 kB
JavaScript
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
const showCount = (typeTranslator, type, count, suffix) => (_jsxs(_Fragment, { children: [_jsx("strong", { children: count }), " ", typeTranslator.name(type, count), " ", suffix] }));
export const TranslatorEn = (typeTranslator) => ({
admin: {
createLabel: (type) => `Create ${typeTranslator.article(type)} ${typeTranslator.name(type)}`,
searchPlaceholder: (type) => `Search ${typeTranslator.article(type)} ${typeTranslator.name(type)}`,
footer: {
total: (type, count) => showCount(typeTranslator, type, count, 'in total'),
selected: (type, count) => showCount(typeTranslator, type, count, 'selected'),
displayed: (type, count) => showCount(typeTranslator, type, count, 'displayed'),
},
},
widgets: {
select: {
placeholder: (type, multiple) => `Select ${typeTranslator.article(type, multiple)} ${typeTranslator.name(type)}`,
},
},
});
export default TranslatorEn;
//# sourceMappingURL=en.js.map