Title: Feature Request [i18n]: Support providing TRANSLATIONS at NgModule level · Issue #11431 · angular/angular · GitHub
Open Graph Title: Feature Request [i18n]: Support providing TRANSLATIONS at NgModule level · Issue #11431 · angular/angular
X Title: Feature Request [i18n]: Support providing TRANSLATIONS at NgModule level · Issue #11431 · angular/angular
Description: Current behavior Currently translations can only be provided at bootstrap using TRANSLATIONS. This makes it difficult for feature / component modules to ship translations xlf files along with the npm module: All xlf files from all featur...
Open Graph Description: Current behavior Currently translations can only be provided at bootstrap using TRANSLATIONS. This makes it difficult for feature / component modules to ship translations xlf files along with the n...
X Description: Current behavior Currently translations can only be provided at bootstrap using TRANSLATIONS. This makes it difficult for feature / component modules to ship translations xlf files along with the n...
Opengraph URL: https://github.com/angular/angular/issues/11431
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request [i18n]: Support providing TRANSLATIONS at NgModule level","articleBody":"**Current behavior**\nCurrently translations can only be provided at bootstrap using TRANSLATIONS. This makes it difficult for feature / component modules to ship translations xlf files along with the npm module: All xlf files from all feature modules (for a specific locale) will have to be merged before bootstrap into a single value for TRANSLATIONS.\n\n**Expected behavior**\nIdeally we could provide a TRANSLATIONS value for every NgModule. This would have to be per locale, possibly as an Url pattern, something like \n`\n@NgModule({\n // ... omitted \n translationUrl: './messages.{locale}.xlf',\n // ... omitted \n})\nexport class MyFeatureComponent { }\n`\nbut I'm not familiar enough with the compiler to understand all implications of this.\n\n**Reproduction of the problem**\nPackage an component with localization and corresponding messages.xlf into an npm module.\n\n**What is the motivation / use case for changing the behavior?**\nLarger codebases like to reuse common, localized components in multiple applications to provide base components with a common style, etc. Having to merge the localization data from all modules in a pre-build step is possible, but figuring out which components are actually used and resolving the corresponding paths is tricky.\n\n**Please tell us about your environment:**\nWin10, corporate (with proxy..)\n- **Angular version:** ^2.0.0-rc.6\n- **Browser:** [all] \n- **Language:** [all]\n","author":{"url":"https://github.com/paumayr","@type":"Person","name":"paumayr"},"datePublished":"2016-09-08T07:48:23Z","url":"https://github.com/angular/angular/issues/11431"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:242e521c-b683-b229-a999-95420f94cbca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D874:2DBB21:1D456A6:27031BC:6B016E00 |
| html-safe-nonce | 7c9129f0036f1f3ceda2cc8799db11783db879cf14581da15a123aac332602c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODc0OjJEQkIyMToxRDQ1NkE2OjI3MDMxQkM6NkIwMTZFMDAiLCJ2aXNpdG9yX2lkIjoiODg2OTQxNTAyNjM0ODM1NTA3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f6fc87ecd7f0f1f2b660396fe33fe2dd29101538db142f06c7657e6203219cc2 |
| hovercard-subject-tag | issue:175687310 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/11431/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86fbd80ee6bd4e0eda0cde9f35d8ed4e2d1690fa1ba6711f1fd41e309f4466e5/angular/angular/issues/11431 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86fbd80ee6bd4e0eda0cde9f35d8ed4e2d1690fa1ba6711f1fd41e309f4466e5/angular/angular/issues/11431 |
| og:image:alt | Current behavior Currently translations can only be provided at bootstrap using TRANSLATIONS. This makes it difficult for feature / component modules to ship translations xlf files along with the n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paumayr |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width