Skip to content

Commit

Permalink
run yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Nov 27, 2023
1 parent 42f74b2 commit 7a84c8d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/@uppy/utils/src/Translator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ const defaultOnMissingKey = (key: string): void => {
export default class Translator {
protected locale: Locale

constructor(locales: Locale | Locale[], { onMissingKey = defaultOnMissingKey } = {}) {
constructor(
locales: Locale | Locale[],
{ onMissingKey = defaultOnMissingKey } = {},
) {
this.locale = {
strings: {},
pluralize(n: number): 0 | 1 {
Expand Down Expand Up @@ -170,7 +173,7 @@ export default class Translator {
}

if (typeof string !== 'string') {
throw new Error(`string was not a string`);
throw new Error(`string was not a string`)
}

return interpolate(string, options)
Expand Down

0 comments on commit 7a84c8d

Please sign in to comment.