i18n

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailVerification = i18n.Message{
	ID:          "email_verification",
	Description: "Email verification message sent to users to verify their email address.",
	Other:       "Please verify your email address by clicking the link below: {{.VerificationLink}}",
}
View Source
var EmailVerificationSubject = i18n.Message{
	ID:          "email_verification_subject",
	Description: "Subject line for the email verification message.",
	Other:       "Please verify your email address",
}
View Source
var EventActionExecuteLabel = i18n.Message{
	ID:          "event_action_execute_label",
	Description: "Display label for execute event actions.",
	Other:       "execute",
}
View Source
var EventEntityPipelineRunLabel = i18n.Message{
	ID:          "event_entity_pipeline_run_label",
	Description: "Display label for pipeline run event sources.",
	Other:       "pipeline run",
}
View Source
var MemberInvitation = i18n.Message{
	ID:          "member_invitation",
	Description: "Organization member invitation message sent to invited users.",
	Other:       "{{.InviterName}} ({{.InviterEmail}}) invited you to join {{.OrganizationName}} as {{.Role}}. This invitation expires at {{.ExpiresAt}}. Accept the invitation here: {{.AcceptanceLink}}",
}
View Source
var MemberInvitationSubject = i18n.Message{
	ID:          "member_invitation_subject",
	Description: "Subject line for the organization member invitation message.",
	Other:       "You're invited to join {{.OrganizationName}}",
}
View Source
var NotificationDelivery = i18n.Message{
	ID:          "notification_delivery",
	Description: "Generic notification email sent to configured operator recipients.",
	Other:       "{{.OrganizationName}} has a {{.Severity}} {{.NotificationType}} notification. {{.Summary}} Occurrences: {{.OccurrenceCount}}. Source: {{.SourceEntityType}}/{{.SourceAction}}. Notification: {{.RecordSlug}}",
}
View Source
var NotificationDeliverySubject = i18n.Message{
	ID:          "notification_delivery_subject",
	Description: "Subject line for a generic notification email.",
	Other:       "[{{.Severity}}] {{.NotificationType}} in {{.OrganizationName}}",
}
View Source
var NotificationSeverityCriticalLabel = i18n.Message{
	ID:          "notification_severity_critical_label",
	Description: "Display label for critical notifications.",
	Other:       "critical",
}
View Source
var NotificationSeverityInfoLabel = i18n.Message{
	ID:          "notification_severity_info_label",
	Description: "Display label for informational notifications.",
	Other:       "info",
}
View Source
var NotificationSeverityWarningLabel = i18n.Message{
	ID:          "notification_severity_warning_label",
	Description: "Display label for warning notifications.",
	Other:       "warning",
}
View Source
var NotificationTypePipelineContractFailureLabel = i18n.Message{
	ID:          "notification_type_pipeline_contract_failure_label",
	Description: "Display label for pipeline contract failure notifications.",
	Other:       "pipeline contract failure",
}
View Source
var NotificationTypePipelineFreshnessSLABreachedLabel = i18n.Message{
	ID:          "notification_type_pipeline_freshness_sla_breached_label",
	Description: "Display label for pipeline freshness SLA breach notifications.",
	Other:       "pipeline freshness SLA breached",
}
View Source
var NotificationTypePipelineRetryExhaustedLabel = i18n.Message{
	ID:          "notification_type_pipeline_retry_exhausted_label",
	Description: "Display label for pipeline retry exhausted notifications.",
	Other:       "pipeline retries exhausted",
}
View Source
var NotificationTypePipelineRunFailedLabel = i18n.Message{
	ID:          "notification_type_pipeline_run_failed_label",
	Description: "Display label for pipeline run failed notifications.",
	Other:       "pipeline run failed",
}
View Source
var NotificationTypePipelineRunSucceededLabel = i18n.Message{ID: "notification_type_pipeline_run_succeeded_label", Other: "Pipeline run succeeded"}
View Source
var NotificationTypePipelineScheduledRunDelayedLabel = i18n.Message{
	ID:          "notification_type_pipeline_scheduled_run_delayed_label",
	Description: "Display label for delayed scheduled pipeline run notifications.",
	Other:       "scheduled pipeline run delayed",
}
View Source
var NotificationTypePipelineScheduledRunMissingLabel = i18n.Message{
	ID:          "notification_type_pipeline_scheduled_run_missing_label",
	Description: "Display label for missing scheduled pipeline run notifications.",
	Other:       "scheduled pipeline run missing",
}
View Source
var PasswordReset = i18n.Message{
	ID:          "password_reset",
	Description: "Password reset message sent to users to reset their password.",
	Other:       "Reset your password by clicking the link below: {{.ResetLink}}",
}
View Source
var PasswordResetSubject = i18n.Message{
	ID:          "password_reset_subject",
	Description: "Subject line for the password reset message.",
	Other:       "Reset your password",
}
View Source
var SessionMFA = i18n.Message{
	ID:          "session_mfa",
	Description: "Email MFA code sent to users during sign-in.",
	Other:       "Use this code to finish signing in: {{.Code}}",
}
View Source
var SessionMFASubject = i18n.Message{
	ID:          "session_mfa_subject",
	Description: "Subject line for the email MFA code message.",
	Other:       "Your sign-in code",
}

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

Bundle manages all loaded message bundles and provides localization from embedded files

func NewBundle

func NewBundle(defaultLanguage string) (*Bundle, error)

NewBundle creates a new i18n bundle with the given default language and loads all embedded translations

func (*Bundle) NewLocalizer

func (b *Bundle) NewLocalizer(locale string) Localizer

NewLocalizer creates a new localizer for the given language locale

type Localizer

type Localizer interface {
	Localize(messageID string, templateData map[string]any) string
	LocalizeWithPlural(messageID string, pluralCount any, templateData map[string]any) string
}

Localizer is the main interface for translating messages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL