{"id":18563293,"url":"https://github.com/compulim/opencc-loader","last_synced_at":"2026-07-19T01:06:19.432Z","repository":{"id":82478920,"uuid":"101954943","full_name":"compulim/opencc-loader","owner":"compulim","description":"Webpack loader for converting Traditional Chinese into Simplified Chinese (and vice versa).","archived":false,"fork":false,"pushed_at":"2017-09-02T22:51:35.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T21:38:54.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/compulim.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}},"created_at":"2017-08-31T03:26:43.000Z","updated_at":"2019-05-18T16:11:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"18e86e66-cd0f-49ab-b426-91ffa8045048","html_url":"https://github.com/compulim/opencc-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/compulim/opencc-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fopencc-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fopencc-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fopencc-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fopencc-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compulim","download_url":"https://codeload.github.com/compulim/opencc-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fopencc-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35636583,"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-07-18T02:00:07.223Z","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":[],"created_at":"2024-11-06T22:12:17.186Z","updated_at":"2026-07-19T01:06:19.410Z","avatar_url":"https://github.com/compulim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"opencc-loader\n=============\n\n[![npm version](https://badge.fury.io/js/opencc-loader.svg)](https://badge.fury.io/js/opencc-loader)\n\nWebpack loader for converting Traditional Chinese into Simplified Chinese (and vice versa) using [Open Chinese Convert](https://github.com/byvoid/opencc) and [`node-opencc`](https://github.com/compulim/node-opencc) package.\n\nUsage\n-----\n\nIn your `webpack.config.js`, add `opencc-loader` as one of the loader for your JavaScript/JSX/TypeScript or text files. The following example translate from Traditional Chinese (Hong Kong) to Simplified Chinese.\n\n```js\n{\n  test   : /\\.jsx?$/,\n  exclude: /(node_modules|bower_components)/,\n  loaders: [\n    'react-hot-loader',\n    'babel-loader?presets[]=react\u0026presets[]=es2015\u0026presets[]=es2016\u0026presets[]=es2017',\n    'opencc-loader?translation=hongKongToSimplified'\n  ]\n}\n```\n\nSupported translation\n---------------------\n\n| Type                            | Translation                               |\n| ------------------------------- | ----------------------------------------- |\n| `hongKongToSimplified`          | Hong Kong to Simplified Chinese           |\n| `simplifiedToHongKong`          | Simplified Chinese to Hong Kong           |\n| `simplifiedToTraditional`       | Simplified Chinese to Traditional Chinese |\n| `simplifiedToTaiwan`            | Simplified Chinese to Taiwan              |\n| `simplifiedToTaiwanWithPhrases` | Simplified Chinese to Taiwan with phrases |\n| `traditionalToHongKong`         | Traditional Chinese to Hong Kong          |\n| `traditionalToSimplified`       | Traditional Chinese to Simplified Chinese |\n| `traditionalToTaiwan`           | Traditional Chinese to Taiwan             |\n| `taiwanToSimplified`            | Taiwan to Simplified Chinese              |\n| `taiwanToSimplifiedWithPhrases` | Taiwan to Simplified Chinese with phrases |\n\nFor details of the translation, please refer to [`node-opencc`](https://github.com/compulim/node-opencc).\n\n\nContributions\n-------------\n\nLike us? [Star us](https://github.com/compulim/opencc-loader/stargazers).\n\nWant to make it better? Fork us and send us a [pull request](https://github.com/compulim/opencc-loader/pulls) or file an [issue](https://github.com/compulim/opencc-loader/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fopencc-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompulim%2Fopencc-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fopencc-loader/lists"}