#2834·authelia

sugestion: i18n for snackbar notificaitons

Author: mind-arCreated Jan 23, 2022Updated Sep 13, 2026
Labelstype/featurearea/i18narea/ui

Feature Request

Description

Hi, this issue is to discuss the functionality of i18n for api messages. i can imagine two methods to impement this

1 - Implement i18n on backend

this can be easily implemented adding i18n in a common place, for example in AutheliaCtx.Error

go
func (c *AutheliaCtx) Error(err error, message string) {
 	msg := i18n(message)
	c.SetJSONError(msg)

	c.Logger.Error(err)
}

2 - Implement i18n on frontend

with this method we can reuse current i18n implementation, putting i18n in client functions: PostWithOptionalResponse, Post and Get

Personally, I prefer option 2, as it allows you to centralize all i18n texts in one place

Let me know which option you prefer, and I can work on it

Use Case

N/A