Skip to content

Commit

Permalink
correct method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Sep 5, 2023
1 parent f977477 commit 0fc2872
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fiberi18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ go get -u github.com/gofiber/contrib/fiberi18n/v2

## Signature

| Name | Signature | Description |
|--------------|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| New | `New(config ...*fiberi18n.Config) fiber.Handler` | Create a new fiberi18n middleware handler |
| Localize | `Localize(ctx *fiber.Ctx, params interface{}) (string, error)` | Localize returns a localized message. param is one of these type: messageID, *i18n.LocalizeConfig |
| MustLocalize | `MustLocalize(ctx *fiber.Ctx, params interface{}) (string, error)` | MustLocalize is similar to Localize, except it panics if an error happens. param is one of these type: messageID, *i18n.LocalizeConfig |
| Name | Signature | Description |
|--------------|----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| New | `New(config ...*fiberi18n.Config) fiber.Handler` | Create a new fiberi18n middleware handler |
| Localize | `Localize(ctx *fiber.Ctx, params interface{}) (string, error)` | Localize returns a localized message. param is one of these type: messageID, *i18n.LocalizeConfig |
| MustLocalize | `MustLocalize(ctx *fiber.Ctx, params interface{}) string` | MustLocalize is similar to Localize, except it panics if an error happens. param is one of these type: messageID, *i18n.LocalizeConfig |

## Config

Expand Down

0 comments on commit 0fc2872

Please sign in to comment.