template.ts 402 B

12345678910111213141516171819202122
  1. /* eslint-disable @typescript-eslint/ban-ts-comment */
  2. import type { Locale } from '@uppy/utils/lib/Translator'
  3. const en_US: Locale<0 | 1> = {
  4. strings: {},
  5. pluralize(n) {
  6. if (n === 1) {
  7. return 0
  8. }
  9. return 1
  10. },
  11. }
  12. en_US.strings = {}
  13. // @ts-ignore untyped
  14. if (typeof Uppy !== 'undefined') {
  15. // @ts-ignore untyped
  16. globalThis.Uppy.locales.en_US = en_US
  17. }
  18. export default en_US