File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ const MODEL_PROVIDER_SETTINGS: Array<{
5656 } ,
5757] as const ;
5858
59+ const TIMESTAMP_FORMAT_LABELS = {
60+ locale : "System default" ,
61+ "12-hour" : "12-hour" ,
62+ "24-hour" : "24-hour" ,
63+ } as const ;
64+
5965function getCustomModelsForProvider (
6066 settings : ReturnType < typeof useAppSettings > [ "settings" ] ,
6167 provider : ProviderKind ,
@@ -274,12 +280,12 @@ function SettingsRouteView() {
274280 } }
275281 >
276282 < SelectTrigger className = "w-40" aria-label = "Timestamp format" >
277- < SelectValue / >
283+ < SelectValue > { TIMESTAMP_FORMAT_LABELS [ settings . timestampFormat ] } </ SelectValue >
278284 </ SelectTrigger >
279285 < SelectPopup align = "end" >
280- < SelectItem value = "locale" > System default </ SelectItem >
281- < SelectItem value = "12-hour" > 12-hour</ SelectItem >
282- < SelectItem value = "24-hour" > 24-hour</ SelectItem >
286+ < SelectItem value = "locale" > { TIMESTAMP_FORMAT_LABELS . locale } </ SelectItem >
287+ < SelectItem value = "12-hour" > { TIMESTAMP_FORMAT_LABELS [ " 12-hour" ] } </ SelectItem >
288+ < SelectItem value = "24-hour" > { TIMESTAMP_FORMAT_LABELS [ " 24-hour" ] } </ SelectItem >
283289 </ SelectPopup >
284290 </ Select >
285291 </ div >
You can’t perform that action at this time.
0 commit comments