Skip to content

Commit 0e1d64c

Browse files
fix: fix missing localization entries
1 parent e05b122 commit 0e1d64c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3764,6 +3764,7 @@ require_action.creation.success = Create Global Require Action %s successfully.
37643764
require_action.deletion = Delete
37653765
require_action.deletion.description = Removing the Global Require Action is permanent and cannot be undone. Continue?
37663766
require_action.deletion.success = The Global Require Action has been removed.
3767+
require_action.deletion.failed = Failed to remove the Global Require Action.
37673768

37683769
workflow.disable = Disable Workflow
37693770
workflow.disable_success = Workflow '%s' disabled successfully.

routers/web/repo/setting/require_action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func getRequireActionCtx(ctx *context.Context) (*requireActionsCtx, error) {
3939

4040
// Listing all RequireAction
4141
func RequireAction(ctx *context.Context) {
42-
ctx.Data["ActionsTitle"] = ctx.Tr("actions.requires")
42+
ctx.Data["Title"] = ctx.Tr("actions.requires")
4343
ctx.Data["PageType"] = "require_action"
4444
ctx.Data["PageIsSharedSettingsRequireAction"] = true
4545

routers/web/shared/actions/require_action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func CreateRequireAction(ctx *context.Context, orgID int64, redirectURL string)
6262
v, err := actions_service.CreateRequireAction(ctx, orgID, form.RepoName, form.WorkflowName)
6363
if err != nil {
6464
log.Error("CreateRequireAction: %v", err)
65-
ctx.JSONError(ctx.Tr("actions.require_action.creation.failed"))
65+
ctx.JSONError(ctx.Tr("actions.require_action.creation.failed", v.WorkflowName))
6666
return
6767
}
6868
ctx.Flash.Success(ctx.Tr("actions.require_action.creation.success", v.WorkflowName))

0 commit comments

Comments
 (0)