Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit cf4bb13

Browse files
committed
Fix locale issue
1 parent e4ff4b1 commit cf4bb13

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v0.31.2
8+
- Email template: change locale handling
9+
10+
## v0.31.1
11+
- Bug fixes
12+
713
## v0.31.0
814
- [NEW] IDM Email Templates support
915

iam/email_templates_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type EmailTemplate struct {
3535
Format string `json:"format" validate:"required" enum:"HTML"`
3636

3737
// Locale is the locale for the email template. The locale is case insensitive
38-
Locale string `json:"locale" validate:"required"`
38+
Locale string `json:"locale,omitempty"`
3939

4040
// Subject is the email subject
4141
Subject string `json:"subject" validate:"required,min=1,max=256"`

0 commit comments

Comments
 (0)