{"id":28436454,"url":"https://github.com/syyongx/ii18n","last_synced_at":"2025-08-22T01:19:12.888Z","repository":{"id":57487340,"uuid":"138123687","full_name":"syyongx/ii18n","owner":"syyongx","description":"II18N - Go i18n library.","archived":false,"fork":false,"pushed_at":"2019-06-05T07:23:10.000Z","size":15,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-05T22:09:13.938Z","etag":null,"topics":["go","i18n"],"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/syyongx.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}},"created_at":"2018-06-21T05:33:21.000Z","updated_at":"2025-01-09T13:11:55.000Z","dependencies_parsed_at":"2022-09-01T23:02:04.844Z","dependency_job_id":null,"html_url":"https://github.com/syyongx/ii18n","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/syyongx/ii18n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syyongx%2Fii18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syyongx%2Fii18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syyongx%2Fii18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syyongx%2Fii18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syyongx","download_url":"https://codeload.github.com/syyongx/ii18n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syyongx%2Fii18n/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262310781,"owners_count":23291620,"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","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":["go","i18n"],"created_at":"2025-06-05T22:09:12.999Z","updated_at":"2025-06-27T18:31:15.372Z","avatar_url":"https://github.com/syyongx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# II18N\n\n[![GoDoc](https://godoc.org/github.com/syyongx/ii18n?status.svg)](https://godoc.org/github.com/syyongx/ii18n)\n[![Go Report Card](https://goreportcard.com/badge/github.com/syyongx/ii18n)](https://goreportcard.com/report/github.com/syyongx/ii18n)\n[![MIT licensed][3]][4]\n\n[3]: https://img.shields.io/badge/license-MIT-blue.svg\n[4]: LICENSE\n\nGo i18n library.\n\n## Download \u0026 Install\n```shell\ngo get github.com/syyongx/ii18n\n```\n\n## Quick Start\n```go\nimport github.com/syyongx/ii18n\n\nfunc main() {\n    config := map[string]Config{\n        \"app\": Config{\n            SourceNewFunc: NewJSONSource,\n            OriginalLang:  \"en-US\",\n            BasePath:      \"./testdata\",\n            FileMap: map[string]string{\n                \"app\":   \"app.json\",\n                \"error\": \"error.json\",\n            },\n        },\n    }\n    NewI18N(config)\n    message := T(\"app\", \"hello\", nil, \"zh-CN\")\n}\n```\n\n## Apis\n```go\nNewI18N(config map[string]Config) *I18N\nT(category string, message string, params map[string]string, lang string) string\n```\n\n## LICENSE\nII18N source code is licensed under the [MIT](https://github.com/syyongx/ii18n/blob/master/LICENSE) Licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyyongx%2Fii18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyyongx%2Fii18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyyongx%2Fii18n/lists"}