| 3 | export default (o, c, dayjs) => { // locale needed later |
| 4 | const proto = c.prototype |
| 5 | const getLocalePart = part => (part && (part.indexOf ? part : part.s)) |
| 6 | const getShort = (ins, target, full, num, localeOrder) => { |
| 7 | const locale = ins.name ? ins : ins.$locale() |
| 8 | const targetLocale = getLocalePart(locale[target]) |