{"id":28466607,"url":"https://github.com/locize/locize-lastused","last_synced_at":"2025-09-04T15:42:52.422Z","repository":{"id":43061301,"uuid":"115929865","full_name":"locize/locize-lastused","owner":"locize","description":"Using API lastUsed using in node.js, in the browser and for deno.","archived":false,"fork":false,"pushed_at":"2025-01-23T09:25:52.000Z","size":244,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-29T04:53:20.156Z","etag":null,"topics":["i18n","i18next","internationalization","l10n","localization","locize"],"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/locize.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-01-01T16:04:24.000Z","updated_at":"2025-01-23T09:25:56.000Z","dependencies_parsed_at":"2022-09-07T14:20:39.181Z","dependency_job_id":"7c67cbc0-e7b6-4e9b-ab91-db3d2fd3c321","html_url":"https://github.com/locize/locize-lastused","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":"0.26086956521739135","last_synced_commit":"b738dd131773089dc9dcd7efac8c5dc860ca222e"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/locize/locize-lastused","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Flocize-lastused","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Flocize-lastused/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Flocize-lastused/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Flocize-lastused/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/locize","download_url":"https://codeload.github.com/locize/locize-lastused/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Flocize-lastused/sbom","scorecard":{"id":596757,"data":{"date":"2025-08-11","repo":{"name":"github.com/locize/locize-lastused","commit":"503266c9528137072fd9611c9cd0373a716a8907"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"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":"Code-Review","score":0,"reason":"Found 0/30 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/locize/locize-lastused/node.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/locize/locize-lastused/node.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/node.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":"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"}}]},"last_synced_at":"2025-08-20T23:19:25.995Z","repository_id":43061301,"created_at":"2025-08-20T23:19:25.996Z","updated_at":"2025-08-20T23:19:25.996Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273632648,"owners_count":25140769,"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-09-04T02:00:08.968Z","response_time":61,"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":["i18n","i18next","internationalization","l10n","localization","locize"],"created_at":"2025-06-07T07:04:51.948Z","updated_at":"2025-09-04T15:42:52.413Z","avatar_url":"https://github.com/locize.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions](https://github.com/locize/locize-lastused/workflows/node/badge.svg)](https://github.com/locize/locize-lastused/actions?query=workflow%3Anode)\n[![npm version](https://img.shields.io/npm/v/locize-lastused.svg?style=flat-square)](https://www.npmjs.com/package/locize-lastused)\n\nThis is an i18next plugin or standalone script to be used for [locize](http://locize.com) service. It will update last used timestamps on reference keys (so only on your reference/source language) from your locize project using http requests.\n\n# Troubleshooting\n\n**Seems not working**\n\nPer default only `localhost` is allowed to send last used information (to avoid using this feature accidentally in production). If you're not using `localhost` during development you will have to set the `allowedHosts: ['your.domain.tld']` for the options.\n\n# Getting started\n\nSource can be loaded via [npm](https://www.npmjs.com/package/locize-lastused) or [downloaded](https://cdn.rawgit.com/locize/locize-lastused/master/locizeLastUsed.min.js) from this repo.\n\n```bash\n# npm package\n$ npm install locize-lastused\n```\n\n## Options\n\n**IMPORTANT** make sure you do not add your apiKey in the production build to avoid misuse by strangers\n\n```js\n{\n  // the id of your locize project\n  projectId: '[PROJECTID]',\n\n  // add an api key if you want to send missing keys\n  apiKey: '[APIKEY]',\n\n  // the reference language of your project\n  referenceLng: '[LNG]',\n\n  // version - defaults to latest\n  version: '[VERSION]',\n\n  // debounce interval to send data in milliseconds\n  debounceSubmit: 90000,\n\n  // hostnames that are allowed to send last used data\n  // please keep those to your local system, staging, test servers (not production)\n  allowedHosts: ['localhost']\n}\n```\n\n## Using with i18next\n\nOptions can be passed in by setting options.locizeLastUsed in i18next.init:\n\n```js\nimport i18next from 'i18next';\nimport locizeLastUsed from 'locize-lastused';\n// or\nconst i18next = require('i18next');\nconst locizeLastUsed = require('locize-lastused');\n\ni18next.use(locizeLastUsed).init({\n  locizeLastUsed: options\n});\n```\n\n- If you don't use a module loader it will be added to `window.locizeLastUsed`\n\n## Using without i18next\n\nDirectly call locizeLastUsed.init:\n\n```js\nimport locizeLastUsed from 'locize-lastused';\n\nlocizeLastUsed.init(options);\n```\n\nthen call used function with namespace and key:\n\n```js\nimport locizeLastUsed from 'locize-lastused';\n\nlocizeLastUsed.used('myNamespace', 'myKey.as.in.locize');\n```\n\n## TypeScript\n\nTo properly type the options, you can import the `LocizeLastusedOptions` interface and use it as a generic type parameter to the i18next's `init` method, e.g.:\n\n```ts\nimport i18n from 'i18next'\nimport LocizeLastusedPlugin, { LocizeLastusedOptions } from 'locize-lastused'\n\ni18n\n  .use(LocizeLastusedPlugin)\n  .init\u003cLocizeLastusedOptions\u003e({\n    locizeLastUsed: {\n      // locize lastused options\n      projectId: '1234123424234',\n      apiKey: 'my-api-key'\n    },\n\n    // other i18next options\n  })\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocize%2Flocize-lastused","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocize%2Flocize-lastused","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocize%2Flocize-lastused/lists"}