{"id":18357004,"url":"https://github.com/win-le/script-language","last_synced_at":"2025-10-26T12:39:32.679Z","repository":{"id":143907781,"uuid":"469769970","full_name":"win-le/script-language","owner":"win-le","description":"CLI generate multiple language","archived":false,"fork":false,"pushed_at":"2022-08-24T03:20:04.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-17T09:56:29.462Z","etag":null,"topics":["cli","language","multiple-language","script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/win-le.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-14T14:30:06.000Z","updated_at":"2023-06-11T09:13:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"56c4ff2f-361c-4dd1-b85c-7c2f928bd7b1","html_url":"https://github.com/win-le/script-language","commit_stats":null,"previous_names":["khacywin/script-language","win-le/script-language"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/win-le/script-language","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/win-le%2Fscript-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/win-le%2Fscript-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/win-le%2Fscript-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/win-le%2Fscript-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/win-le","download_url":"https://codeload.github.com/win-le/script-language/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/win-le%2Fscript-language/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281107099,"owners_count":26444787,"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-10-26T02:00:06.575Z","response_time":61,"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":["cli","language","multiple-language","script"],"created_at":"2024-11-05T22:12:30.599Z","updated_at":"2025-10-26T12:39:32.614Z","avatar_url":"https://github.com/win-le.png","language":"JavaScript","readme":"# script-language\n\nThis is CLI command.\u003cbr/\u003e\nThe `script-language` will generate text which around by any function to object.\n\n## Install\n\nWith npm\n\n```\n  npm install -g script-language\n```\n\nWith yarn\n\n```\n  yarn global add script-language\n```\n\n## Usage\n\nRun script in your code folder\n\n```\n  script-language\n```\n\n## CLI command\n\n| Flag         | Type   | Description                              |\n| ------------ | ------ | ---------------------------------------- |\n| **--outDir** | string | Path of folder consist will be generated |\n\n## File language.config.json\n\n| Properties       | Type               | Description                                     | Default                   |\n| ---------------- | ------------------ | ----------------------------------------------- | ------------------------- |\n| **excludes**     | array              | Folder will be ignored                          | [\"node_modules\"]          |\n| **includes**     | array              | Folder will be run                              | [\"src\"]                   |\n| **match**        | string             | File match                                      | \\^.\\*.(js\\|ts\\|jsx\\|tsx)$ |\n| **nameFunction** | string \\| string[] | Name of function contain text will be generated | \"\\_t\"                     |\n| **outDir**       | string             | Path of folder consist will be generated        | \"./language\"              |\n| **language**     | array              | List language                                   | [\"vi-VI\", \"en-EN\"]        |\n\n## Example\n\n```\n  ...\n  \u003cdiv\u003e{ _t(\"Sessions is expired.\") }\u003c/div\u003e\n\n  ...\n  \u003ca\u003e{_t(\"Sign in\")}\u003c/a\u003e\n\n\n  ...\n  console.log(_t(\"You can reset password\"))\n\n  ...\n  \u003cbutton\u003e{_t(\"Sent\")}\u003c/button\u003e\n```\n\n\u003cbr /\u003e\n\n`language/vi.json`\n\n```\n  {\n    \"Sessions is expired.\": \"Sessions is expired.\",\n    \"Sign in\":\"Sign in\",\n    \"You can reset password\": \"You can reset password\",\n    \"Send\": \"Send\",\n  }\n```\n\n`language/en.json`\n\n```\n  {\n    \"Sessions is expired.\": \"Sessions is expired.\",\n    \"Sign in\":\"Sign in\",\n    \"You can reset password\": \"You can reset password\",\n    \"Send\": \"Send\",\n  }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwin-le%2Fscript-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwin-le%2Fscript-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwin-le%2Fscript-language/lists"}