{"id":69164,"library":"go-macaron-i18n","title":"Macaron i18n Middleware","description":"Package i18n provides an Internationalization and Localization middleware for Macaron applications.","status":"active","version":"0.6.0","language":"go","source_language":null,"source_url":"https://github.com/go-macaron/i18n","tags":["i18n","localization","macaron","middleware"],"install":[{"cmd":"go get github.com/go-macaron/i18n","lang":"bash","label":"Install github.com/go-macaron/i18n"}],"dependencies":[],"imports":[{"symbol":"i18n","correct":"github.com/go-macaron/i18n"}],"quickstart":{"code":"package main\n\nimport (\n\t\"gopkg.in/macaron.v1\"\n\t\"github.com/go-macaron/i18n\"\n)\n\nfunc main() {\n\tm := macaron.Classic()\n\tm.Use(i18n.I18n(i18n.Options{\n\t\tLangs: []string{\"en-US\", \"zh-CN\"},\n\t\tNames: []string{\"English\", \"简体中文\"},\n\t}))\n\tm.Get(\"/\", func(ctx *macaron.Context) {\n\t\tctx.Write([]byte(ctx.Tr(\"hello\")))\n\t})\n\tm.Run()\n}","lang":"go","description":"Sets up i18n middleware with English and Chinese support."},"warnings":[],"env_vars":null,"search_vec":"'applic':14 'i18n':2,5,15 'internation':8 'local':10,16 'macaron':1,13,17 'middlewar':3,11,18 'packag':4 'provid':6","created_at":"2026-06-17T17:58:31.903712+00:00","updated_at":"2026-06-17T17:58:31.903712+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-macaron/i18n","github":"https://github.com/go-macaron/i18n","docs":"https://pkg.go.dev/github.com/go-macaron/i18n#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}