{"id":31234191,"url":"https://github.com/majigsaw77/kotoba","last_synced_at":"2026-02-14T02:03:28.055Z","repository":{"id":308400575,"uuid":"1032696564","full_name":"MAJigsaw77/kotoba","owner":"MAJigsaw77","description":"A lightweight Haxe library for XML-based language configuration and translation management.","archived":false,"fork":false,"pushed_at":"2025-08-05T17:29:48.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-05T19:25:11.282Z","etag":null,"topics":["haxe","i18n","language","localization","toolkit","translation","utility","xml"],"latest_commit_sha":null,"homepage":"https://lib.haxe.org/p/kobota","language":"Haxe","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/MAJigsaw77.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,"zenodo":null}},"created_at":"2025-08-05T17:25:01.000Z","updated_at":"2025-08-05T17:29:52.000Z","dependencies_parsed_at":"2025-08-05T19:27:11.708Z","dependency_job_id":"a33b7223-e649-4e8f-a8a9-39934aa3a0dd","html_url":"https://github.com/MAJigsaw77/kotoba","commit_stats":null,"previous_names":["majigsaw77/kotoba"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MAJigsaw77/kotoba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAJigsaw77%2Fkotoba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAJigsaw77%2Fkotoba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAJigsaw77%2Fkotoba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAJigsaw77%2Fkotoba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MAJigsaw77","download_url":"https://codeload.github.com/MAJigsaw77/kotoba/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAJigsaw77%2Fkotoba/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29431593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"online","status_checked_at":"2026-02-14T02:00:07.626Z","response_time":53,"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":["haxe","i18n","language","localization","toolkit","translation","utility","xml"],"created_at":"2025-09-22T13:31:43.902Z","updated_at":"2026-02-14T02:03:28.047Z","avatar_url":"https://github.com/MAJigsaw77.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](./assets/kotoba.png)\n\n# kotoba\n\n![](https://img.shields.io/github/repo-size/MAJigsaw77/kobota) ![](https://badgen.net/github/open-issues/MAJigsaw77/kobota) ![](https://badgen.net/badge/license/MIT/green)\n\nA lightweight Haxe library for XML-based language configuration and translation management.\n\n### Installation\n\nUsing **Haxelib**:\n```bash\nhaxelib install kotoba\n```\n\nUsing **Git** (for latest changes):\n```bash\nhaxelib git kotoba https://github.com/MAJigsaw77/kotoba.git\n```\n\n### How It Works\n\nKotoba loads translation files defined in a `config.xml`. You can organize your folders however you like — just make sure `Kotoba.initialize(path)` points to the directory containing `config.xml`, and the config lists your language folders and file IDs.\n\n### Example File Structure\n\n```\nassets/\n└── translations/\n\t├── config.xml\n\t├── en-US/\n\t│   └── example_file.xml\n\t└── ro-RO/\n\t\t└── example_file.xml\n```\n\n### `config.xml`\n\n```xml\n\u003ckotoba-config\u003e\n\t\u003cfile id=\"example_file\" /\u003e\n\t\u003clanguage name=\"en-US\" /\u003e\n\t\u003clanguage name=\"ro-RO\" /\u003e\n\u003c/kotoba-config\u003e\n```\n\n### 🇺🇸 `en-US/example_file.xml`\n\n```xml\n\u003ckotoba-file\u003e\n\t\u003cstring key=\"example_id\" value=\"You earned $money!\" /\u003e\n\u003c/kotoba-file\u003e\n```\n\n### 🇷🇴 `ro-RO/example_file.xml`\n\n```xml\n\u003ckotoba-file\u003e\n\t\u003cstring key=\"example_id\" value=\"Ai câștigat $money lei!\" /\u003e\n\u003c/kotoba-file\u003e\n```\n\n### Usage\n\n```haxe\nimport kotoba.Kotoba;\nimport kotoba.KotobaLoader;\nimport kotoba.KotobaReplacer;\n\nimport sys.FileSystem;\nimport sys.io.File;\n\nclass Main\n{\n\tpublic static function main():Void\n\t{\n\t\t// Hook Kotoba into your file loading logic\n\t\tKotobaLoader.exists = FileSystem.exists;\n\t\tKotobaLoader.getContent = File.getContent;\n\n\t\t// Choose a language\n\t\tKotoba.language = 'ro-RO';\n\n\t\t// Load translations from folder\n\t\tKotoba.initialize('assets/translations');\n\n\t\t// Fetch and format a translated string\n\t\tfinal raw:String = Kotoba.getString('example_file', 'example_id', 'Fallback text');\n\n\t\tfinal result:String = KotobaReplacer.replace(raw, { money: 20 });\n\n\t\ttrace(result); // → Ai câștigat 20 lei!\n\t}\n}\n```\n\n---\n\n### License\n\n**kotoba** is released under the MIT License. See [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajigsaw77%2Fkotoba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajigsaw77%2Fkotoba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajigsaw77%2Fkotoba/lists"}