Skip to content

Commit af7a065

Browse files
authored
add: standardizeCountryName (#998)
1 parent 0bb2706 commit af7a065

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/hooks/useActivities.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@ const standardizeCountryName = (country: string): string => {
1212
}
1313
if (country.includes('印度尼西亚')) {
1414
return '印度尼西亚';
15+
}
16+
if (country.includes('韩国')) {
17+
return '韩国';
18+
}
19+
if (country.includes('斯里兰卡')) {
20+
return '斯里兰卡';
21+
}
22+
if (country.includes('所罗门群岛')) {
23+
return '所罗门群岛';
24+
}
25+
if (country.includes('拉脱维亚')) {
26+
return '拉脱维亚';
27+
}
28+
if (country.includes('爱沙尼亚')) {
29+
return '爱沙尼亚';
30+
}
31+
if (country.includes('奧地利')) {
32+
return '奥地利';
33+
}
34+
if (country.includes('澳大利亚')) {
35+
return '澳大利亚';
1536
} else {
1637
return country;
1738
}

0 commit comments

Comments
 (0)