{"id":26811251,"url":"https://github.com/nucleartux/i18next-scanner-typescript","last_synced_at":"2025-04-23T16:42:48.332Z","repository":{"id":57270472,"uuid":"171340041","full_name":"nucleartux/i18next-scanner-typescript","owner":"nucleartux","description":"Typescript transform for i18next-scanner","archived":false,"fork":false,"pushed_at":"2024-05-22T13:46:10.000Z","size":79,"stargazers_count":36,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T01:38:14.413Z","etag":null,"topics":["i18n","i18next","i18next-scanner","react"],"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/nucleartux.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":"2019-02-18T19:04:50.000Z","updated_at":"2024-11-19T10:17:41.000Z","dependencies_parsed_at":"2024-05-22T14:54:38.527Z","dependency_job_id":"03b511a8-3b10-4a6f-8847-bcd2576957f9","html_url":"https://github.com/nucleartux/i18next-scanner-typescript","commit_stats":{"total_commits":24,"total_committers":5,"mean_commits":4.8,"dds":"0.20833333333333337","last_synced_commit":"85c26cdf323523f55a249141fedc4fa51aea1146"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucleartux%2Fi18next-scanner-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucleartux%2Fi18next-scanner-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucleartux%2Fi18next-scanner-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucleartux%2Fi18next-scanner-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nucleartux","download_url":"https://codeload.github.com/nucleartux/i18next-scanner-typescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250472049,"owners_count":21436071,"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":["i18n","i18next","i18next-scanner","react"],"created_at":"2025-03-30T01:38:07.126Z","updated_at":"2025-04-23T16:42:48.315Z","avatar_url":"https://github.com/nucleartux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## i18next-scanner-typescript\n\nTypescript support for [i18next-scanner](https://github.com/i18next/i18next-scanner/)\n\n## Install\n\n```bash\nyarn add -D i18next-scanner-typescript\n```\n\n## Usage\n\n```js\nconst typescriptTransform = require('i18next-scanner-typescript');\n\nmodule.exports = {\n  options: {\n    func: {\n      // don't pass ts or tsx here!\n      extensions: ['.js', '.jsx'],\n    },\n    trans: {\n      // don't pass ts or tsx here!\n      extensions: ['.js', '.jsx'],\n    },\n  },\n  // your i18next-scanner config\n  // ...\n  transform: typescriptTransform(\n    // options\n    {\n      // default value for extensions\n      extensions: [\".ts\", \".tsx\"],\n      // optional ts configuration\n      tsOptions: {\n        target: \"es2017\",\n      },\n    },\n\n    // optional custom transform function\n    function customTransform(outputText, file, enc, done) {\n      // do something custom with the transpiled `outputText`\n      parser.parseTransFromString(outputText);\n      parser.parseFuncFromString(outputText);\n\n      done();\n    },\n  ),\n};\n```\n\nDouble check that you don't have TS extensions in the non-transform configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucleartux%2Fi18next-scanner-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnucleartux%2Fi18next-scanner-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucleartux%2Fi18next-scanner-typescript/lists"}