correct ordinal prefix for percentiles ending in 3 (#2188)

- closes #2187
This commit is contained in:
Vim 2023-03-07 12:51:42 -08:00 committed by GitHub
commit 5f0857f90c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ export const IndicatorValueSubText = ({type, value, isAboveThresh, threshold}:II
*
* The i18n variable named i18nOrdinalSuffix, in the IndicatorValue function defines the
* various prefixes. The Spanish version of the i18n variable works in a similar manner,
* however has a differnce. The superscripting is different for Spanish.
* however has a difference. The superscripting is different for Spanish.
* In Spanish, the suffix is a ".a" and ".o", where only the "a" and "o" are superscripted.
* This function handles this case.
*
@ -199,7 +199,7 @@ export const IndicatorValue = ({type, displayStat}:IIndicatorValue) => {
{indicatorValue, selectordinal,
one {#st}
two {#nd}
=3 {#rd}
few {#rd}
other {#th}
}
`,