mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-27 15:10:55 +03:00
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:
@@ -81,6 +81,13 @@ export class SettingsComponent implements OnInit {
|
||||
|
||||
const tab = this.route.snapshot.paramMap.get('tab');
|
||||
this.tabIndex = tab && this.TAB_TO_INDEX[tab] ? this.TAB_TO_INDEX[tab] : 0;
|
||||
|
||||
this.postsService.getSupportedLocales().subscribe(res => {
|
||||
if (res && res['supported_locales']) {
|
||||
this.supported_locales = ['en', 'en-GB']; // required
|
||||
this.supported_locales = this.supported_locales.concat(res['supported_locales']);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
getConfig() {
|
||||
|
||||
Reference in New Issue
Block a user