uppy/packages/@uppy/locales/template.ts
2024-08-29 09:44:31 +02:00

22 lines
402 B
TypeScript

/* eslint-disable @typescript-eslint/ban-ts-comment */
import type { Locale } from '@uppy/utils/lib/Translator'
const en_US: Locale<0 | 1> = {
strings: {},
pluralize(n) {
if (n === 1) {
return 0
}
return 1
},
}
en_US.strings = {}
// @ts-ignore untyped
if (typeof Uppy !== 'undefined') {
// @ts-ignore untyped
globalThis.Uppy.locales.en_US = en_US
}
export default en_US