UNPKG

@sparklink-pro/apant

Version:

Apollo & Antd tools

20 lines 1.21 kB
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 TranslatorFr = (typeTranslator) => ({ admin: { createLabel: (type) => `Créer ${typeTranslator.article(type)} ${typeTranslator.name(type)}`, searchPlaceholder: (type) => `Rechercher ${typeTranslator.article(type)} ${typeTranslator.name(type)}`, footer: { total: (type, count) => showCount(typeTranslator, type, count, 'au total'), selected: (type, count) => showCount(typeTranslator, type, count, `sélectionné${typeTranslator.pastParticiple(type, count > 1)}`), displayed: (type, count) => showCount(typeTranslator, type, count, `affiché${typeTranslator.pastParticiple(type, count > 1)}`), }, }, widgets: { select: { placeholder: (type, multiple) => `Sélectionnez ${typeTranslator.article(type, multiple)} ${typeTranslator.name(type)}`, }, }, }); export default TranslatorFr; //# sourceMappingURL=fr.js.map