mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 16:53:33 +00:00
22 lines
402 B
TypeScript
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
|