{"id":20974548,"url":"https://github.com/koala-framework/trl-webpack-plugin","last_synced_at":"2025-10-14T06:07:01.973Z","repository":{"id":66521716,"uuid":"152103414","full_name":"koala-framework/trl-webpack-plugin","owner":"koala-framework","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-06T11:00:19.000Z","size":57,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-13T09:14:59.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koala-framework.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":"2018-10-08T15:30:03.000Z","updated_at":"2019-03-05T13:04:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6ccdcbd-df41-46c3-a44e-16b2fdfc6d0a","html_url":"https://github.com/koala-framework/trl-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/koala-framework/trl-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koala-framework%2Ftrl-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koala-framework%2Ftrl-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koala-framework%2Ftrl-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koala-framework%2Ftrl-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koala-framework","download_url":"https://codeload.github.com/koala-framework/trl-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koala-framework%2Ftrl-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018120,"owners_count":26086280,"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-14T02:00:06.444Z","response_time":60,"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-19T04:30:23.294Z","updated_at":"2025-10-14T06:07:01.953Z","avatar_url":"https://github.com/koala-framework.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trl-webpack-plugin\n\n## Usage\nAdd Plugin in `webpack.config.js`\n\n    const vendorPoFiles = [];\n    glob.sync(path.resolve(__dirname, '../vendor/*/*/trl/en.po')).forEach(i =\u003e {\n        vendorPoFiles.push(i.replace(/\\/en\\.po$/, '/[language].po'));\n    });\n    const languages = ['de'];\n    \n    plugins: [\n        ...\n        new TrlPlugin.default({\n            uniquePrefix,\n            languages,\n            webCodeLanguage: 'de',\n            translations: {\n                web: TrlPlugin.loadTranslations(['../trl/[language].po'], languages),\n                kwf: TrlPlugin.loadTranslations(vendorPoFiles, languages),\n            }\n        })\n        ...\n    ]\n\nalso add uniquePrefix to define plugin, this is used as prefix for trl functions\n\n    new webpack.DefinePlugin({\n        UNIQUE_PREFIX: JSON.stringify(uniquePrefix ? uniquePrefix + \"-\" : \"\")\n    })\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoala-framework%2Ftrl-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoala-framework%2Ftrl-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoala-framework%2Ftrl-webpack-plugin/lists"}