Skip to content

🐛 [Bug]: translator.Localize undefined (type fiber.Handler has no field or method Localize) #1608

@ghs

Description

@ghs

Bug Description

Basically after following using the code from https://github.com/gofiber/contrib/tree/main/v3/i18n, I've got that error.

How to Reproduce

Steps to reproduce the behavior:

  1. Go to https://github.com/gofiber/contrib/tree/main/v3/i18n
  2. Get the code from the example and get the packages needed.
  3. Do go run ....
  4. See the error in your terminal or even before that your IDE will inform you.

Expected Behavior

The code to work as intended.

Contrib package Version

1.0.0-rc.1

Code Snippet (optional)

package main

// Replace <MAJOR> with the module's current major version (omit the `/v<MAJOR>` suffix entirely for v1 modules).
import "github.com/gofiber/contrib/v3/%package%"

func main() {
  // Steps to reproduce
}

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my problem prior to opening this one.
  • I understand that improperly formatted bug reports may be closed without explanation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☢️ BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions