1 = Evergreen Angular App Cheatsheet
6 ---------------------------------------------------------------------
9 ng lint # check code formatting
10 npm run test # unit tests
11 ng build --watch # compile dev mode
12 ng build --prod # compile production mode
13 ---------------------------------------------------------------------
15 == OPTIONAL: Adding a Locale
17 * Using cs-CZ as an example.
18 * A cs-CZ configuration is supplied by default. Additional configs
19 must be added where needed.
20 * Currently translation builds are only available on --prod build mode.
21 * Uncomment the locale lines in eg_vhost.conf and restart apache.
22 * TODO: expand docs on package.json file changes required to add locales.
24 === Exporting Source Strings
27 ---------------------------------------------------------------------
28 npm run export-strings
29 ---------------------------------------------------------------------
31 * Then upload the messages.xmb file to the translation service
33 === Import and Build the Translation
35 1. Edit the "locales" array ./src/environments/environment.prod.ts to
37 2. Export translations as ".XTB" files from translation service.
38 3. Put the file in src/locale/messages.cs-CZ.xtb
39 4. Build the application for the selected locale by running:
41 ---------------------------------------------------------------------
43 ---------------------------------------------------------------------