-
Notifications
You must be signed in to change notification settings - Fork 134
V2 Scrap Notes
Richard Cox edited this page Feb 1, 2018
·
1 revision
-
Localisation
- Angular i18n
- Official yet unfinished
- Does NOT support translations in code, only templates (expected in 5.X time frame before 6.0 in March 2018)
- However does support pluralisation AND basic substitution...
<span i18n>The hero is {gender, select, m {male} f {female}}</span>
gender is a variable, select is a key word and m/f values with what to show
- Worked on by guy from angular-translate
- Basically, requires multiple builds of app served alongside each other, aka
/en
,/fr
,/es
, etc - Translation files are some kind of xml i18n standard (there's online/offline apps for translators).
- Official yet unfinished
- ngx-translate
- Almost port of angular-translate
- Designed to plug the gap until official support completed
- Worked on by the guy from angular-translate
- Will probably be depreciated when angular i18n is up to scratch. From creator...
The idea behind this lib has always been to provide support for i18n until Angular catches up, after that this lib will probably be deprecated.
- See https://github.com/ngx-translate/core/issues/495 for angular vs ngx-translate
- Angular i18n
-
Plugin architecture
- Local plugins, backend plugins, combined plugins?
- Build or run time adoption?
- Modules/Lazy loaded modules in angular 2+
- https://stackoverflow.com/questions/41438198/implementing-a-plugin-architecture-plugin-system-pluggable-framework-in-angu
- https://www.reddit.com/r/Angular2/comments/71d5z7/architecture_ideas_for_a_massive_application/
- Lazy loaded modules
- Done via adding to route, must be known at build time. Can they be done any other way to support non-route plugins?
- Can preload lazy loading modules. https://vsavkin.com/angular-router-preloading-modules-ba3c75e424cb
- Modularised redux
-
Theming