Translation JSONs are now generated at build time, removing the necessity to manually run xliff-to-json

- added postbuild.mjs to facilitate this
- all ng build --prod's have been replaced with npm run build
This commit is contained in:
Isaac Abadi
2021-09-29 00:36:56 -06:00
parent c5f7cd1874
commit f0c3837ee5
23 changed files with 122 additions and 3125 deletions

View File

@@ -233,6 +233,10 @@ export class PostsService implements CanActivate {
return this.http.get(`./assets/${name}`);
}
getSupportedLocales() {
return this.http.get('./assets/i18n/supported_locales.json');
}
setConfig(config) {
return this.http.post(this.path + 'setConfig', {new_config_file: config}, this.httpOptions);
}