{"id":16676626,"url":"https://github.com/princed/angular-gettext-loader","last_synced_at":"2025-04-09T20:40:25.588Z","repository":{"id":46059147,"uuid":"39163458","full_name":"princed/angular-gettext-loader","owner":"princed","description":"Webpack loader for angular-gettext","archived":false,"fork":false,"pushed_at":"2021-11-17T01:29:10.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-23T12:16:42.969Z","etag":null,"topics":["angular","gettext","webpack","webpack-loader"],"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/princed.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}},"created_at":"2015-07-15T22:03:18.000Z","updated_at":"2021-11-17T01:29:13.000Z","dependencies_parsed_at":"2022-09-17T23:00:19.153Z","dependency_job_id":null,"html_url":"https://github.com/princed/angular-gettext-loader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fangular-gettext-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fangular-gettext-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fangular-gettext-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fangular-gettext-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princed","download_url":"https://codeload.github.com/princed/angular-gettext-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276098,"owners_count":20912287,"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":["angular","gettext","webpack","webpack-loader"],"created_at":"2024-10-12T13:11:05.533Z","updated_at":"2025-04-09T20:40:25.566Z","avatar_url":"https://github.com/princed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [angular-gettext](https://github.com/rubenv/angular-gettext)-loader\nWebpack loader for angular-gettext. Intended for compilation only.\nUse [angular-gettext-cli](https://github.com/huston007/angular-gettext-cli) together with [npm scripts](https://docs.npmjs.com/misc/scripts) for extraction.\nFor details see official [developer guide](https://angular-gettext.rocketeer.be/dev-guide/) for angular-gettext.\n\n### Parameters\n\n#### format \nValues: `javascript`, `json`. Default value: `javascript`\n\nCompilation format, where `javascript` means Angular module. \n\n#### module\nType: `{string}`, default value: `gettext` \n \nAngular module name.  \n\n### Usage \n\n```js\nmodule.exports = {\n  module: {\n    loaders: [\n      // Bundle as angular module \n      {\n        test: /basic.*\\.po$/,\n        use: [{\n          loader: 'angular-gettext-loader',\n          options: {\n            module: 'myApp'\n          }\n        }]\n      },\n      // Bundle as json, to be injected with gettextCatalog.setStrings()\n      {\n        test: /\\.po$/,\n        type: 'asset/source',\n        use: [{\n          loader: 'angular-gettext-loader',\n          options: {\n            format: 'json'\n          }\n        }]\n      },\n      // Copy as json, to be loaded with gettextCatalog.loadRemote()  \n      {\n        test: /additional.*\\.po$/,\n        type: 'asset/resource',\n        generator: {\n          filename: 'translations/[name].[hash].json'\n        },\n        use: [{\n          loader: 'angular-gettext-loader',\n          options: {\n            format: 'json'\n          }\n        }]\n      }\n    ]\n  }\n}  \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fangular-gettext-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprinced%2Fangular-gettext-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fangular-gettext-loader/lists"}