{"id":37853589,"url":"https://github.com/michlabs/bottext","last_synced_at":"2026-01-16T16:23:13.760Z","repository":{"id":57492409,"uuid":"74547869","full_name":"michlabs/bottext","owner":"michlabs","description":"i18n package for chatbot","archived":false,"fork":false,"pushed_at":"2017-02-17T05:07:34.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-30T19:09:22.179Z","etag":null,"topics":["bot","chatbot","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/michlabs.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":"2016-11-23T06:39:08.000Z","updated_at":"2020-09-09T15:41:06.000Z","dependencies_parsed_at":"2022-08-28T13:30:34.466Z","dependency_job_id":null,"html_url":"https://github.com/michlabs/bottext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michlabs/bottext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michlabs%2Fbottext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michlabs%2Fbottext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michlabs%2Fbottext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michlabs%2Fbottext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michlabs","download_url":"https://codeload.github.com/michlabs/bottext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michlabs%2Fbottext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","chatbot","i18n"],"created_at":"2026-01-16T16:23:13.075Z","updated_at":"2026-01-16T16:23:13.735Z","avatar_url":"https://github.com/michlabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### BotText\nBotText is a Go package that help you:\n- Translate your bot into multiple languages,\n- Make your bot more interesting by expressing the same thing in different ways.\n\n### Installation\nMake sure you have [setup GOPATH](https://golang.org/doc/code.html#GOPATH)\n```bash\ngo get github.com/michlabs/bottext\n```\n\n### Example\nCreate a new language file named `text.yml`:\n```yaml\nvi:\n  welcome:\n    - Xin chào %s!\n    - Hi %s\nen:\n  welcome:\n    - Hello %s!\n    - Welcome %s!\n    - Hi %s\n```\nThen in your source code:\n```go\npackage main \n\nimport (\n    \"fmt\"\n    \"github.com/michlabs/bottext\"\n)\n\nfunc main() {\n    bottext.MustLoad(\"text.yml\")\n    var T1 bottext.BotTextFunc\n    T1 = bottext.New(\"en\")\n    for i := 0; i \u003c 10; i ++ {\n        fmt.Printf(T1(\"welcome\") + \"\\n\", \"Donald Trump\")    \n    }\n\n    T2 := bottext.New(\"vi\")\n    for i := 0; i \u003c 10; i ++ {\n        fmt.Printf(T2(\"welcome\"), \"Đỗ Nam Trung\")   \n    }\n}\n```\n\n### Document\nRead in [Godoc](http://godoc.org/github.com/michlabs/bottext)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichlabs%2Fbottext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichlabs%2Fbottext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichlabs%2Fbottext/lists"}