Commit 79a8c4e
committed
🎨 Cleaned up country names in Post analytics
ref https://linear.app/tryghost/issue/NY-1365/
- mirrored the cleanup from the Web analytics PR (#28708) in the Post analytics web tab: the Locations card and the country filter showed the official ISO names from i18n-iso-countries ("Russian Federation", "Taiwan, Province of China", …)
- switched the library lookup to {select: 'alias'} so the short/common form is returned when one exists
- added the same explicit overrides for entries where i18n-iso-countries has no alias or picks the wrong form: GB → United Kingdom, KR → South Korea, LA → Laos, MD → Moldova, SY → Syria
- dropped the now-redundant US/TW/TWN/CN entries from the posts app's STATS_LABEL_MAPPINGS1 parent d98794b commit 79a8c4e
3 files changed
Lines changed: 9 additions & 7 deletions
File tree
- apps/posts/src
- utils
- views/PostAnalytics
- Web/components
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments