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 * 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, * 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. * In Spanish, the suffix is a ".a" and ".o", where only the "a" and "o" are superscripted.
* This function handles this case. * This function handles this case.
* *
@ -199,7 +199,7 @@ export const IndicatorValue = ({type, displayStat}:IIndicatorValue) => {
{indicatorValue, selectordinal, {indicatorValue, selectordinal,
one {#st} one {#st}
two {#nd} two {#nd}
=3 {#rd} few {#rd}
other {#th} other {#th}
} }
`, `,

View file

@ -1124,7 +1124,7 @@
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show Housing cost burden" "description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show Housing cost burden"
}, },
"explore.map.page.side.panel.indicator.percentile.value.ordinal.suffix": { "explore.map.page.side.panel.indicator.percentile.value.ordinal.suffix": {
"defaultMessage": "{indicatorValue, selectordinal, one {#st} two {#nd} =3 {#rd} other {#th} }", "defaultMessage": "{indicatorValue, selectordinal, one {#st} two {#nd} few {#rd} other {#th} }",
"description": "Navigate to the explore the tool page. Click on the map. The side panel will show categories. Open a category. This will define the indicator value's ordinal suffix. For example the st in 91st, the rd in 23rd, and the th in 26th, etc." "description": "Navigate to the explore the tool page. Click on the map. The side panel will show categories. Open a category. This will define the indicator value's ordinal suffix. For example the st in 91st, the rd in 23rd, and the th in 26th, etc."
}, },
"explore.map.page.side.panel.indicator.pm25": { "explore.map.page.side.panel.indicator.pm25": {