{"id":22967533,"url":"https://github.com/yuangwei/go-i18next","last_synced_at":"2025-08-13T09:33:52.475Z","repository":{"id":156912053,"uuid":"491005511","full_name":"yuangwei/go-i18next","owner":"yuangwei","description":"I18next for go support.","archived":false,"fork":false,"pushed_at":"2024-12-20T11:01:12.000Z","size":25,"stargazers_count":15,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T12:47:01.856Z","etag":null,"topics":["cldr","go","i18n","i18next","icu-messageformat","translation"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuangwei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-11T07:37:53.000Z","updated_at":"2025-07-06T15:45:39.000Z","dependencies_parsed_at":"2024-10-29T15:18:21.605Z","dependency_job_id":null,"html_url":"https://github.com/yuangwei/go-i18next","commit_stats":null,"previous_names":["gavinleige/go-i18next","craftheon/go-i18next","yuang-wei/go-i18next"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yuangwei/go-i18next","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuangwei%2Fgo-i18next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuangwei%2Fgo-i18next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuangwei%2Fgo-i18next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuangwei%2Fgo-i18next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuangwei","download_url":"https://codeload.github.com/yuangwei/go-i18next/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuangwei%2Fgo-i18next/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270109366,"owners_count":24528787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cldr","go","i18n","i18next","icu-messageformat","translation"],"created_at":"2024-12-14T21:13:54.834Z","updated_at":"2025-08-13T09:33:52.457Z","avatar_url":"https://github.com/yuangwei.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-i18next\n---\ngo-i18next is a port of [i18next](https://www.i18next.com/) in Go.\n\n## Installation\n```shell\n$ go get -u https://github.com/yuangwei/go-18next\n```\n## Usage\n```go\nimport \"github.com/yuangwei/go-18next\"\n\nvar i18n i18next.I18n\n\nfunc main() {\n\ti18n = i18next.Init(i18next.I18nOptions{\n                Lng:        []string{\"en\", \"cn\"},\n                DefaultLng: \"en\",\n                Ns:         \"json\",\n                Backend: i18next.Backend{\n                LoadPath: []string{\"./examples/datas/{{.Ns}}/{{.Lng}}/home.json\"},\n            },\n        })\n\ttext, err := i18n.T(\"title\", struct {\n            Name string\n    }{Name: \"Mike\"})\n\tfmt.Println(val) // Hello, Mike\n\t\n}\n\n```\n\n## License\ngo-i18next is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuangwei%2Fgo-i18next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuangwei%2Fgo-i18next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuangwei%2Fgo-i18next/lists"}