mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
- This PR upgrades `biome` from `2.0.5` -> `2.1.2` and adds two new rules - [noUnusedImports](https://biomejs.dev/linter/rules/no-unused-private-class-members) ( we already had suppressions for this rule in code, but the rule itself was never enabled in the config ) - [noUnusedPrivateClassMembers](https://biomejs.dev/linter/rules/no-unused-private-class-members/) - remove stale suppressions. - remove stale code. --------- Co-authored-by: Mikael Finstad <finstaden@gmail.com>
21 lines
344 B
TypeScript
21 lines
344 B
TypeScript
import type { Locale } from '@uppy/utils'
|
|
|
|
const en_US: Locale<0 | 1> = {
|
|
strings: {},
|
|
pluralize(n) {
|
|
if (n === 1) {
|
|
return 0
|
|
}
|
|
return 1
|
|
},
|
|
}
|
|
|
|
en_US.strings = {}
|
|
|
|
// @ts-expect-error untyped
|
|
if (typeof Uppy !== 'undefined') {
|
|
// @ts-expect-error untyped
|
|
globalThis.Uppy.locales.en_US = en_US
|
|
}
|
|
|
|
export default en_US
|