Skip to content

Commit

Permalink
Fix schemes and update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
daneden committed Jun 26, 2024
1 parent e40cbdd commit c739084
Show file tree
Hide file tree
Showing 7 changed files with 347 additions and 60 deletions.
91 changes: 60 additions & 31 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
"sourceLanguage" : "en",
"strings" : {
"-" : {
"comment" : "Less daylight middle of sentence"
"comment" : "Less daylight middle of sentence",
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "-"
}
}
}
},
"—" : {
"localizations" : {
Expand Down Expand Up @@ -305,7 +313,15 @@
}
},
"+" : {
"comment" : "More daylight middle of sentence"
"comment" : "More daylight middle of sentence",
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "+"
}
}
}
},
"a specific time" : {
"localizations" : {
Expand Down Expand Up @@ -518,10 +534,24 @@
}
},
"Content #1" : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : ""
}
}
}
},
"Content #2" : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : ""
}
}
}
},
"Countdown" : {
"localizations" : {
Expand All @@ -544,10 +574,24 @@
}
},
"Current Location" : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Posizione attuale"
}
}
}
},
"Current Location %@" : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Posizione attuale %@"
}
}
}
},
"Customise notification content" : {
"localizations" : {
Expand Down Expand Up @@ -1097,28 +1141,6 @@
}
}
},
"My Location" : {
"extractionState" : "stale",
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "La mia posizione"
}
}
}
},
"My Location %@" : {
"extractionState" : "stale",
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "La mia posizione %@"
}
}
}
},
"Nautical Sunrise" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -1403,8 +1425,8 @@
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Rimuovere il guadagno/perdita della luce diurna"
"state" : "translated",
"value" : "Rimuovere la perdita di luce diurna"
}
}
}
Expand Down Expand Up @@ -1741,7 +1763,14 @@
}
},
"Test Label" : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : ""
}
}
}
},
"The equinox and solstice define the transitions between the seasons of the astronomical calendar and are a key part of the Earth’s orbit around the Sun." : {
"localizations" : {
Expand Down
290 changes: 265 additions & 25 deletions Solstice.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,33 @@
<key>Solstice watchOS Watch App.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>4</integer>
<integer>2</integer>
</dict>
<key>Solstice.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>Widget Extension copy.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
</dict>
<key>Widget Extension.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>1</integer>
</dict>
<key>iOS Widget Extension copy.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
</dict>
<key>watchOS Widget Extension.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
Expand Down
2 changes: 1 addition & 1 deletion Solstice/Helper Views/ContentToggle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct ContentToggle<Content: View>: View {
Text(verbatim: "Content #1")
.font(.headline)
} else {
Text("Content #2")
Text(verbatim: "Content #2")
.font(.largeTitle)
}
}
Expand Down
2 changes: 2 additions & 0 deletions Widget/Countdown Widget/CountdownWidgetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ extension CountdownWidgetView {

struct CountdownWidgetPreview: PreviewProvider {
static var previews: some View {
#if !os(watchOS)
CountdownWidgetView(entry: SolsticeWidgetTimelineEntry(date: .now))
.previewContext(WidgetPreviewContext(family: .systemSmall))
#endif

#if !os(macOS)
CountdownWidgetView(entry: SolsticeWidgetTimelineEntry(date: .now))
Expand Down
6 changes: 5 additions & 1 deletion Widget/Helpers/CompactLabelStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ struct CompactLabelStyle: LabelStyle {
}

#Preview {
Label("Test Label", systemImage: "sparkles")
Label {
Text(verbatim: "Test Label")
} icon: {
Image(systemName: "sparkles")
}
.labelStyle(CompactLabelStyle())
}
2 changes: 2 additions & 0 deletions Widget/Overview Widget/OverviewWidgetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,10 @@ struct OverviewWidgetView: View {

struct OverviewWidgetViewPreview: PreviewProvider {
static var previews: some View {
#if !os(watchOS)
OverviewWidgetView(entry: SolsticeWidgetTimelineEntry(date: .now))
.previewContext(WidgetPreviewContext(family: .systemSmall))
#endif

#if !os(macOS)
OverviewWidgetView(entry: SolsticeWidgetTimelineEntry(date: .now))
Expand Down

0 comments on commit c739084

Please sign in to comment.