Skip to content

Commit

Permalink
Use default month names (#1400)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashley Davies <[email protected]>
  • Loading branch information
ashdavies and ashdavies authored Dec 15, 2024
1 parent f391bc6 commit 11e1376
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 38 deletions.
13 changes: 0 additions & 13 deletions conferences-app/src/commonMain/composeResources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@
<string name="profile">Profile</string>
<string name="events">Events</string>

<string name="january">Jan</string>
<string name="february">Feb</string>
<string name="march">Mar</string>
<string name="april">Apr</string>
<string name="may">May</string>
<string name="june">Jun</string>
<string name="july">Jul</string>
<string name="august">Aug</string>
<string name="september">Sep</string>
<string name="october">Oct</string>
<string name="november">Nov</string>
<string name="december">Dec</string>

<string name="call_for_papers">Call for Papers (Until %1$s)</string>
<string name="online_only">Online Only</string>
</resources>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import coil3.compose.AsyncImage
import io.ashdavies.analytics.OnClick
import io.ashdavies.paging.LazyPagingItems
import io.ashdavies.party.events.Event
import io.ashdavies.party.events.monthName
import io.ashdavies.party.events.paging.errorMessage
import io.ashdavies.party.events.paging.isRefreshing
import io.ashdavies.placeholder.PlaceholderHighlight
Expand All @@ -53,6 +52,7 @@ import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDate
import kotlinx.datetime.TimeZone
import kotlinx.datetime.format
import kotlinx.datetime.format.MonthNames
import kotlinx.datetime.toLocalDateTime
import org.jetbrains.compose.resources.stringResource
import playground.conferences_app.generated.resources.Res
Expand Down Expand Up @@ -187,7 +187,7 @@ private fun EventDateLabel(
) {
Column {
Text(
text = dateStart.format(LocalDate.Format { monthName() }),
text = dateStart.format(LocalDate.Format { monthName(MonthNames.ENGLISH_ABBREVIATED) }),
modifier = Modifier.align(Alignment.CenterHorizontally),
style = MaterialTheme.typography.labelSmall,
)
Expand Down

0 comments on commit 11e1376

Please sign in to comment.