storefront-angular-starter icon indicating copy to clipboard operation
storefront-angular-starter copied to clipboard

i18n support

Open michaelbromley opened this issue 6 years ago • 1 comments

The strings need to be localizable. I suggest we use the same approach as with the admin-ui, i.e. ngx-translate + ICU message format JSON files.

Should expose the translate pipe via the VendureStorefrontModule for use in the consuming app, so it can use the same i18n infrastructure as the library.

michaelbromley avatar Mar 25 '19 09:03 michaelbromley

Started implementing the above plan but ran into an issue where the ng cli does not yet support copying assets from a library. I need this for the translation files of ngx-translate.

See https://github.com/angular/angular-cli/issues/11071. From the discussion there it looks like it may be possible with Angular v8, but I cannot find any documentation about how.

This issue will be put on hold until it is clear how to copy the library assets.

michaelbromley avatar Apr 23 '19 13:04 michaelbromley