{"id":34670775,"url":"https://github.com/hyperscale-stack/translation","last_synced_at":"2026-05-29T14:31:04.045Z","repository":{"id":37588300,"uuid":"463309106","full_name":"hyperscale-stack/translation","owner":"hyperscale-stack","description":"The Hyperscale translation library provides a simple translation manager over x/text package.","archived":false,"fork":false,"pushed_at":"2026-05-11T05:29:20.000Z","size":91,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-11T07:25:10.374Z","etag":null,"topics":["go","go-module","golang","gomodule","i18n","internationalization","localization","localize","module","translation","translations"],"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/hyperscale-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-24T21:36:53.000Z","updated_at":"2026-05-11T05:29:24.000Z","dependencies_parsed_at":"2023-11-06T08:26:01.700Z","dependency_job_id":"0fa44f29-b425-4ded-bb30-ae66b2c85f04","html_url":"https://github.com/hyperscale-stack/translation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hyperscale-stack/translation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperscale-stack%2Ftranslation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperscale-stack%2Ftranslation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperscale-stack%2Ftranslation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperscale-stack%2Ftranslation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperscale-stack","download_url":"https://codeload.github.com/hyperscale-stack/translation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperscale-stack%2Ftranslation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33657690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["go","go-module","golang","gomodule","i18n","internationalization","localization","localize","module","translation","translations"],"created_at":"2025-12-24T19:55:40.795Z","updated_at":"2026-05-29T14:31:04.040Z","avatar_url":"https://github.com/hyperscale-stack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperscale Translation [![Last release](https://img.shields.io/github/release/hyperscale-stack/translation.svg)](https://github.com/hyperscale-stack/translation/releases/latest) [![Documentation](https://godoc.org/github.com/hyperscale-stack/translation?status.svg)](https://godoc.org/github.com/hyperscale-stack/translation)\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/hyperscale-stack/translation)](https://goreportcard.com/report/github.com/hyperscale-stack/translation)\n\n| Branch | Status                                                                                                                                                                               | Coverage                                                                                                                                                         |\n| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| master | [![Build Status](https://github.com/hyperscale-stack/translation/workflows/Go/badge.svg?branch=master)](https://github.com/hyperscale-stack/translation/actions?query=workflow%3AGo) | [![Coveralls](https://img.shields.io/coveralls/hyperscale-stack/translation/master.svg)](https://coveralls.io/github/hyperscale-stack/translation?branch=master) |\n\nThe Hyperscale translation library provides a simple translation manager over `x/text` package.\n\n## Example\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/hyperscale-stack/locale\"\n    \"github.com/hyperscale-stack/translation\"\n    \"golang.org/x/text/language\"\n    \"golang.org/x/text/message/catalog\"\n)\n\nfunc main() {\n    // plase use golang.org/x/text/cmd/gotext for build catalog\n    c := catalog.NewBuilder(catalog.Fallback(language.English))\n    c.SetString(language.English, \"Hello World\", \"Hello World\")\n    c.SetString(language.French, \"Hello World\", \"Bonjour le monde\")\n\n    // the default language is always language.English, for override use translation.WithDefaultLocale()\n    trans := translation.New(\n        []language.Tag{\n            language.English,\n            language.French,\n        },\n        translation.WithCatalog(c),\n    )\n\n    ctx := context.Background()\n\n    ctx = locale.ToContext(ctx, language.French)\n\n    trans.Translate(ctx, \"Hello World\") // return Bonjour le monde\n}\n\n```\n\n## License\n\nHyperscale Translation is licensed under [the MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperscale-stack%2Ftranslation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperscale-stack%2Ftranslation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperscale-stack%2Ftranslation/lists"}