{"id":22994138,"url":"https://github.com/idrinth-api-bench/typescript-language-from-yaml","last_synced_at":"2025-08-13T22:31:24.720Z","repository":{"id":231268152,"uuid":"781313996","full_name":"idrinth-api-bench/typescript-language-from-yaml","owner":"idrinth-api-bench","description":"a typescript solution for translations","archived":false,"fork":false,"pushed_at":"2025-08-04T20:49:43.000Z","size":76,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"the-one","last_synced_at":"2025-08-04T23:08:37.263Z","etag":null,"topics":["language","translation","typescript","yaml"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/idrinth-api-bench.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,"zenodo":null}},"created_at":"2024-04-03T06:34:35.000Z","updated_at":"2025-01-24T23:15:44.000Z","dependencies_parsed_at":"2024-04-05T08:37:33.480Z","dependency_job_id":"7d2339b0-0ea6-4dc6-8710-50d255b51b29","html_url":"https://github.com/idrinth-api-bench/typescript-language-from-yaml","commit_stats":null,"previous_names":["idrinth/typescript-language-from-yaml"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/idrinth-api-bench/typescript-language-from-yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrinth-api-bench%2Ftypescript-language-from-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrinth-api-bench%2Ftypescript-language-from-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrinth-api-bench%2Ftypescript-language-from-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrinth-api-bench%2Ftypescript-language-from-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idrinth-api-bench","download_url":"https://codeload.github.com/idrinth-api-bench/typescript-language-from-yaml/tar.gz/refs/heads/the-one","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrinth-api-bench%2Ftypescript-language-from-yaml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270329037,"owners_count":24565770,"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-08-13T02:00:09.904Z","response_time":66,"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":["language","translation","typescript","yaml"],"created_at":"2024-12-15T05:17:11.935Z","updated_at":"2025-08-13T22:31:24.418Z","avatar_url":"https://github.com/idrinth-api-bench.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @idrinth/typescript-language-from-yaml\n\nThis small project handles the conversion of transslation files from yaml to typescript. Install it and run the command `itlfy` to use it.\n\n## check\n\nThe check command will check if the yaml files in your current working directory's `language` folder are valid and match. It  will error for unparseable files and keys not available in english, while  warning if keys are missing in other languages.\n\n`ilfy check` or `itlfy chheck root-folder-name`\n\n## generate\n\nGenerate provides typescript language files according to your specification. It only works in your current  working directory's `language` folder and will output to `ssrc/locales` by default.\n\nOptions:\n\n- `--strict-types` apply strict types, so that typescript will error on build if the structures mismatch\n- `--verbatim-module-syntax` will export the type as a named export instead of a default one\n- `--simplified-hash-map` will convert the multi tiered object to a single level hash map for speed reasons.\n- `--inject-default-language` will create a file based on the default language. Only works with `--simplified-hash-map` active at the same time.\n- `--split` splits  the language files at the top level keys. This leads to smaller files when using dynamic imports. Usually you want `--no-translations-file` as well in case of splitting.\n- `--no-translations-file` disables the  creation of a translation object containing all languages\n\n## watch\n\nWatching will watch one or more language folders and rebuild  the typescript files whenever the yaml files change.If you don't give it a root folder, it will assume the current working directory.\n\n- `ilfy watch rootfolder1 rootfolder2`\n\n## init\n\nGenerates a configuration file with the current values for  the given folder or folders.\n\n## configuration\n\nuse a `.idrinth-typesscript-language-from-yaml.yml` file in the root of your project to configure the tool with defaults that can be overwritten by the command line.\n\n```yaml\nhasNoTranslationsFile: false\nisSplit: false\noriginDirectory: language\nisFailOnWarning: false\ntargetDirectory: src/locales\nisStrictTypes: false\nisVerbatimModuleSyntax: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidrinth-api-bench%2Ftypescript-language-from-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidrinth-api-bench%2Ftypescript-language-from-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidrinth-api-bench%2Ftypescript-language-from-yaml/lists"}