Open fkolar opened 4 years ago
There is no real builder support for i18n as it process during AOT compilation, but we will probbly have separate command that we will execute as part of the build chain. We can get some idea from here:
https://github.com/angular/angular/blob/master/packages/compiler-cli/src/transformers/program.ts
const bundle = this.compiler.emitMessageBundle(this.analyzedModules, locale);
i18nExtract(format, file, this.host, this.options, bundle);
Possibly we can leverage a pre AOT stage in the build pipeline?
I'm submitting a...
Current behavior
Currently MetaUI relies on the Runtime i18n (something similar to
ngx-translate
used to work) and have specific syntax to mark strings inside OSS to be translatable.Expected behavior
Extend Builder API to include also the also OSS files. This is for "extract strings to files" and "Compile" process