Updated mangled translations

Improved automatic translations command
pull/688/head
Isaac Abadi 3 years ago
parent 48f0a700ab
commit 64b1a9e5c0

@ -13,7 +13,7 @@
"e2e": "ng e2e",
"electron": "ng build --base-href ./ && electron .",
"generate": "openapi --input ./\"Public API v1.yaml\" --output ./src/api-types --exportCore false --exportServices false --exportModels true",
"i18n-source": "ng extract-i18n --output-path=src/assets/i18n"
"i18n-source": "ng extract-i18n --output-path=src/assets/i18n --out-file=messages.en.xlf"
},
"engines": {
"node": "12.3.1",

@ -53,9 +53,9 @@ export class CustomPlaylistsComponent implements OnInit {
dialogRef.afterClosed().subscribe(result => {
if (result) {
this.getAllPlaylists();
this.postsService.openSnackBar($localize`Successfully created playlist!', '`);
this.postsService.openSnackBar($localize`Successfully created playlist!`);
} else if (result === false) {
this.postsService.openSnackBar($localize`ERROR: failed to create playlist!', '`);
this.postsService.openSnackBar($localize`ERROR: failed to create playlist!`);
}
});
}
@ -75,6 +75,7 @@ export class CustomPlaylistsComponent implements OnInit {
}
} else {
// playlist not found
// TODO: Make translatable
console.error(`Playlist with ID ${playlistID} not found!`);
}
}
@ -96,7 +97,7 @@ export class CustomPlaylistsComponent implements OnInit {
this.postsService.removePlaylist(playlistID).subscribe(res => {
if (res['success']) {
this.playlists.splice(index, 1);
this.postsService.openSnackBar($localize`Playlist successfully removed.', '`);
this.postsService.openSnackBar($localize`Playlist successfully removed.`);
}
this.getAllPlaylists();
});

@ -94,25 +94,25 @@
</context-group>
<note priority="1" from="description">Settings menu label</note>
</trans-unit>
<trans-unit id="65918861159071115" datatype="html">
<source>Successfully created playlist!&apos;, &apos;</source>
<trans-unit id="39921032161993566" datatype="html">
<source>Successfully created playlist!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/custom-playlists/custom-playlists.component.ts</context>
<context context-type="linenumber">56</context>
</context-group>
</trans-unit>
<trans-unit id="7241816854520039909" datatype="html">
<source>ERROR: failed to create playlist!&apos;, &apos;</source>
<trans-unit id="2070856663109337061" datatype="html">
<source>ERROR: failed to create playlist!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/custom-playlists/custom-playlists.component.ts</context>
<context context-type="linenumber">58</context>
</context-group>
</trans-unit>
<trans-unit id="5070854963159885174" datatype="html">
<source>Playlist successfully removed.&apos;, &apos;</source>
<trans-unit id="820184305380634591" datatype="html">
<source>Playlist successfully removed.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/custom-playlists/custom-playlists.component.ts</context>
<context context-type="linenumber">99</context>
<context context-type="linenumber">100</context>
</context-group>
</trans-unit>
<trans-unit id="2f933b826a570836cab04f683970a2d22068458c" datatype="html">

Loading…
Cancel
Save