{"id":14482492,"url":"https://github.com/angular-translate/grunt-angular-translate","last_synced_at":"2026-03-27T02:45:33.444Z","repository":{"id":8455798,"uuid":"10051272","full_name":"angular-translate/grunt-angular-translate","owner":"angular-translate","description":"Grunt tasks to extract translation with AngularJS and angular-translate","archived":false,"fork":false,"pushed_at":"2019-02-28T11:34:45.000Z","size":183,"stargazers_count":90,"open_issues_count":25,"forks_count":52,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-02T11:57:39.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/angular-translate.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":"2013-05-14T08:53:58.000Z","updated_at":"2025-07-23T03:33:13.000Z","dependencies_parsed_at":"2022-09-07T03:40:50.930Z","dependency_job_id":null,"html_url":"https://github.com/angular-translate/grunt-angular-translate","commit_stats":null,"previous_names":["firehist/grunt-angular-translate"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/angular-translate/grunt-angular-translate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-translate%2Fgrunt-angular-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-translate%2Fgrunt-angular-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-translate%2Fgrunt-angular-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-translate%2Fgrunt-angular-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angular-translate","download_url":"https://codeload.github.com/angular-translate/grunt-angular-translate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-translate%2Fgrunt-angular-translate/sbom","scorecard":{"id":196272,"data":{"date":"2025-08-11","repo":{"name":"github.com/angular-translate/grunt-angular-translate","commit":"a3988c3850a3970a048c1a0a1ae5d2d14f0793f7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 2/10 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T21:53:30.956Z","repository_id":8455798,"created_at":"2025-08-16T21:53:30.957Z","updated_at":"2025-08-16T21:53:30.957Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31011923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:33:22.146Z","status":"ssl_error","status_checked_at":"2026-03-27T02:33:21.763Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-09-03T00:01:10.139Z","updated_at":"2026-03-27T02:45:33.412Z","avatar_url":"https://github.com/angular-translate.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# grunt-angular-translate\n\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-translate/grunt-angular-translate?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nTask that extracts all the translation keys for angular-translate\nproject. It searches all view, and js scripts to find\n`angular-translate` calls; such as:\n\n* `{{'KEY_IN_VIEW' | translate }}`\n* `$translate.instant('KEY_IN_SCRIPT')`\n\nEach found key is then extracted to json files with translations. For\neach local defined in Gruntfile separate json is created:\n\n    {\n      \"KEY_IN_VIEW\": \"\",\n      \"KEY_IN_SCRIPT\": \"\"\n    }\n\nTranslation should be provided in the created files. On the next run,\n`grunt-angular-translate` will not change keys already translated.\nIt will only add keys that were added to the source and remove the\nones that are not present anymore in the source.\n\n\n##Status\n\n[![NPM](https://nodei.co/npm/grunt-angular-translate.png)](https://nodei.co/npm/grunt-angular-translate/)\n\n## Getting Started\nInstall this grunt plugin next to your project. Require [gruntJS][getting_started].\n\nUse `npm install grunt-angular-translate`\n\nThen add this line to your project's `Gruntfile.js` file:\n\n`grunt.loadNpmTasks('grunt-angular-translate');`\n\ngrunt-angular-translate provide to your grunt environment a task called i18nextract which need a configuration to rocks (Please read the documentation).\n\nThis extraction is made to work with the [angular-translate][angular_translate] project created by [Pascal Precht][pascalPrecht]\n\n## Use cases\n\n### Views\n\n#### Filters\n\n`{{'TRANSLATION' | translate}}`\n\n`{{'TRANSLATION' | translate:XXXXXX}}`\n\n#### Directives\n\n`\u003ca href=\"#\" translate\u003eTRANSLATION\u003c/a\u003e`\n\n#### Directives plural (custom attribute angular-plural-extract to automatize extraction)\n\n`\u003cspan translate=\"TRANSLATION_KEY\" angular-plural-extract=\"['TEXT FOR ONE','# TEXT FOR OTHER']\" translate-values=\"{NB: X}\" translate-interpolation=\"messageformat\"\u003e\u003c/span\u003e`\n\n### Javascript\n\n#### Filter\n\n`$filter(\"translate\")(\"TRANSLATION\")`\n\n#### Service angular-translate\n\n`$translate('TRANSLATION')`\n\n`$translate.instant('TRANSLATION')`\n\n`$translate(['TRANSLATION', 'TRANSLATION_1'])`\n\n## Configuration\n\nSimple configuration for `i18nextract` task\n\n```\ni18nextract: {\n  default_options: {\n    src: [ 'src/**/*.js', 'src/**/*.html' ],\n    lang:     ['fr_FR'],\n    dest:     'tmp'\n  }\n}\n```\n\nMore examples in [Gruntfile.js](https://github.com/angular-translate/grunt-angular-translate/blob/master/Gruntfile.js)\n\n### Options\n\nOptions src and jsonSrc may be specified according to the grunt Configuring tasks guide.\n\n- [src](#src)\n- [nullEmpty](#nullempty-v026)\n- [namespace](#namespace-v026)\n- [interpolation](#interpolation)\n- [jsonSrc](#jsonSrc)\n- [jsonSrcName](#jsonSrcName)\n- [defaultLang](#defaultLang)\n- [lang](#lang)\n- [prefix](#prefix)\n- [suffix](#suffix)\n- [dest](#dest)\n- [safeMode](#safeMode)\n- [stringifyOptions](#stringifyOptions)\n- [keyAsText](#keyAsText)\n\n#### src\n\nType: `Array`\nDefault: `undefined`\n\nExample: `[ 'src/**/*.js' ]`\n\nDefine a file list to parse for extract translation.\n\n#### nullEmpty (v0.2.6)\n\nType: `Boolean`\nDefault: `false`\n\nExample: `true`\n\nIf set to true, it will replace all final empty translations by *null* value.\n\n#### namespace (v0.2.6)\n\nType: `Boolean`\nDefault: `false`\n\nExample: `true`\n\nIf set to true, it will organize output JSON like the following.\n`````\n{\n  \"MODULE\": {\n    \"CATEGORY\": {\n      \"TITLE\": \"My Title\",\n      \"TITLE1\": null\n    }\n  }\n}\n`````\n\n\n#### interpolation\n\nType: `Object`\nDefault: `{ startDelimiter: '{{', endDelimiter: '}}' }`\n\nExample: `{ startDelimiter: '[[', endDelimiter: ']]' }`\n\nDefine interpolation symbol use for your angular application.\nThe angulars docs about ($interpolateProvider)[http://docs.angularjs.org/api/ng.$interpolateProvider] explain how you can configure the interpolation markup.\n\n#### jsonSrc\n\nType: `Array`\nDefault: `undefined`\n\nExample: `[ 'config/*.json' ]`\n\nDefine a JSON file list to parse for extract translation.\n\n#### jsonSrcName\n\nType: `Array`\nDefault: `undefined`\n\nExample: `[ 'label', 'name' ]`\n\nDefine the keys to find corresponding values through JSON object.\n\n#### defaultLang\n\nType: `String`\nDefault: `undefined`\n\nExample: `\"en_US\"`\n\nDefine the default language. For default language, by default the key will be set as value.\n\n#### customRegex\n\nType: `Array\u003cString\u003e`\nDefault: `[]`\n\nExample: `\ncustomRegex: [\n  'tt-default=\"\\'((?:\\\\\\\\.|[^\\'\\\\\\\\])*)\\'\\\\|translate\"'\n],\n`\n\nWill extract `MY.CUSTOM.REGEX` from the following HTML: `\u003carticle tt-default=\"'MY.CUSTOM.REGEX'|translate\"\u003e`.\n\nEnjoy your custom regex guys!\n\n#### lang\n\nType: `Array`\nDefault: `undefined`\n\nExample: `['fr_FR', 'en_US']`\n\nDefine language to be extract (fr__FR, en__US, xxx). xxx will be the output filename wrapped by prefix and suffix option.\n\n#### prefix\n\nType: `String`\nDefault: `\"\"`\n\nExample: `\"project_\"`\n\nSet prefix to output filenames (cf [angular-translate#static-files][https://github.com/PascalPrecht/angular-translate/wiki/Asynchronous-loading#using-extension-static-files-loader]).\n\n#### suffix\n\nType: `String`\nDefault:  `\"\"`\n\nExample: `\".json\"`\n\nSet suffix to output filenames (cf [angular-translate#static-files][https://github.com/PascalPrecht/angular-translate/wiki/Asynchronous-loading#using-extension-static-files-loader]).\n\n#### dest\n\nType: `String`\nDefault:  `\"\"`\n\nExample: `\"src/assets/i18n\"`\n\nRelative path to output folder.\n\n#### safeMode\n\nType: `Boolean`\nDefault: `false`\n\nIf safeMode is set to `true` the deleted translations will stay in the output lang file.\n\n#### stringifyOptions\n\nType: `Boolean` or `Object`\nDefault: `false`\n\nIf stringifyOptions is set to `true` the output will be sort (case insensitive).\nIf stringifyOptions is an `object`, you can easily check [json-stable-stringify](https://github.com/substack/json-stable-stringify) README.\n\n#### keyAsText\nType: `Boolean`\nDefault: `false`\n\nIf keyAsText is set to `true` translations keys works also as value for this translation.\n\n## Test\n\nYou will find the tests files into `test` directory.\n\nTo run test use `grunt test`\n\n__to improve ... :-D__\n\n## Contributing\n\n_(Anyone yet)_\n\n## Release History\n\n_(Nothing yet)_\n\n## License\n\nCopyright (c) 2013 Benjamin Longearet\nLicensed under the MIT license.\n\n[grunt]: http://gruntjs.com/\n[getting_started]: https://github.com/gruntjs/grunt/wiki/Getting-started\n[angular_translate]: https://github.com/PascalPrecht/angular-translate\n[pascalPrecht]: https://github.com/PascalPrecht\n\n[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/882c3bab5f5b2d7c63f79337a9a3688a \"githalytics.com\")](http://githalytics.com/firehist/grunt-angular-translate)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-translate%2Fgrunt-angular-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangular-translate%2Fgrunt-angular-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-translate%2Fgrunt-angular-translate/lists"}