Skip to content

Commit

Permalink
fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
lakchote committed Mar 1, 2024
1 parent 4af4334 commit 94c1824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/LocaleDigitUtils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import _ from 'lodash';
import type {ValueOf} from 'type-fest';
import type CONST from '@src/CONST';
import type {TranslationPaths} from '@src/languages/types';
import * as Localize from './Localize';
import * as NumberFormatUtils from './NumberFormatUtils';

Expand Down Expand Up @@ -71,7 +72,6 @@ function fromLocaleDigit(locale: Locale, localeDigit: string): string {
* Formats a number into its localized ordinal representation i.e 1st, 2nd etc
*/
function toLocaleOrdinal(locale: Locale, number: number): string {

// Defaults to "other" suffix or "th" in English
let suffixKey = 'workflowsPage.frequencies.ordinals.other';

Expand All @@ -89,7 +89,7 @@ function toLocaleOrdinal(locale: Locale, number: number): string {
suffixKey = 'workflowsPage.frequencies.ordinals.few';
}

const suffix = Localize.translate(locale, suffixKey);
const suffix = Localize.translate(locale, suffixKey as TranslationPaths);

return `${number}${suffix}`;
}
Expand Down

0 comments on commit 94c1824

Please sign in to comment.