{"id":19869716,"url":"https://github.com/aduryagin/localization-webpack-plugin","last_synced_at":"2026-05-04T23:39:24.710Z","repository":{"id":112858991,"uuid":"106122809","full_name":"aduryagin/localization-webpack-plugin","owner":"aduryagin","description":"Make separate JSON localization files for every chunk","archived":false,"fork":false,"pushed_at":"2017-10-22T07:41:08.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-28T19:20:15.781Z","etag":null,"topics":["chunk","json","localization","plugin","separate","webpack"],"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/aduryagin.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-10-07T18:56:20.000Z","updated_at":"2017-12-29T10:24:07.000Z","dependencies_parsed_at":"2023-07-18T12:30:24.753Z","dependency_job_id":null,"html_url":"https://github.com/aduryagin/localization-webpack-plugin","commit_stats":null,"previous_names":["aiduryagin/localization-webpack-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduryagin%2Flocalization-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduryagin%2Flocalization-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduryagin%2Flocalization-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduryagin%2Flocalization-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aduryagin","download_url":"https://codeload.github.com/aduryagin/localization-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241290474,"owners_count":19939274,"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","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":["chunk","json","localization","plugin","separate","webpack"],"created_at":"2024-11-12T16:06:41.520Z","updated_at":"2026-05-04T23:39:24.686Z","avatar_url":"https://github.com/aduryagin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocalizationWebpackPlugin\nMake separate JSON localization files for every chunk\n\n* [See demo](https://warm-savannah-71686.herokuapp.com/)\n* [See source of demo](https://github.com/aiduryagin/localization-webpack-plugin-demo)\n\n## Usage\nThis plugin creates merged JSON files with translations for cunks. One JSON file by one chunk.\nTo get link to JSON file with translations you need to write in code \n\n```javascript\n// 'chunkLocalizationURL: {\"chunkName\": \"warAndPeace\", \"lang\": \"en\"}' will be replaced by 'warAndPeace.en.json'\nconst linksToTranslationFiles = {\n  warAndPeaceEN: 'chunkLocalizationURL: {\"chunkName\": \"warAndPeace\", \"lang\": \"en\"}',\n  warAndPeaceRU: 'chunkLocalizationURL: {\"chunkName\": \"warAndPeace\", \"lang\": \"ru\"}'\n};\n```\n\n## Options\n```javascript\nplugins: [\n  ...\n  new LocalizationWebpackPlugin({\n    filename: '[chunkname].[lang].json', // Avaible: [chunkname], [hash], [lang]\n    locales: ['en', 'ru'],\n  }),\n],\n```\n* `filename`: the default value is `[chunkname].[lang].json` Avaible tags is `[chunkname], [hash], [lang]`\n* `locales`: the default value is `['en']`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduryagin%2Flocalization-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faduryagin%2Flocalization-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduryagin%2Flocalization-webpack-plugin/lists"}