package
0.0.0-20240504145602-a1b2d126b00e
Repository: https://github.com/apollomedtech/middleware.git
Documentation: pkg.go.dev
# Functions
GetLocalizer retrieves the localizer from Gin's context.
No description provided by the author
No description provided by the author
LocalizationMiddleware detects the user's language and initializes a localizer.
LocalizeDate formats a date according to the language in the localizer.
LocalizePlural is a helper function that localizes a message ID with pluralization.
LocalizePrefixStrings Modify the function to use SearchPrefix to find all keys that start with the given prefix, and then localize those strings.
LocalizeStrings localizes a slice of message IDs and returns a map.
# Type aliases
LocalizationData holds all sections with their respective translations.
SectionData represents the data of a specific section in your JSON files.