dashkan / ng-electron-devkit

Angular Webpack Build Facade for Electron
MIT License
12 stars 3 forks source link

Single Electron app supporting multiple languges with Angular i18n #2

Closed wartab closed 6 years ago

wartab commented 6 years ago

Hello there,

I have been looking around for a proper system to develop Angular apps for the browser and Electron at once. This package seems to be the cleanest approach, but I was wondering if there is an "easy" way to include all languages defined in our Angular application within the final electron build.

As I see it currently, it seems like I'd need to generate one build per language.

The use case would be to retrieve the locale (https://github.com/sindresorhus/os-locale) of the user running Electron in order to determine which transalted app to load.

Angular itself is also limited in a similar way forcing you to generate one build per language.

dashkan commented 6 years ago

@wartab ,

Just keep in mind that this package currently does not target electron main process. Your application needs to handle localization for the electron main process.

I do want to want to add main process build and angular schematics by the end of the year.

I don't have much experience w/ internationalization. I would post to StackOverflow to get better advice or alternatives to Angular i8n.