Skip to content

Commit 099393a

Browse files
authored
Spelling: favorite -> favourite, personalized -> personalised (#6)
1 parent 4398a7e commit 099393a

6 files changed

Lines changed: 21 additions & 19 deletions

File tree

src/components/home/UpcomingList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ export default function UpcomingList({ data, limit = 4, favoritesOnly = false }:
7777
<Card.Content>
7878
{header}
7979
<Text variant="bodySmall" style={{ color: colors.onSurfaceVariant }}>
80-
{favoritesOnly ? "No upcoming favorites." : "No upcoming sessions or breaks."}
80+
{favoritesOnly
81+
? "No upcoming favourites."
82+
: "No upcoming sessions or breaks."}
8183
</Text>
8284
{helperNote}
8385
</Card.Content>

src/components/schedule/SessionListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function SessionListItem({
6060
favoriteColor={starColor}
6161
defaultColor={colors.onSurfaceVariant}
6262
accessibilityLabel={
63-
isFavorite ? "Remove from favorites" : "Add to favorites"
63+
isFavorite ? "Remove from favourites" : "Add to favourites"
6464
}
6565
style={{ marginRight: spacing.xs }}
6666
/>

src/data/onboarding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const onboardingSlides: Slide[] = [
1616
{
1717
key: "overview",
1818
title: "Everything you need, in one place",
19-
body: "Browse the schedule, explore speakers, and create your personalized agenda with favorites.",
19+
body: "Browse the schedule, explore speakers, and create your personalised agenda with favourites.",
2020
},
2121
{
2222
key: "plan",

src/hooks/useCalendarSync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ export function useCalendarSync() {
126126
const confirmAddAllSessions = useCallback(
127127
(sessions: Session[], year: number, opts?: BulkOptions) => {
128128
if (sessions.length === 0) {
129-
Alert.alert("No favorites to add");
129+
Alert.alert("No favourites to add");
130130
return;
131131
}
132132
const lead = opts?.leadMinutes ?? DEFAULT_NOTIFICATION_LEAD_MINUTES;
133133
Alert.alert(
134-
"Add all favorites?",
134+
"Add all favourites?",
135135
`We'll add all starred sessions to your calendar with a ${lead}-minute reminder.`,
136136
[
137137
{ text: "Cancel", style: "cancel" },

src/screens/SettingsScreen.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default function SettingsScreen() {
117117

118118
const handleExportFavorites = async () => {
119119
if (favorites.size === 0) {
120-
Alert.alert("No favorites to export");
120+
Alert.alert("No favourites to export");
121121
return;
122122
}
123123
const lines = Array.from(favorites).map((id) => {
@@ -131,18 +131,18 @@ export default function SettingsScreen() {
131131
try {
132132
await Share.share({ message });
133133
} catch (err) {
134-
console.warn("Failed to share favorites", err);
135-
Alert.alert("Could not export favorites");
134+
console.warn("Failed to share favourites", err);
135+
Alert.alert("Could not export favourites");
136136
}
137137
};
138138

139139
const handleClearFavorites = () => {
140140
if (favorites.size === 0) {
141-
Alert.alert("No favorites to clear");
141+
Alert.alert("No favourites to clear");
142142
return;
143143
}
144144
Alert.alert(
145-
"Clear favorites",
145+
"Clear favourites",
146146
"Remove all starred sessions?",
147147
[
148148
{ text: "Cancel", style: "cancel" },
@@ -206,16 +206,16 @@ export default function SettingsScreen() {
206206
/>
207207
</SettingsSection>
208208

209-
<SettingsSection title="Favorites">
209+
<SettingsSection title="Favourites">
210210
<Text variant="bodyMedium">
211211
Saved sessions (year {favoritesYear ?? conferenceYear}): {favorites.size}
212212
</Text>
213213
<View style={styles.row}>
214214
<Button mode="text" onPress={handleExportFavorites}>
215-
Export favorites
215+
Export favourites
216216
</Button>
217217
<Button mode="text" onPress={handleClearFavorites}>
218-
Clear favorites
218+
Clear favourites
219219
</Button>
220220
</View>
221221
</SettingsSection>
@@ -238,7 +238,7 @@ export default function SettingsScreen() {
238238
<Card.Content>
239239
<SettingsSwitchRow
240240
title="Upcoming session reminders"
241-
subtitle={`Receive a reminder ${notificationLeadMinutes} minutes before keynotes and any sessions you have favorited start.`}
241+
subtitle={`Receive a reminder ${notificationLeadMinutes} minutes before keynotes and any sessions you have favourited start.`}
242242
value={notificationsEnabled}
243243
disabled={Platform.OS === "web"}
244244
onValueChange={async (val) => {
@@ -307,7 +307,7 @@ export default function SettingsScreen() {
307307
<SettingsSection title="Haptics">
308308
<SettingsSwitchRow
309309
title="Haptic feedback"
310-
subtitle="Haptic feedback for actions like refreshing, toggles, onboarding steps, and favorites/calendar. Some haptics may still occur if system-level."
310+
subtitle="Haptic feedback for actions like refreshing, toggles, onboarding steps, and favourites/calendar. Some haptics may still occur if system-level."
311311
value={hapticsEnabled}
312312
disabled={Platform.OS === "web"}
313313
onValueChange={async (val) => {
@@ -349,7 +349,7 @@ export default function SettingsScreen() {
349349
<Text variant="bodyMedium">EuroPython Companion</Text>
350350
<Text variant="bodySmall" style={{ color: colors.onSurfaceVariant }}>
351351
Your companion app for EuroPython conferences. Plan your schedule, star
352-
favorite sessions, and stay updated with the latest information.
352+
favourite sessions, and stay updated with the latest information.
353353
</Text>
354354
</SettingsSection>
355355
</PaddedScrollView>

src/store/favorites.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function FavoritesProvider({
6262
try {
6363
await saveFavorites(next, year);
6464
} catch (err) {
65-
console.warn("Failed to save favorites", err);
65+
console.warn("Failed to save favourites", err);
6666
throw err;
6767
}
6868
},
@@ -84,7 +84,7 @@ export function FavoritesProvider({
8484
try {
8585
await persist(nextState);
8686
} catch (err) {
87-
console.warn("Failed to save favorites", err);
87+
console.warn("Failed to save favourites", err);
8888
if (prevSnapshot) {
8989
setFavorites(prevSnapshot);
9090
}
@@ -132,7 +132,7 @@ export function FavoritesProvider({
132132
try {
133133
await persist(new Set());
134134
} catch (err) {
135-
console.warn("Failed to clear favorites", err);
135+
console.warn("Failed to clear favourites", err);
136136
}
137137
},
138138
year,

0 commit comments

Comments
 (0)