diff options
| author | Brynn Crowley <littlehill723@gmail.com> | 2025-03-01 04:05:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-01 04:05:06 +0000 |
| commit | a0913741aff359252e5c61600b30d4ffa7d6ea3f (patch) | |
| tree | 0a22bb38255f56ead6d74951d8cb92cd2afba8ab /internal/server/server.go | |
| parent | 142978e7d3b36017eae38db081d2a5ff87cca745 (diff) | |
fix(i18n): lack of privacy policy message consistency (#8845)
Update the privacy policy acceptance message to use a placeholder-based approach that ensures consistent application branding across all language translations and add server-side validation to verify all translations maintain the required placeholders, preventing runtime issues with missing components.
Signed-off-by: Brynn Crowley <littlehill723@gmail.com>
Diffstat (limited to 'internal/server/server.go')
| -rw-r--r-- | internal/server/server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 564460155..acfef3b75 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -21,6 +21,10 @@ func CreateDefaultServer(config *schema.Configuration, providers middlewares.Pro return nil, nil, nil, false, fmt.Errorf("failed to load templated assets: %w", err) } + if err = ValidateTranslations(); err != nil { + return nil, nil, nil, false, fmt.Errorf("translation validation failed: %w", err) + } + server = &fasthttp.Server{ ErrorHandler: handleError("server"), Handler: handleRouter(config, providers), |
