From 534bdfcb6d29b639b4e1707a10a9545ff6c5014a Mon Sep 17 00:00:00 2001 From: cblgh Date: Thu, 15 Apr 2021 20:31:16 +0200 Subject: [PATCH] improve api comment for ListLanguages --- web/i18n/helper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/i18n/helper.go b/web/i18n/helper.go index a6e0835..f2076cc 100644 --- a/web/i18n/helper.go +++ b/web/i18n/helper.go @@ -157,9 +157,9 @@ func listLanguages(bundle *i18n.Bundle) map[string]string { return langmap } -// ListLanguages returns a mapping between the room's translated languages. -// The keys are language tags (as strings) and the values are the name of the language tag, as translated in the original language. -// For example: en -> English, sv -> Svenska, de -> Deutsch +// ListLanguages returns a map of the room's translated languages. +// The map's keys are language tags (as strings) and the corresponding value is the translated language name. +// Example: en -> English, sv -> Svenska, de -> Deutsch func (h Helper) ListLanguages() map[string]string { return h.languages }