Skip to content

Commit

Permalink
fix: export validation message component
Browse files Browse the repository at this point in the history
  • Loading branch information
Langstra committed Jun 29, 2021
1 parent 1ec3fb5 commit df29899
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"hooks:pre-commit": "node hooks/pre-commit.js",
"commit": "git-cz",
"release:first": "npm run release -- --first-release",
"deploy": "ng deploy --base-href=https://ngneat.github.io/libName/",
"deploy": "ng deploy --base-href=/translation-validation/",
"copy": "cp -r README.md dist/ngx-translation-validation",
"build:lib": "ng build ngx-translation-validation --prod && npm run copy",
"test:lib": "ng test ngx-translation-validation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function getConfig(config?: Partial<NgxTvConfig>): NgxTvConfig {
NgxTvContainerDirective,
NgxTvScopeDirective,
],
entryComponents: [NgxTvContainerComponent],
imports: [CommonModule, TranslocoModule],
exports: [NgxTvDirective, NgxTvFormDirective, NgxTvContainerComponent, NgxTvContainerDirective, NgxTvScopeDirective],
})
Expand Down
2 changes: 1 addition & 1 deletion src/app/transloco/transloco-root.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class TranslocoHttpLoader implements TranslocoLoader {
constructor(private http: HttpClient) {}

getTranslation(lang: string): Observable<Translation> {
return this.http.get<Translation>(`/assets/i18n/${lang}.json`);
return this.http.get<Translation>(`./assets/i18n/${lang}.json`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>AngularLocalizedValidationMessages</title>
<title>Translation Validation</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
Expand Down

0 comments on commit df29899

Please sign in to comment.