{"id":20328047,"url":"https://github.com/Celtian/ngx-translate-version","last_synced_at":"2025-05-08T01:30:53.399Z","repository":{"id":153256997,"uuid":"628674449","full_name":"Celtian/ngx-translate-version","owner":"Celtian","description":"Angular module that provides version to your language files","archived":false,"fork":false,"pushed_at":"2024-10-18T21:31:33.000Z","size":2046,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T16:05:35.205Z","etag":null,"topics":["angular","library"],"latest_commit_sha":null,"homepage":"https://celtian.github.io/ngx-translate-version","language":"TypeScript","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/Celtian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-16T17:18:50.000Z","updated_at":"2024-10-18T21:30:28.000Z","dependencies_parsed_at":"2024-10-23T07:27:25.480Z","dependency_job_id":null,"html_url":"https://github.com/Celtian/ngx-translate-version","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.4814814814814815,"last_synced_commit":"583f76944813eb857016bef6d1637a0c29c6e161"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-translate-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-translate-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-translate-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-translate-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Celtian","download_url":"https://codeload.github.com/Celtian/ngx-translate-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224684654,"owners_count":17352585,"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":["angular","library"],"created_at":"2024-11-14T20:00:49.974Z","updated_at":"2025-05-08T01:30:53.386Z","avatar_url":"https://github.com/Celtian.png","language":"TypeScript","funding_links":[],"categories":["Development Utilities"],"sub_categories":["Internationalization"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Celtian/ngx-translate-version\" target=\"blank\"\u003e\u003cimg src=\"assets/logo.svg?sanitize=true\" alt=\"\" width=\"120\"\u003e\u003c/a\u003e\n  \u003ch1 align=\"center\"\u003eNgxTranslateVersion\u003c/h1\u003e\n\u003c/p\u003e\n\n[![npm version](https://badge.fury.io/js/ngx-translate-version.svg)](https://badge.fury.io/js/ngx-translate-version)\n[![Package License](https://img.shields.io/npm/l/ngx-translate-version.svg)](https://www.npmjs.com/ngx-translate-version)\n[![NPM Downloads](https://img.shields.io/npm/dm/ngx-translate-version.svg)](https://www.npmjs.com/ngx-translate-version)\n[![Snyk](https://snyk.io/advisor/npm-package/ngx-translate-version/badge.svg)](https://snyk.io/advisor/npm-package/ngx-translate-version)\n[![stars](https://badgen.net/github/stars/celtian/ngx-translate-version)](https://github.com/celtian/ngx-translate-version/)\n[![forks](https://badgen.net/github/forks/celtian/ngx-translate-version)](https://github.com/celtian/ngx-translate-version/)\n[![HitCount](http://hits.dwyl.com/celtian/ngx-translate-version.svg)](http://hits.dwyl.com/celtian/ngx-translate-version)\n\n\u003e Angular module that provides version to your language files\n\n\u003e ✓ _Angular 19 compatible_\n\nHere's the [demo](http://celtian.github.io/ngx-translate-version/)\n\n## Install\n\n1. Use yarn (or npm) to install the package\n\n```terminal\nyarn add ngx-translate-version\n```\n\n2. Add `provideTranslateVersion` into your config\n\n```typescript\nimport { NgxAppVersionModule } from 'ngx-app-version';\n\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    // ...\n    provideTranslateVersion(routes, {\n      defaultLanguage: 'en',\n      version: '1.0.0',\n      pathLocales: 'assets/locales.json',\n      pathI18n: (lang) =\u003e `assets/i18n/${lang}.json`\n    })\n  ]\n};\n```\n\nor module\n\n```typescript\n  import { NgxAppVersionModule } from 'ngx-app-version';\n\n  @NgModule({\n   // ...\n   providers: [\n     // ...\n     provideTranslateVersion(routes, {\n       defaultLanguage: 'en',\n       version: '1.0.0',\n       pathLocales: 'assets/locales.json',\n       pathI18n: (lang) =\u003e `assets/i18n/${lang}.json`\n     })\n   ]\n  })\n```\n\n## Options\n\n| Option              | Type                     | Default                              | Description                           |\n| ------------------- | ------------------------ | ------------------------------------ | ------------------------------------- |\n| **defaultLanguage** | string                   | `en`                                 | Default language of your appliceation |\n| **version**         | string                   | `0.0.0`                              | Version of your application           |\n| **pathLocales**     | string                   | `assets/locales.json`                | Path to file with locales             |\n| **pathI18n**        | (lang: string) =\u003e string | `(lang) =\u003e assets/i18n/${lang}.json` | Path to faile with translations       |\n\n## Compatibility\n\n| Angular | ngx-translate-version | Install                            |\n| ------- | --------------------- | ---------------------------------- |\n| 19      | 4.x                   | `yarn add ngx-translate-version`   |\n| 18      | 3.x                   | `yarn add ngx-translate-version@3` |\n| 17      | 2.x                   | `yarn add ngx-translate-version@2` |\n| 16      | 1.x                   | `yarn add ngx-translate-version@1` |\n| 15      | 0.x                   | `yarn add ngx-translate-version@0` |\n\n## Peer Dependencies\n\n```\n  \"@angular/common\": \"\u003e=18\",\n  \"@angular/core\": \"\u003e=18\",\n  \"@gilsdav/ngx-translate-router-http-loader\": \"\u003e=2\",\n  \"@gilsdav/ngx-translate-router\": \"\u003e=7\",\n  \"@ngx-translate/core\": \"\u003e=15\",\n  \"@ngx-translate/http-loader\": \"\u003e=8\"\n```\n\n## License\n\nCopyright \u0026copy; 2023 - 2025 [Dominik Hladik](https://github.com/Celtian)\n\nAll contents are licensed under the [MIT license].\n\n[mit license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCeltian%2Fngx-translate-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCeltian%2Fngx-translate-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCeltian%2Fngx-translate-version/lists"}