tomastrajan / angular-ngrx-material-starter

Angular, NgRx, Angular CLI & Angular Material Starter Project
https://tomastrajan.github.io/angular-ngrx-material-starter
MIT License
2.82k stars 918 forks source link

Regenerating .babel file. #426

Closed DinoSourcesRex closed 5 years ago

DinoSourcesRex commented 5 years ago

Hey folks,

I'm new to the project so apologise if I'm asking this in the wrong place (where should I post questions in the future?).

I've not really done translation from angular before so I just want to know what the process for generating the .babel files is. I couldn't find anything regarding translations in the docs for the projects.

Just a few things I want to know

  1. What are the .babel files being used for
  2. How do I regenerate them (say if I add / remove a language)
  3. Do they need altering if I simply add / remove new translations (not while languages, just single lines).

Thanks.

DinoSourcesRex commented 5 years ago

I just had a chance to look at this.

So. To answer my own questions.

  1. .babel files are used by BabelEdit. It is their proprietary for use with their translation browsing app.
  2. You "regenerate" them, if that is even an applicable word in this case, by loading them into BabelEdit and making changes to the translations there - then saving them.
  3. They do need altering to add / remove translations, though it seemed smart enough to pick up on the translations I added to one of my json files.