{"id":20937135,"url":"https://github.com/danibram/translator-helper-dustjs","last_synced_at":"2026-04-29T02:05:52.870Z","repository":{"id":28876809,"uuid":"32401146","full_name":"danibram/translator-helper-dustjs","owner":"danibram","description":"A little helper for dustjs to load your i18n translations in a dynamic way ","archived":false,"fork":false,"pushed_at":"2016-05-19T14:07:47.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T10:02:59.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/danibram/translator-helper-dustjs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danibram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-17T15:14:41.000Z","updated_at":"2016-05-11T17:39:02.000Z","dependencies_parsed_at":"2022-08-02T12:20:32.981Z","dependency_job_id":null,"html_url":"https://github.com/danibram/translator-helper-dustjs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/danibram/translator-helper-dustjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibram%2Ftranslator-helper-dustjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibram%2Ftranslator-helper-dustjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibram%2Ftranslator-helper-dustjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibram%2Ftranslator-helper-dustjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danibram","download_url":"https://codeload.github.com/danibram/translator-helper-dustjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibram%2Ftranslator-helper-dustjs/sbom","scorecard":{"id":319119,"data":{"date":"2025-08-11","repo":{"name":"github.com/danibram/translator-helper-dustjs","commit":"5000c73238dd511406180c8ff8e802e13bbae834"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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"}}]},"last_synced_at":"2025-08-18T00:57:11.245Z","repository_id":28876809,"created_at":"2025-08-18T00:57:11.245Z","updated_at":"2025-08-18T00:57:11.245Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"online","status_checked_at":"2026-04-29T02:00:06.602Z","response_time":110,"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-18T22:33:08.168Z","updated_at":"2026-04-29T02:05:52.817Z","avatar_url":"https://github.com/danibram.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# translator-helper-dustjs  [![Dependency Status](https://david-dm.org/danibram/translator-helper-dustjs.svg)](https://david-dm.org/danibram/translator-helper-dustjs)\n\nA little helper for dustjs to load i18n translations dynamically, with variables, based on https://github.com/mikesparr/Kraken_Example_i18n_Helper. Feel free to comment, copy or burn this code =P\n\n### New version supporting kraken 2. Check the 1.x for kraken 1 and 2.x for kraken 2.\n\n## Getting Started\nInstall the module with: `npm install translator-helper-dustjs`\n\nIts important to add a global variable to pass the kraken config to the module, i put in my index.js this after load kraken config\n```javascript\n/* ... */\napp = module.exports = express();\napp.use(kraken(options));\nglobal._app = app;\n/* ... */\n```\n\n##### KrakenJs 2\n\n```javascript\n/* ... */\n//In your config file, using tag 2.x\n    \"dust\": {\n        \"helpers\": [\n            \"dust-makara-helpers\",\n            \"translator-helper-dustjs\"\n        ]\n    },\n/* ... */\n```\n\n##### KrakenJs 1\n\n```javascript\n/* ... */\n// On your controllers file or wethever you load dust, add the helper like another, using tag 1.x\nvar dust = require('dustjs-linkedin');\nrequire('dustjs-helpers');\nrequire('translator-helper-dustjs');\n/* ... */\n```\n\n\n## Examples\nOn your properties files (index.properties)\n```javascript\n/* ... */\njobs.acme.title=Company Acme\njobs.hernes.title=Company Hernes\n/* ... */\n```\n\nOn your dust template files, pass to the t helper the key (jobs.acme.title -\u003e companyName = \"acme\"), the properties file (index in this case), and the lang (in my case \"EN_us\")\n```javascript\n/* ... */\n{@t key=\"jobs.{companyName}.title\" bundle=\"index\" lang=\"{lang}\" /}\n/* ... */\n```\nAnd the result will be\n```javascript\n/* ... */\nCompany Acme\n/* ... */\n```\n\n## Contributing\nPlease fell free to contribute, i´m not a real expert of dustJs\n\n## Release History\n###(2.x)\n\n- Supporting krakenJs 2\n\n###(1.x)\n\n- Supporting krakenJs 1\n\n## License\nCopyright (c) 2015 Daniel Biedma Ramos\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanibram%2Ftranslator-helper-dustjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanibram%2Ftranslator-helper-dustjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanibram%2Ftranslator-helper-dustjs/lists"}