Skip to content

Commit e7a88a4

Browse files
authored
Merge pull request #570 from synonymdev/fix/support-copyright-year
fix: localize copyright year
2 parents 624e224 + cc85e5e commit e7a88a4

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

.agents/commands/pr.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ gh pr create --base $base --title "..." --body "..." [--draft]
197197
### 8b. Changelog Fragments
198198

199199
If the PR is user-facing, verify the branch adds exactly one changelog fragment under `changelog.d/next/` or `changelog.d/hotfix/`.
200-
Do not edit `CHANGELOG.md` in normal PRs and do not backfill PR numbers into fragments.
200+
Do not edit `CHANGELOG.md` in normal PRs.
201+
If the PR was created (not dry run), rename any new changelog fragment whose filename does not start with the actual PR number to `<PR_NUMBER>.<category>.md`, preserving the category (`added`, `changed`, `deprecated`, `removed`, `fixed`, or `security`).
202+
If any fragment was renamed, create a follow-up commit with message `chore: rename changelog fragment` and push it.
201203

202204
### 9. Output Summary
203205

Bitkit/Resources/Localization/en.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@
739739
"settings__support__report" = "Report Issue";
740740
"settings__support__help" = "Help Center";
741741
"settings__support__status" = "App Status";
742+
"settings__support__copyright" = "Bitkit was crafted by Synonym Software, S.A. DE C.V. ©{year}. All rights reserved.";
742743
"settings__support__report_text" = "Please describe the issue you are experiencing or ask a general question.";
743744
"settings__support__label_address" = "Email address";
744745
"settings__support__label_message" = "Issue or question";

Bitkit/Views/Settings/SupportScreen.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ struct SupportScreen: View {
6060
)
6161
}
6262

63+
private var copyrightText: String {
64+
let year = Calendar(identifier: .gregorian).component(.year, from: Date())
65+
return t("settings__support__copyright", variables: ["year": "\(year)"])
66+
}
67+
6368
var body: some View {
6469
InsetHeaderScrollView(
6570
header: {
@@ -132,7 +137,7 @@ struct SupportScreen: View {
132137
Social()
133138
.padding(.bottom, 16)
134139

135-
BodyMText("Bitkit was crafted by Synonym Software, S.A. DE C.V. ©2025. All rights reserved.")
140+
BodyMText(copyrightText)
136141
.padding(.bottom, 16)
137142

138143
HStack(alignment: .center, spacing: 10) {

changelog.d/next/570.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The Support page now shows the current copyright year automatically.

0 commit comments

Comments
 (0)