{"id":20887016,"url":"https://github.com/fleetbase/intl-lint","last_synced_at":"2025-12-26T17:03:18.937Z","repository":{"id":218854087,"uuid":"747510587","full_name":"fleetbase/intl-lint","owner":"fleetbase","description":"Internationalization translation file linter script for Fleetbase Extensions and Application","archived":false,"fork":false,"pushed_at":"2024-01-24T06:14:44.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-07T17:59:43.061Z","etag":null,"topics":[],"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/fleetbase.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}},"created_at":"2024-01-24T04:23:20.000Z","updated_at":"2024-01-24T05:17:36.000Z","dependencies_parsed_at":"2024-01-24T06:50:19.368Z","dependency_job_id":null,"html_url":"https://github.com/fleetbase/intl-lint","commit_stats":null,"previous_names":["fleetbase/intl-lint"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fintl-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fintl-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fintl-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fintl-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fleetbase","download_url":"https://codeload.github.com/fleetbase/intl-lint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243268088,"owners_count":20263803,"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":[],"created_at":"2024-11-18T08:18:49.169Z","updated_at":"2025-12-26T17:03:18.846Z","avatar_url":"https://github.com/fleetbase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  @fleetbase/intl-lint\n\n### Description\n\n`@fleetbase/intl-lint` is a Node.js script designed for Ember projects, aimed at validating internationalization (i18n) keys. The script checks that all i18n keys used in JavaScript and Handlebars files of an Ember project are defined in the specified YAML translation file. This validation helps ensure that there are no missing translations in the application, thereby preventing runtime errors and improving the overall quality of internationalization efforts.\n\n### Features\n\n - Recursively processes JavaScript (.js) and Handlebars (.hbs) files in the specified Ember project directory.\n - Extracts translation keys using tailored regular expressions.\n - Checks if each extracted key exists in the specified YAML translation file.\n - Logs missing translation keys and optionally throws an error.\n - Silent mode to suppress error throwing and complete the script execution even if missing keys are found.\n\n### Installation\n\nTo install `@fleetbase/intl-lint`, run the following command:\n\n```bash\nnpm install @fleetbase/intl-lint\n```\n\nOr, if you are using pnpm, you can install it using:\n\n```bash\npnpm add @fleetbase/intl-lint\n```\n\n### Usage\n\nOnce installed, `@fleetbase/intl-lint` can be run directly from the command line or used as a Node.js module.\n\n#### Command Line Interface\n\nRun the script in your project's root directory:\n\n```bash\nfleetbase-intl-lint --path \"./path-to-ember-project\" --translation-path \"./path-to-translation.yaml\"\n```\nOptional flags:\n- `--silent` or `-s`: Runs the script in silent mode. The script will not throw an error if missing translation keys are found.\n- `--path` or `-p`: Specifies the path to the Ember project. Default is ./app.\n- `--translation-path`: Specifies the path to the YAML translation file. Default is ./translations/en-us.yaml.\n\n#### As a Node.js Module\n\nYou can also require `@fleetbase/intl-lint` in your Node.js script and use it programmatically:\n\n```javascript\nconst lint = require('@fleetbase/intl-lint');\n\nlint({\n\tsilent: true, // or false\n\tpath: './path-to-ember-project',\n\ttranslationPath: './path-to-translation.yaml',\n});\n```\n\n### Authors\n\n- Fleetbase Pte Ltd hello@fleetbase.io\n- Ronald A. Richardson ron@fleetbase.io\n\n### Contact\n\nFor issues or questions regarding `@fleetbase/intl-lint`, feel free to contact the authors or raise an issue on the project repository.\n\n### License\n\n`@fleetbase/intl-lint` is open-source and distributed under the MIT license. See the LICENSE file in the repository for full license text.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Fintl-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffleetbase%2Fintl-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Fintl-lint/lists"}