Skip to content

Commit

Permalink
fix(input-time-zone): translate region names (#9940)
Browse files Browse the repository at this point in the history
**Related Issue:** #9018

## Summary

Adds missing region translations.
  • Loading branch information
jcfranco authored Aug 2, 2024
1 parent c58a877 commit f975adb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,16 @@
"Pacific/Truk": "Truk",
"Pacific/Wake": "Wake",
"Pacific/Wallis": "Wallis",
"Africa": "Africa",
"America": "America",
"Antarctica": "Antarctica",
"Arctic": "Arctic",
"Asia": "Asia",
"Atlantic": "Atlantic",
"Australia": "Australia",
"Europe": "Europe",
"Indian": "Indian",
"Pacific": "Pacific",
"AD": "Andorra",
"AE": "United Arab Emirates",
"AF": "Afghanistan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,16 @@
"Pacific/Truk": "Truk",
"Pacific/Wake": "Wake",
"Pacific/Wallis": "Wallis",
"Africa": "Africa",
"America": "America",
"Antarctica": "Antarctica",
"Arctic": "Arctic",
"Asia": "Asia",
"Atlantic": "Atlantic",
"Australia": "Australia",
"Europe": "Europe",
"Indian": "Indian",
"Pacific": "Pacific",
"AD": "Andorra",
"AE": "United Arab Emirates",
"AF": "Afghanistan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ export class InputTimeZone

private renderRegionItems(): VNode[] {
return (this.timeZoneItems as TimeZoneItemGroup[]).flatMap(({ label, items }) => (
<calcite-combobox-item-group key={label} label={label}>
<calcite-combobox-item-group key={label} label={this.messages[label] || label}>
{items.map((item) => {
const selected = this.selectedTimeZoneItem === item;
const { label, value } = item;
Expand Down

0 comments on commit f975adb

Please sign in to comment.