{"id":25968903,"url":"https://github.com/s3c4/lazy","last_synced_at":"2026-05-21T05:05:01.564Z","repository":{"id":192654961,"uuid":"526546060","full_name":"s3c4/lazy","owner":"s3c4","description":"An Angular example of lazy loading and translate en|ro languages.","archived":false,"fork":false,"pushed_at":"2022-11-10T16:02:58.000Z","size":231,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-05T06:10:00.458Z","etag":null,"topics":["angular","lazy-loading","translate","typescript"],"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/s3c4.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}},"created_at":"2022-08-19T09:36:16.000Z","updated_at":"2023-09-05T06:10:04.381Z","dependencies_parsed_at":null,"dependency_job_id":"e8eb6f16-a8b8-42a9-9904-52bc44ff6d8d","html_url":"https://github.com/s3c4/lazy","commit_stats":null,"previous_names":["s3c4/lazy"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3c4%2Flazy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3c4%2Flazy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3c4%2Flazy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3c4%2Flazy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s3c4","download_url":"https://codeload.github.com/s3c4/lazy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241934460,"owners_count":20044818,"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","lazy-loading","translate","typescript"],"created_at":"2025-03-04T22:35:40.186Z","updated_at":"2026-05-21T05:04:56.507Z","avatar_url":"https://github.com/s3c4.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lazy\nAn angular repository for lazy loading and translate en|ro languages.\n\n## Development server\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.5.\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.\n\n## Lazy Loading\n- using the routes and module of the components for each page to create the lazy loading module;\n- the root routes are defined on app level and are lazy loading the module;\n- each page(component) have child route to load the specific component when the lazy module is loaded on the root routes level;\n- the lazy loading modules can be tracked under inspect borwser/networks. Whenever the page is changed the module is lazy load;\n\n## Translate\nTranslate service:\n- translate is using the Tranlate server to pick up the language selected and the send it with an BehaviorSubject (RxJs);\n\nTranslate pipe:\n- translate pipe subscribe to the BehaivourSubject from Translate Service and pick up the language when is changed in real time;\n- the translate pipe receive the path of the translate file based on the args send from template;\n- the pipe is choosing the file based to use for translation based on the language + path of the file;\n- the translate pipe receive the value from the template. This value is used to deep into the json object to get the translated;\n\nRoute translate:\n- the routes translate is done normaly having 2 arrays of the routes. Two differents path are pointing to the same lazy loading module.\n- the routes have translation in the app level. When the languaged is changed the router links are changed to match the languagge routing.\n\n\n# License\n\n[MIT](https://github.com/s3c4/lazy/blob/master/LICENSE) © [Andrei Secareanu](https://github.com/s3c4)\n\nMade with :blue_heart: from London","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3c4%2Flazy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs3c4%2Flazy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3c4%2Flazy/lists"}