{"id":21584903,"url":"https://github.com/gilsdav/universal-localize-module-loader","last_synced_at":"2025-04-10T20:05:19.456Z","repository":{"id":57251743,"uuid":"128479110","full_name":"gilsdav/universal-localize-module-loader","owner":"gilsdav","description":"(DEPCRECATED since Angular 8) Translate lazy-loaded routes using localize-router server-side using Universal","archived":false,"fork":false,"pushed_at":"2024-08-28T00:01:40.000Z","size":16,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T17:52:29.087Z","etag":null,"topics":["angular","lazyload","localize-router","ngx-translate"],"latest_commit_sha":null,"homepage":"","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/gilsdav.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}},"created_at":"2018-04-06T23:14:27.000Z","updated_at":"2019-12-14T20:51:11.000Z","dependencies_parsed_at":"2022-09-04T23:10:40.638Z","dependency_job_id":null,"html_url":"https://github.com/gilsdav/universal-localize-module-loader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilsdav%2Funiversal-localize-module-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilsdav%2Funiversal-localize-module-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilsdav%2Funiversal-localize-module-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilsdav%2Funiversal-localize-module-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilsdav","download_url":"https://codeload.github.com/gilsdav/universal-localize-module-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288090,"owners_count":21078848,"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","lazyload","localize-router","ngx-translate"],"created_at":"2024-11-24T15:08:17.603Z","updated_at":"2025-04-10T20:05:19.435Z","avatar_url":"https://github.com/gilsdav.png","language":"TypeScript","readme":"# universal-localize-module-loader\n\n***DEPRECATED since Angular 8***\n\nTranslate lazy-loaded routes using localize-router server-side using Universal.\n\nIf you use Universal and localize-router, you are facing a problem: main routes are translated but not lazyloaded routes.\nThis module loader will help you.\n\n## Choose the appropriate version\n| Condition | Version |\n| --- | --- |\n| If you use `ngx-translate-router`| `1.0.0-ntr` |\n| If you use `localize-router` \u003e=2 with `Angular` \u003e= 7 | `1.0.1` |\n| If you use `localize-router` | `1.0.0` |\n\n## How to install\n\nUse this command : `npm install --save localize-router-lazy-universal-module-loader`\n\n## How to use\n\n### Before\nIf you use Universal, your have a `app.server.module.ts` that propably looks like this:\n\n```\nimport { NgModule, NgModuleFactoryLoader } from '@angular/core';\nimport { ServerModule } from '@angular/platform-server';\nimport { ModuleMapLoaderModule } from '@nguniversal/module-map-ngfactory-loader';\n\nimport { AppModule } from './app.module';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  imports: [\n    AppModule,\n    ServerModule,\n    ModuleMapLoaderModule\n  ],\n  providers: [\n    // Add universal-only providers here\n  ],\n  bootstrap: [ AppComponent ],\n})\nexport class AppServerModule {}\n\n```\n\n### After\nAdd the provider `LazyUniversalModuleLoaderProvider` in your `app.server.module.ts`.\n\nResult will look like this:\n```\nimport { NgModule, NgModuleFactoryLoader } from '@angular/core';\nimport { ServerModule } from '@angular/platform-server';\nimport { ModuleMapLoaderModule } from '@nguniversal/module-map-ngfactory-loader';\nimport { LazyUniversalModuleLoaderProvider } from 'localize-router-lazy-universal-module-loader';\n\nimport { AppModule } from './app.module';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  imports: [\n    AppModule,\n    ServerModule,\n    ModuleMapLoaderModule\n  ],\n  providers: [\n    // Add universal-only providers here\n    LazyUniversalModuleLoaderProvider\n  ],\n  bootstrap: [ AppComponent ],\n})\nexport class AppServerModule {}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilsdav%2Funiversal-localize-module-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilsdav%2Funiversal-localize-module-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilsdav%2Funiversal-localize-module-loader/lists"}