Skip to content

Commit 8bf28c2

Browse files
committed
chore: update readme of generate repo
Signed-off-by: zmrlft <[email protected]>
1 parent ffcccfb commit 8bf28c2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (a *App) GenerateRepo(req GenerateRepoRequest) (*GenerateRepoResponse, erro
104104
}
105105

106106
readmePath := filepath.Join(repoPath, "README.md")
107-
readmeContent := fmt.Sprintf("# %s\n\nGenerated with GitHub Contributor.\n", repoName)
107+
readmeContent := fmt.Sprintf("# %s\n\nGenerated with https://github.com/zmrlft/GreenWall.\n", repoName)
108108
if err := os.WriteFile(readmePath, []byte(readmeContent), 0o644); err != nil {
109109
return nil, fmt.Errorf("write README: %w", err)
110110
}

frontend/src/i18n.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ type TranslationDict = {
3535
};
3636
messages: {
3737
generateRepoMissing: string;
38+
generateRepoError: string;
39+
noContributions: string;
3840
};
3941
calendar: {
4042
totalContributions: string;
4143
tooltipNone: string;
4244
tooltipSome: string;
45+
tooltipFuture: string;
4346
legendLess: string;
4447
legendMore: string;
4548
};
@@ -97,6 +100,7 @@ const translations: Record<Language, TranslationDict> = {
97100
totalContributions: "{{count}} contributions in {{year}}",
98101
tooltipNone: "No contributions on {{date}} - Click to add!",
99102
tooltipSome: "{{count}} contributions on {{date}}",
103+
tooltipFuture: "Upcoming date {{date}} - editing disabled",
100104
legendLess: "Less",
101105
legendMore: "More",
102106
},
@@ -151,6 +155,7 @@ const translations: Record<Language, TranslationDict> = {
151155
totalContributions: "{{year}} 年共 {{count}} 次贡献",
152156
tooltipNone: "{{date}} 没有贡献 - 点击添加!",
153157
tooltipSome: "{{date}} 有 {{count}} 次贡献",
158+
tooltipFuture: "{{date}} 为未来日期,禁止编辑",
154159
legendLess: "较少",
155160
legendMore: "更多",
156161
},

0 commit comments

Comments
 (0)